Register environments separately
This commit is contained in:
parent
9aa572271f
commit
7e537447e1
@ -290,8 +290,13 @@ register(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Air Hockey environments
|
||||||
|
for env_mode in ["tournament", "7dof-hit", "7dof-defend", "3dof-hit", "3dof-defend"]:
|
||||||
register(
|
register(
|
||||||
id='fancy/AirHockey-v0',
|
id=f'fancy/AirHockey-{env_mode}-v0',
|
||||||
entry_point='fancy_gym.envs.mujoco:AirHockeyEnv',
|
entry_point='fancy_gym.envs.mujoco:AirHockeyEnv',
|
||||||
max_episode_steps=45000
|
max_episode_steps=45000,
|
||||||
|
kwargs={
|
||||||
|
'env_mode': env_mode
|
||||||
|
}
|
||||||
)
|
)
|
Loading…
Reference in New Issue
Block a user