Skip to content

[Bug Report] Isaac-H1-Direct doesn't exist #4186

Closed

Description

@glitchyordis

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

Activity

  1. PeterL-NV commented on Dec 12, 2025

    @PeterL-NV
    Contributor

    I don't have the issue by following the tutorial to train the new task. Can you try to use the isaaclab.sh script to run your training and see if that helps?

  2. added
    question
    on Dec 15, 2025
  3. glitchyordis commented on Dec 17, 2025

    @glitchyordis
    Author

    I got similar error

    polaris@nebula:~/Desktop/glitchy/IsaacLab$ ./isaaclab.sh -p scripts/reinforcement_learning/rl_games/train.py --task Isaac-H1-Direct-v0 --headless
    [INFO] Using python from: /home/polaris/Desktop/glitchy/IsaacLab/_isaac_sim/python.sh                  
    [INFO][AppLauncher]: Using device: cuda:0
    [INFO][AppLauncher]: Loading experience file: /home/polaris/Desktop/glitchy/IsaacLab/apps/isaaclab.python.headless.kit
    Loading user config located at: '/home/polaris/isaacsim/kit/data/Kit/Isaac-Sim/5.1/user.config.json'
    [Info] [carb] Logging to file: /home/polaris/isaacsim/kit/logs/Kit/Isaac-Sim/5.1/kit_20251217_190336.log
    2025-12-17T11:03:37Z [463ms] [Warning] [omni.usd_config.extension] Enable omni.materialx.libs extension to use MaterialX
    2025-12-17T11:03:38Z [1,340ms] [Warning] [carb] Acquiring non optional plugin interface which is not listed as dependency: [omni::physx::IPhysxBenchmarks v1.0] (plugin: <default plugin>), by client: omni.physics.physx.plugin. Add it to CARB_PLUGIN_IMPL_DEPS() macro of a client.
    2025-12-17T11:03:38Z [1,353ms] [Warning] [omni.isaac.dynamic_control] omni.isaac.dynamic_control is deprecated as of Isaac Sim 4.5. No action is needed from end-users.
    
    |---------------------------------------------------------------------------------------------|
    | Driver Version: 580.95.05     | Graphics API: Vulkan
    |=============================================================================================|
    | GPU | Name                             | Active | LDA | GPU Memory | Vendor-ID | LUID       |
    |     |                                  |        |     |            | Device-ID | UUID       |
    |     |                                  |        |     |            | Bus-ID    |            |
    |---------------------------------------------------------------------------------------------|
    | 0   | NVIDIA RTX A5000                 | Yes: 0 |     | 24810   MB | 10de      | 0          |
    |     |                                  |        |     |            | 2231      | c24e2a8b.. |
    |     |                                  |        |     |            | 4f        |            |
    |---------------------------------------------------------------------------------------------|
    | 1   | NVIDIA RTX A5000                 | Yes: 1 |     | 24810   MB | 10de      | 0          |
    |     |                                  |        |     |            | 2231      | cc3e7965.. |
    |     |                                  |        |     |            | d5        |            |
    |---------------------------------------------------------------------------------------------|
    | 2   | NVIDIA RTX A5000                 | Yes: 2 |     | 24810   MB | 10de      | 0          |
    |     |                                  |        |     |            | 2231      | 685494a1.. |
    |     |                                  |        |     |            | e6        |            |
    |=============================================================================================|
    | OS: 22.04.5 LTS (Jammy Jellyfish) ubuntu, Version: 22.04.5, Kernel: 6.8.0-88-generic
    | XServer Vendor: The X.Org Foundation, XServer Version: 12101004 (1.21.1.4)
    | Processor: Intel(R) Xeon(R) Gold 6248R CPU @ 3.00GHz
    | Cores: 48 | Logical Cores: 96
    |---------------------------------------------------------------------------------------------|
    | Total Memory (MB): 128500 | Free Memory: 116546
    | Total Page/Swap (MB): 1951 | Free Page/Swap: 1951
    |---------------------------------------------------------------------------------------------|
    2025-12-17T11:03:45Z [8,690ms] [Warning] [gpu.foundation.plugin] CPU performance profile is set to powersave. This profile sets the CPU to the lowest frequency reducing performance.
    Gym has been unmaintained since 2022 and does not support NumPy 2.0 amongst other critical functionality.
    Please upgrade to Gymnasium, the maintained drop-in replacement of Gym, or contact the authors of your software and request that they upgrade.
    See the migration guide at https://gymnasium.farama.org/introduction/migration_guide/ for additional information.
    Traceback (most recent call last):
      File "/home/polaris/Desktop/glitchy/IsaacLab/scripts/reinforcement_learning/rl_games/train.py", line 253, in <module>
        main()
      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/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/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/_isaac_sim/kit/python/lib/python3.11/site-packages/gymnasium/envs/registration.py", line 1000, in spec
        _check_version_exists(ns, name, version)
      File "/home/polaris/Desktop/glitchy/IsaacLab/_isaac_sim/kit/python/lib/python3.11/site-packages/gymnasium/envs/registration.py", line 392, in _check_version_exists
        _check_name_exists(ns, name)
      File "/home/polaris/Desktop/glitchy/IsaacLab/_isaac_sim/kit/python/lib/python3.11/site-packages/gymnasium/envs/registration.py", line 369, in _check_name_exists
        raise error.NameNotFound(
    gymnasium.error.NameNotFound: Environment `Isaac-H1-Direct` doesn't exist. Did you mean: `Isaac-Ant-Direct`?
    2025-12-17T11:03:50Z [13,412ms] [Warning] [omni.physx.plugin] USD stage detach not called, holding a loose ptr to a stage!
    2025-12-17T11:03:50Z [13,660ms] [Warning] [carb] Recursive unloadAllPlugins() detected!
    
    
  4. pascal-roth commented on Dec 17, 2025

    @pascal-roth
    Collaborator

    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 task Isaac-H1-Direct-v0 will 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.

  5. glitchyordis commented on Dec 17, 2025

    @glitchyordis
    Author

    @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.

  6. PeterL-NV commented on Dec 17, 2025

    @PeterL-NV
    Contributor

    Were you able to train with the original task Isaac-Humanoid-Direct-v0 ? Want to make sure you don't have any setup issues.

  7. glitchyordis commented on Dec 18, 2025

    @glitchyordis
    Author

    @PeterL-NV That task runs; tested with conda env and ./isaaclab.sh -p.

  8. PeterL-NV commented on Dec 18, 2025

    @PeterL-NV
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions