|
| 1 | +# Copyright (c) 2022-2024, The ORBIT Project Developers. |
| 2 | +# All rights reserved. |
| 3 | +# |
| 4 | +# SPDX-License-Identifier: BSD-3-Clause |
| 5 | + |
| 6 | +import gymnasium as gym |
| 7 | + |
| 8 | +from . import agents, allegro_env_cfg |
| 9 | + |
| 10 | +## |
| 11 | +# Register Gym environments. |
| 12 | +## |
| 13 | + |
| 14 | +## |
| 15 | +# Full kinematic state observations. |
| 16 | +## |
| 17 | + |
| 18 | +gym.register( |
| 19 | + id="Isaac-Repose-Cube-Allegro-v0", |
| 20 | + entry_point="omni.isaac.orbit.envs:RLTaskEnv", |
| 21 | + disable_env_checker=True, |
| 22 | + kwargs={ |
| 23 | + "env_cfg_entry_point": allegro_env_cfg.AllegroCubeEnvCfg, |
| 24 | + "rsl_rl_cfg_entry_point": agents.rsl_rl_cfg.AllegroCubePPORunnerCfg, |
| 25 | + "rl_games_cfg_entry_point": f"{agents.__name__}:rl_games_ppo_cfg.yaml", |
| 26 | + }, |
| 27 | +) |
| 28 | + |
| 29 | +gym.register( |
| 30 | + id="Isaac-Repose-Cube-Allegro-Play-v0", |
| 31 | + entry_point="omni.isaac.orbit.envs:RLTaskEnv", |
| 32 | + disable_env_checker=True, |
| 33 | + kwargs={ |
| 34 | + "env_cfg_entry_point": allegro_env_cfg.AllegroCubeEnvCfg_PLAY, |
| 35 | + "rsl_rl_cfg_entry_point": agents.rsl_rl_cfg.AllegroCubePPORunnerCfg, |
| 36 | + "rl_games_cfg_entry_point": f"{agents.__name__}:rl_games_ppo_cfg.yaml", |
| 37 | + }, |
| 38 | +) |
| 39 | + |
| 40 | +## |
| 41 | +# Kinematic state observations without velocity information. |
| 42 | +## |
| 43 | + |
| 44 | +gym.register( |
| 45 | + id="Isaac-Repose-Cube-Allegro-NoVelObs-v0", |
| 46 | + entry_point="omni.isaac.orbit.envs:RLTaskEnv", |
| 47 | + disable_env_checker=True, |
| 48 | + kwargs={ |
| 49 | + "env_cfg_entry_point": allegro_env_cfg.AllegroCubeNoVelObsEnvCfg, |
| 50 | + "rsl_rl_cfg_entry_point": agents.rsl_rl_cfg.AllegroCubeNoVelObsPPORunnerCfg, |
| 51 | + "rl_games_cfg_entry_point": f"{agents.__name__}:rl_games_ppo_cfg.yaml", |
| 52 | + }, |
| 53 | +) |
| 54 | + |
| 55 | +gym.register( |
| 56 | + id="Isaac-Repose-Cube-Allegro-NoVelObs-Play-v0", |
| 57 | + entry_point="omni.isaac.orbit.envs:RLTaskEnv", |
| 58 | + disable_env_checker=True, |
| 59 | + kwargs={ |
| 60 | + "env_cfg_entry_point": allegro_env_cfg.AllegroCubeNoVelObsEnvCfg_PLAY, |
| 61 | + "rsl_rl_cfg_entry_point": agents.rsl_rl_cfg.AllegroCubeNoVelObsPPORunnerCfg, |
| 62 | + "rl_games_cfg_entry_point": f"{agents.__name__}:rl_games_ppo_cfg.yaml", |
| 63 | + }, |
| 64 | +) |
0 commit comments