Repository navigation
Closed
Labels
questionFurther information is requested
Description
If you are submitting a bug report, please fill in the following details and use the tag [bug].
Describe the bug
Following the tutorial, I kept getting the issue that the environment doest exist.
Steps to reproduce
Please try to provide a minimal example to reproduce the bug. Error messages and stack traces are also helpful.
__init__.py
import gymnasium as gym
from .h1_env import H1Env, H1EnvCfg
from . import agents
##
# Register Gym environments.
##
gym.register(
id="Isaac-Humanoid-Direct-v0",
entry_point=f"{__name__}.humanoid_env:HumanoidEnv",
disable_env_checker=True,
kwargs={
"env_cfg_entry_point": f"{__name__}.humanoid_env:HumanoidEnvCfg",
"rl_games_cfg_entry_point": f"{agents.__name__}:rl_games_ppo_cfg.yaml",
"rsl_rl_cfg_entry_point": f"{agents.__name__}.rsl_rl_ppo_cfg:HumanoidPPORunnerCfg",
"skrl_cfg_entry_point": f"{agents.__name__}:skrl_ppo_cfg.yaml",
},
)
gym.register(
id="Isaac-H1-Direct-v0",
entry_point="isaaclab_tasks.direct.humanoid:H1Env",
disable_env_checker=True,
kwargs={
"env_cfg_entry_point": H1EnvCfg,
"rl_games_cfg_entry_point": f"{agents.__name__}:rl_games_ppo_cfg.yaml",
"rsl_rl_cfg_entry_point": f"{agents.__name__}.rsl_rl_ppo_cfg:HumanoidPPORunnerCfg",
"skrl_cfg_entry_point": f"{agents.__name__}:skrl_ppo_cfg.yaml",
},
)h1_env.py
from __future__ import annotations
from isaaclab_assets import HUMANOID_CFG
from isaaclab_assets import H1_CFG
import isaaclab.sim as sim_utils
from isaaclab.assets import ArticulationCfg
from isaaclab.envs import DirectRLEnvCfg
from isaaclab.scene import InteractiveSceneCfg
from isaaclab.sim import SimulationCfg
from isaaclab.terrains import TerrainImporterCfg
from isaaclab.utils import configclass
from isaaclab_tasks.direct.locomotion.locomotion_env import LocomotionEnv
@configclass
class H1EnvCfg(DirectRLEnvCfg):
# env
episode_length_s = 15.0
decimation = 2
action_scale = 1.0
action_space = 19
observation_space = 69
state_space = 0
# simulation
sim: SimulationCfg = SimulationCfg(dt=1 / 120, render_interval=decimation)
terrain = TerrainImporterCfg(
prim_path="/World/ground",
terrain_type="plane",
collision_group=-1,
physics_material=sim_utils.RigidBodyMaterialCfg(
friction_combine_mode="average",
restitution_combine_mode="average",
static_friction=1.0,
dynamic_friction=1.0,
restitution=0.0,
),
debug_vis=False,
)
# scene
scene: InteractiveSceneCfg = InteractiveSceneCfg(
num_envs=4096, env_spacing=4.0, replicate_physics=True, clone_in_fabric=True
)
# robot
robot: ArticulationCfg = H1_CFG.replace(prim_path="/World/envs/env_.*/Robot")
joint_gears: list = [
50.0, # left_hip_yaw
50.0, # right_hip_yaw
50.0, # torso
50.0, # left_hip_roll
50.0, # right_hip_roll
50.0, # left_shoulder_pitch
50.0, # right_shoulder_pitch
50.0, # left_hip_pitch
50.0, # right_hip_pitch
50.0, # left_shoulder_roll
50.0, # right_shoulder_roll
50.0, # left_knee
50.0, # right_knee
50.0, # left_shoulder_yaw
50.0, # right_shoulder_yaw
50.0, # left_ankle
50.0, # right_ankle
50.0, # left_elbow
50.0, # right_elbow
]
heading_weight: float = 0.5
up_weight: float = 0.1
energy_cost_scale: float = 0.05
actions_cost_scale: float = 0.01
alive_reward_scale: float = 2.0
dof_vel_scale: float = 0.1
death_cost: float = -1.0
termination_height: float = 0.8
angular_velocity_scale: float = 0.25
contact_force_scale: float = 0.01
class H1Env(LocomotionEnv):
cfg: H1EnvCfg
def __init__(self, cfg: H1EnvCfg, render_mode: str | None = None, **kwargs):
super().__init__(cfg, render_mode, **kwargs)python scripts/reinforcement_learning/rl_games/train.py --task Isaac-H1-Direct-v0
Error
Environment `Isaac-H1-Direct` doesn't exist. Did you mean: `Isaac-Ant-Direct`?
File "/home/polaris/Desktop/glitchy/IsaacLab/source/isaaclab_tasks/isaaclab_tasks/utils/parse_cfg.py", line 57, in load_cfg_from_registry
cfg_entry_point = gym.spec(task_name.split(":")[-1]).kwargs.get(entry_point_key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/polaris/Desktop/glitchy/IsaacLab/source/isaaclab_tasks/isaaclab_tasks/utils/hydra.py", line 42, in register_task_to_hydra
env_cfg = load_cfg_from_registry(task_name, "env_cfg_entry_point")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/polaris/Desktop/glitchy/IsaacLab/source/isaaclab_tasks/isaaclab_tasks/utils/hydra.py", line 81, in wrapper
env_cfg, agent_cfg = register_task_to_hydra(task_name.split(":")[-1], agent_cfg_entry_point)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/polaris/Desktop/IsaacLab/scripts/reinforcement_learning/rl_games/train.py", line 253, in <module>
main()
gymnasium.error.NameNotFound: Environment `Isaac-H1-Direct` doesn't exist. Did you mean: `Isaac-Ant-Direct`?
System Info
Describe the characteristic of your environment:
- Commit: f915491
- Isaac Sim Version: 5.1.0
- OS: 22.04
- GPU: A5000
- CUDA: 11.8
- GPU Driver: 580.95.05c
Additional context
Add any other context about the problem here.
Checklist
- I have checked that there is no similar issue in the repo (required)
- [] I have checked that the issue is not in running Isaac Sim itself and is related to the repo
Acceptance Criteria
Add the criteria for which this task is considered done. If not known at issue creation time, you can add this once the issue is assigned.
- Able to run the tutorial without the same error
Metadata
Metadata
Assignees
Labels
questionFurther information is requested
Activity
PeterL-NV commentedon Dec 12, 2025
I don't have the issue by following the tutorial to train the new task. Can you try to use the
isaaclab.shscript to run your training and see if that helps?glitchyordis commentedon Dec 17, 2025
I got similar error
pascal-roth commentedon Dec 17, 2025
I also cannot reproduce this issue, if you follow the tutorial and add the new task and
h1_env.py, everything should work. Please note that the taskIsaac-H1-Direct-v0will not run without code modifications!Closing this issue for now, please follow the steps in the tutorial and try again to run the task when you add the necessary changes.
glitchyordis commentedon Dec 17, 2025
@pascal-roth the tutorial only required changes to two files, which I've included in my steps to reproduce. Can we compare mine with yours?
As a test, I've even removed the original
gym.register(id="Isaac-Humanoid-Direct-v0",.....in the__init__.py. Yet, gym.registry still shows "Isaac-Humanoid-Direct-v0" but "Isaac-H1-Direct-v0" is still missing from the gym's registry.PeterL-NV commentedon Dec 17, 2025
Were you able to train with the original task
Isaac-Humanoid-Direct-v0? Want to make sure you don't have any setup issues.glitchyordis commentedon Dec 18, 2025
@PeterL-NV That task runs; tested with conda env and
./isaaclab.sh -p.PeterL-NV commentedon Dec 18, 2025
Then do it gradually by modifying the original task, first change the env ID, then the config name, file name, etc. To see which step failed for you.
Update Newton and preserve runtime compatibility (#8381)