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 4242from mujoco_playground ._src .locomotion .t1 import randomize as t1_randomize
4343
4444
45- mjx_env .ensure_menagerie_exists () # Ensure menagerie exists when module is imported.
46-
4745_envs = {
4846 "ApolloJoystickFlatTerrain" : functools .partial (
4947 apollo_joystick .Joystick , task = "flat_terrain"
@@ -181,6 +179,7 @@ def load(
181179 Returns:
182180 An instance of the environment.
183181 """
182+ mjx_env .ensure_menagerie_exists () # Ensure menagerie exists when environment is loaded.
184183 if env_name not in _envs :
185184 raise ValueError (
186185 f"Env '{ env_name } ' not found. Available envs: { _cfgs .keys ()} "
Original file line number Diff line number Diff line change 3030from mujoco_playground ._src .manipulation .leap_hand import rotate_z as leap_rotate_z
3131
3232
33- mjx_env .ensure_menagerie_exists () # Ensure menagerie exists when module is imported.
34-
3533_envs = {
3634 "AlohaHandOver" : aloha_handover .HandOver ,
3735 "AlohaSinglePegInsertion" : aloha_peg .SinglePegInsertion ,
@@ -110,6 +108,7 @@ def load(
110108 Returns:
111109 An instance of the environment.
112110 """
111+ mjx_env .ensure_menagerie_exists () # Ensure menagerie exists when environment is loaded.
113112 if env_name not in _envs :
114113 raise ValueError (
115114 f"Env '{ env_name } ' not found. Available envs: { _cfgs .keys ()} "
You can’t perform that action at this time.
0 commit comments