Module Import alias identifier Import alias Import alias identifier Import alias Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore ListLoad ListLoad Num Num Num Num Num ListLoad Num Str Num Num Num ListLoad Num Num Num Num Num ListLoad Num Str Num Num Num ListLoad Num Num Num Num Num Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num AttributeLoad NameLoad attr vararg kwarg body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If CompareIs NameLoad NameLoad body Raise Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad For NameStore Call NameLoad Call NameLoad NameLoad body For NameStore Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Num body If CompareEq Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad Str keyword BinOpMod Str TupleLoad NameLoad NameLoad keyword BinOpMod Str TupleLoad BinOpSub BinOpMult NameLoad NameLoad NameLoad BinOpSub BinOpMult NameLoad NameLoad NameLoad BinOpMult BinOpDiv NameLoad Num NameLoad keyword BinOpMod Str TupleLoad BinOpMult Num NameLoad BinOpMult Num NameLoad BinOpMult BinOpDiv NameLoad Num NameLoad keyword Str keyword Str keyword Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore NameLoad body If CompareNotIn Str AttributeLoad NameLoad attr body Raise Call NameLoad Str If AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str For NameStore Call NameLoad Call NameLoad NameLoad body For NameStore Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Num body If CompareEq Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Str body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword BinOpMod Str TupleLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad keyword NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Slice Num Assign NameStore SubscriptLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Index AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad For NameStore Call NameLoad Call NameLoad NameLoad body For NameStore Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Num body If BoolOpOr CompareEq SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Num CompareEq SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Str body Assign NameStore BinOpSub BinOpMult NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpSub BinOpMult NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpSub NameLoad BinOpMult Num NameLoad Assign NameStore BinOpAdd NameLoad BinOpMult Num NameLoad Assign NameStore BinOpSub NameLoad BinOpMult Num NameLoad Assign NameStore BinOpAdd NameLoad BinOpMult Num NameLoad Assign NameStore ListLoad TupleLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad TupleLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad TupleLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad TupleLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad keyword NameLoad keyword SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpAdd BinOpSub NameLoad BinOpMult AttributeLoad NameLoad attr Num BinOpMult BinOpDiv BinOpMult Num BinOpAdd BinOpMult Num NameLoad Num BinOpMult Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call NameLoad keyword TupleLoad TupleLoad NameLoad NameLoad NameLoad keyword SubscriptLoad NameLoad Index Str If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword NameLoad keyword Call NameLoad NameLoad TupleLoad NameLoad NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad Call NameLoad NameLoad keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Str Index Num If CompareEq SubscriptLoad NameLoad Index Str Num body If CompareLtE SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad BinOpDiv BinOpSub AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr orelse If CompareEq SubscriptLoad NameLoad Index Str Str body If CompareLtE SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad BinOpDiv BinOpSub AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr orelse Assert NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore BinOpMult NameLoad Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr BinOpMult NameLoad Num NameLoad decorator_list NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call NameLoad Call NameLoad NameLoad body For NameStore Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Num body If CompareEq SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Str body Return TupleLoad BinOpMult NameLoad NameLoad BinOpMult NameLoad NameLoad Assert NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call NameLoad Call NameLoad NameLoad body For NameStore Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Num body If CompareEq SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Str body Assign NameStore BinOpSub BinOpSub BinOpMult NameLoad NameLoad BinOpMult NameLoad Num AttributeLoad NameLoad attr Assign NameStore BinOpSub BinOpAdd BinOpMult NameLoad NameLoad BinOpMult NameLoad Num AttributeLoad NameLoad attr Assign NameStore BinOpSub BinOpSub BinOpMult NameLoad NameLoad BinOpMult NameLoad Num AttributeLoad NameLoad attr Assign NameStore BinOpSub BinOpAdd BinOpMult NameLoad NameLoad BinOpMult NameLoad Num AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call NameLoad Call NameLoad NameLoad body For NameStore Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Num body If CompareEq SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Num body Assign NameStore BinOpSub BinOpSub BinOpMult NameLoad NameLoad BinOpMult NameLoad Num AttributeLoad NameLoad attr Assign NameStore BinOpSub BinOpAdd BinOpMult NameLoad NameLoad BinOpMult NameLoad Num AttributeLoad NameLoad attr Assign NameStore BinOpSub BinOpSub BinOpMult NameLoad NameLoad BinOpMult NameLoad Num AttributeLoad NameLoad attr Assign NameStore BinOpSub BinOpAdd BinOpMult NameLoad NameLoad BinOpMult NameLoad Num AttributeLoad NameLoad attr If BoolOpAnd CompareLtELtE NameLoad NameLoad NameLoad CompareLtELtE NameLoad NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore NameLoad orelse Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Slice Num Assign NameStore Num Assign TupleStore NameStore NameStore NameStore NameStore AttributeLoad NameLoad attr If BoolOpAnd CompareLtELtE NameLoad NameLoad NameLoad CompareLtELtE NameLoad NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore Num Return Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list
N/A N/A os.path osp N/A tempfile N/A xml.etree.ElementTree ET N/A math N/A numpy np rllab spaces rllab.envs.base Step rllab.envs.proxy_env ProxyEnv rllab.core.serializable Serializable rllab.envs.mujoco.mujoco_env MODEL_DIR BIG rllab.misc.overrides overrides rllab.envs.mujoco.maze.maze_env_utils ray_segment_intersect point_distance MazeEnv N/A ProxyEnv Serializable N/A N/A MODEL_CLASS None N/A ORI_IND None N/A MAZE_HEIGHT None N/A MAZE_SIZE_SCALING None N/A MAZE_MAKE_CONTACTS False N/A MAZE_STRUCTURE N/A N/A 1 1 1 1 1 N/A 1 r 0 0 1 N/A 1 1 1 0 1 N/A 1 g 0 0 1 N/A 1 1 1 1 1 N/A MANUAL_COLLISION False __init__ N/A N/A self n_bins sensor_range sensor_span N/A 20 10.0 N/A math pi args kwargs N/A N/A N/A self _n_bins n_bins N/A N/A self _sensor_range sensor_range N/A N/A self _sensor_span sensor_span N/A model_cls N/A N/A self __class__ MODEL_CLASS N/A N/A model_cls None N/A N/A MODEL_CLASS unspecified! N/A xml_path N/A N/A osp join MODEL_DIR N/A model_cls FILE N/A tree N/A N/A ET parse xml_path N/A worldbody N/A N/A tree find .//worldbody N/A size_scaling N/A N/A self __class__ MAZE_SIZE_SCALING N/A height N/A N/A self __class__ MAZE_HEIGHT N/A structure N/A N/A self __class__ MAZE_STRUCTURE N/A N/A torso_x torso_y N/A N/A self _find_robot N/A N/A self _init_torso_x torso_x N/A N/A self _init_torso_y torso_y N/A i N/A xrange N/A len structure N/A N/A j N/A xrange N/A len N/A structure N/A 0 N/A N/A N/A N/A str N/A N/A structure N/A i N/A j 1 N/A N/A N/A N/A ET SubElement worldbody geom name N/A block_%d_%d N/A i j pos N/A %f %f %f N/A N/A N/A j size_scaling torso_x N/A N/A i size_scaling torso_y N/A N/A height 2 size_scaling size N/A %f %f %f N/A N/A 0.5 size_scaling N/A 0.5 size_scaling N/A N/A height 2 size_scaling type box material contype 1 conaffinity 1 rgba 0.4 0.4 0.4 1 N/A torso N/A N/A tree find .//body[@name='torso'] N/A geoms N/A N/A torso findall .//geom N/A geom geoms N/A N/A N/A name N/A geom attrib N/A N/A N/A Exception Every geom of the torso must have a name defined N/A N/A N/A self __class__ MAZE_MAKE_CONTACTS N/A N/A contact N/A N/A ET SubElement N/A N/A tree find . contact N/A i N/A range N/A len structure N/A N/A j N/A range N/A len N/A structure N/A 0 N/A N/A N/A N/A str N/A N/A structure N/A i N/A j 1 N/A N/A geom geoms N/A N/A N/A N/A ET SubElement contact pair geom1 N/A N/A geom attrib N/A name geom2 N/A block_%d_%d N/A i j N/A N/A _ file_path N/A N/A tempfile mkstemp text True N/A N/A N/A tree write file_path N/A N/A self _goal_range N/A N/A self _find_goal_range N/A N/A self _cached_segments None N/A inner_env N/A model_cls file_path file_path args kwargs N/A N/A N/A ProxyEnv __init__ self inner_env N/A N/A N/A Serializable quick_init self N/A locals N/A get_current_obs N/A N/A self N/A N/A N/A N/A robot_x robot_y N/A N/A N/A N/A self wrapped_env get_body_com torso N/A 2 N/A ori N/A N/A N/A N/A N/A self wrapped_env model data qpos N/A N/A N/A self __class__ ORI_IND N/A structure N/A N/A self __class__ MAZE_STRUCTURE N/A size_scaling N/A N/A self __class__ MAZE_SIZE_SCALING N/A segments N/A N/A i N/A range N/A len structure N/A N/A j N/A range N/A len N/A structure N/A 0 N/A N/A N/A N/A N/A N/A structure N/A i N/A j 1 N/A N/A N/A structure N/A i N/A j g N/A N/A cx N/A N/A j size_scaling N/A self _init_torso_x N/A cy N/A N/A i size_scaling N/A self _init_torso_y N/A x1 N/A cx N/A 0.5 size_scaling N/A x2 N/A cx N/A 0.5 size_scaling N/A y1 N/A cy N/A 0.5 size_scaling N/A y2 N/A cy N/A 0.5 size_scaling N/A struct_segments N/A N/A N/A x1 y1 N/A x2 y1 N/A N/A x2 y1 N/A x2 y2 N/A N/A x2 y2 N/A x1 y2 N/A N/A x1 y2 N/A x1 y1 N/A seg struct_segments N/A N/A N/A N/A segments append N/A dict segment seg type N/A N/A structure N/A i N/A j N/A wall_readings N/A N/A np zeros N/A self _n_bins N/A goal_readings N/A N/A np zeros N/A self _n_bins N/A ray_idx N/A xrange N/A self _n_bins N/A N/A ray_ori N/A N/A ori N/A N/A self _sensor_span 0.5 N/A N/A N/A 1.0 N/A N/A 2 ray_idx 1 N/A 2 N/A self _n_bins N/A self _sensor_span N/A ray_segments N/A N/A seg segments N/A N/A p N/A ray_segment_intersect ray N/A N/A robot_x robot_y ray_ori segment N/A seg N/A segment N/A N/A p None N/A N/A N/A N/A ray_segments append N/A dict segment N/A seg N/A segment type N/A seg N/A type ray_ori ray_ori distance N/A point_distance p N/A robot_x robot_y N/A N/A N/A len ray_segments 0 N/A N/A first_seg N/A N/A sorted ray_segments key N/A N/A N/A x N/A N/A x N/A distance N/A 0 N/A N/A N/A first_seg N/A type 1 N/A N/A N/A N/A first_seg N/A distance N/A self _sensor_range N/A N/A N/A wall_readings N/A ray_idx N/A N/A N/A self _sensor_range N/A first_seg N/A distance N/A self _sensor_range N/A N/A N/A N/A first_seg N/A type g N/A N/A N/A N/A first_seg N/A distance N/A self _sensor_range N/A N/A N/A goal_readings N/A ray_idx N/A N/A N/A self _sensor_range N/A first_seg N/A distance N/A self _sensor_range N/A N/A False N/A obs N/A N/A np concatenate N/A N/A N/A N/A self wrapped_env get_current_obs wall_readings goal_readings N/A obs N/A reset N/A N/A self N/A N/A N/A N/A N/A N/A self wrapped_env reset N/A N/A N/A self get_current_obs N/A viewer N/A N/A self N/A N/A N/A N/A N/A self wrapped_env viewer N/A property observation_space N/A N/A self N/A N/A N/A shp N/A N/A N/A self get_current_obs shape N/A ub N/A BIG N/A N/A np ones shp N/A N/A N/A spaces Box N/A ub -1 ub N/A property overrides _find_robot N/A N/A self N/A N/A N/A structure N/A N/A self __class__ MAZE_STRUCTURE N/A size_scaling N/A N/A self __class__ MAZE_SIZE_SCALING N/A i N/A range N/A len structure N/A N/A j N/A range N/A len N/A structure N/A 0 N/A N/A N/A N/A N/A structure N/A i N/A j r N/A N/A N/A N/A j size_scaling N/A i size_scaling N/A False N/A _find_goal_range N/A N/A self N/A N/A N/A structure N/A N/A self __class__ MAZE_STRUCTURE N/A size_scaling N/A N/A self __class__ MAZE_SIZE_SCALING N/A i N/A xrange N/A len structure N/A N/A j N/A xrange N/A len N/A structure N/A 0 N/A N/A N/A N/A N/A structure N/A i N/A j g N/A N/A minx N/A N/A N/A j size_scaling N/A size_scaling 0.5 N/A self _init_torso_x N/A maxx N/A N/A N/A j size_scaling N/A size_scaling 0.5 N/A self _init_torso_x N/A miny N/A N/A N/A i size_scaling N/A size_scaling 0.5 N/A self _init_torso_y N/A maxy N/A N/A N/A i size_scaling N/A size_scaling 0.5 N/A self _init_torso_y N/A N/A minx maxx miny maxy N/A _is_in_collision N/A N/A self pos N/A N/A N/A N/A x y pos N/A structure N/A N/A self __class__ MAZE_STRUCTURE N/A size_scaling N/A N/A self __class__ MAZE_SIZE_SCALING N/A i N/A xrange N/A len structure N/A N/A j N/A xrange N/A len N/A structure N/A 0 N/A N/A N/A N/A N/A structure N/A i N/A j 1 N/A N/A minx N/A N/A N/A j size_scaling N/A size_scaling 0.5 N/A self _init_torso_x N/A maxx N/A N/A N/A j size_scaling N/A size_scaling 0.5 N/A self _init_torso_x N/A miny N/A N/A N/A i size_scaling N/A size_scaling 0.5 N/A self _init_torso_y N/A maxy N/A N/A N/A i size_scaling N/A size_scaling 0.5 N/A self _init_torso_y N/A N/A N/A minx x maxx N/A miny y maxy N/A N/A True N/A False N/A step N/A N/A self action N/A N/A N/A N/A self MANUAL_COLLISION N/A N/A old_pos N/A N/A N/A self wrapped_env get_xy N/A N/A _ _ done info N/A N/A N/A self wrapped_env step action N/A new_pos N/A N/A N/A self wrapped_env get_xy N/A N/A N/A self _is_in_collision new_pos N/A N/A N/A N/A N/A self wrapped_env set_xy old_pos N/A done False N/A N/A N/A _ _ done info N/A N/A N/A self wrapped_env step action N/A next_obs N/A N/A self get_current_obs N/A N/A x y N/A N/A N/A N/A self wrapped_env get_body_com torso N/A 2 N/A reward 0 N/A N/A minx maxx miny maxy N/A self _goal_range N/A N/A N/A minx x maxx N/A miny y maxy N/A N/A done True N/A reward 1 N/A N/A Step next_obs reward done info N/A action_from_key N/A N/A self key N/A N/A N/A N/A N/A N/A self wrapped_env action_from_key key N/A N/A