File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 42
42
from mujoco_playground ._src .locomotion .t1 import randomize as t1_randomize
43
43
44
44
45
- mjx_env .ensure_menagerie_exists () # Ensure menagerie exists when module is imported.
46
-
47
45
_envs = {
48
46
"ApolloJoystickFlatTerrain" : functools .partial (
49
47
apollo_joystick .Joystick , task = "flat_terrain"
@@ -181,6 +179,7 @@ def load(
181
179
Returns:
182
180
An instance of the environment.
183
181
"""
182
+ mjx_env .ensure_menagerie_exists () # Ensure menagerie exists when environment is loaded.
184
183
if env_name not in _envs :
185
184
raise ValueError (
186
185
f"Env '{ env_name } ' not found. Available envs: { _cfgs .keys ()} "
Original file line number Diff line number Diff line change 30
30
from mujoco_playground ._src .manipulation .leap_hand import rotate_z as leap_rotate_z
31
31
32
32
33
- mjx_env .ensure_menagerie_exists () # Ensure menagerie exists when module is imported.
34
-
35
33
_envs = {
36
34
"AlohaHandOver" : aloha_handover .HandOver ,
37
35
"AlohaSinglePegInsertion" : aloha_peg .SinglePegInsertion ,
@@ -110,6 +108,7 @@ def load(
110
108
Returns:
111
109
An instance of the environment.
112
110
"""
111
+ mjx_env .ensure_menagerie_exists () # Ensure menagerie exists when environment is loaded.
113
112
if env_name not in _envs :
114
113
raise ValueError (
115
114
f"Env '{ env_name } ' not found. Available envs: { _cfgs .keys ()} "
You can’t perform that action at this time.
0 commit comments