Register environments separately

This commit is contained in:
Mustafa Enes Batur 2023-11-19 22:45:48 +01:00
parent 9aa572271f
commit 7e537447e1

View File

@ -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
}
) )