File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -63,9 +63,9 @@ def __init__(
6363 mujoco_robots ,
6464 mujoco_objects = None ,
6565 enable_multiccd = False ,
66- enable_sleeping = False ,
66+ enable_sleeping_islands = False ,
6767 ):
68- super ().__init__ (enable_multiccd = enable_multiccd , enable_sleeping = enable_sleeping )
68+ super ().__init__ (enable_multiccd = enable_multiccd , enable_sleeping_islands = enable_sleeping_islands )
6969
7070 # Store references to all models
7171 self .mujoco_arena = mujoco_arena
Original file line number Diff line number Diff line change 88class MujocoWorldBase (MujocoXML ):
99 """Base class to inherit all mujoco worlds from."""
1010
11- def __init__ (self , enable_multiccd = False , enable_sleeping = False ):
11+ def __init__ (self , enable_multiccd = False , enable_sleeping_islands = False ):
1212 super ().__init__ (xml_path_completion ("base.xml" ))
1313 # Modify the simulation timestep to be the requested value
1414 options = find_elements (root = self .root , tags = "option" , attribs = None , return_first = True )
1515 options .set ("timestep" , convert_to_string (macros .SIMULATION_TIMESTEP ))
1616 self .enable_multiccd = enable_multiccd
17- self .enable_sleeping = enable_sleeping
17+ self .enable_sleeping_islands = enable_sleeping_islands
1818 if self .enable_multiccd :
1919 multiccd_elem = ET .fromstring ("""<option> <flag multiccd="enable"/> </option>""" )
2020 mujoco_elem = find_elements (self .root , "mujoco" )
2121 mujoco_elem .insert (0 , multiccd_elem )
22- if self .enable_sleeping :
22+ if self .enable_sleeping_islands :
2323 sleeping_elem = ET .fromstring ("""<option> <flag sleep="enable"/> </option>""" )
2424 mujoco_elem = find_elements (self .root , "mujoco" )
2525 mujoco_elem .insert (0 , sleeping_elem )
You can’t perform that action at this time.
0 commit comments