IsaacLab icon indicating copy to clipboard operation
IsaacLab copied to clipboard

[Question] ValueError: No contact sensors added to the prim: '/World/envs/env_0/Robot'. This means that no rigid bodies are present under this prim. Please check the prim path.

Open jh-s5974 opened this issue 1 year ago • 8 comments

./isaaclab.sh -p source/standalone/workflows/rsl_rl/train.py --task Isaac-Velocity-Rough-robotnl-v0

i use this commend.

2024-12-13 08:17:52 [12,356ms] [Warning] [omni.usd] Warning: in _ReportErrors at line 2890 of /builds/omniverse/usd-ci/USD/pxr/usd/usd/stage.cpp -- In </World/envs/env_0/Robot>: Unresolved reference prim path @/home/jh/IsaacLab/source/extensions/omni.isaac.lab_assets/data/Robots/robot_nl/robot_nl.usd@<defaultPrim> introduced by @anon:0x378b0450:World0.usd@</World/envs/env_0/Robot> (recomposing stage on stage @anon:0x378b0450:World0.usd@ <0x35df3b60>)

2024-12-13 08:17:52 [12,393ms] [Warning] [omni.isaac.lab.sim.utils] Could not perform 'modify_rigid_body_properties' on any prims under: '/World/envs/env_0/Robot'. This might be because of the following reasons:
	(1) The desired attribute does not exist on any of the prims.
	(2) The desired attribute exists on an instanced prim.
		Discovered list of instanced prim paths: []
2024-12-13 08:17:52 [12,393ms] [Warning] [omni.isaac.lab.sim.utils] Could not perform 'modify_articulation_root_properties' on any prims under: '/World/envs/env_0/Robot'. This might be because of the following reasons:
	(1) The desired attribute does not exist on any of the prims.
	(2) The desired attribute exists on an instanced prim.
		Discovered list of instanced prim paths: []
[INFO]: Time taken for scene creation : 0.040183 seconds
Error executing job with overrides: []
Traceback (most recent call last):
  File "/home/jh/IsaacLab/source/extensions/omni.isaac.lab_tasks/omni/isaac/lab_tasks/utils/hydra.py", line 99, in hydra_main
    func(env_cfg, agent_cfg, *args, **kwargs)
  File "/home/jh/IsaacLab/source/standalone/workflows/rsl_rl/train.py", line 101, in main
    env = gym.make(args_cli.task, cfg=env_cfg, render_mode="rgb_array" if args_cli.video else None)
  File "/home/jh/.local/share/ov/pkg/isaac-sim-4.2.0/exts/omni.isaac.ml_archive/pip_prebundle/gymnasium/envs/registration.py", line 802, in make
    env = env_creator(**env_spec_kwargs)
  File "/home/jh/IsaacLab/source/extensions/omni.isaac.lab/omni/isaac/lab/envs/manager_based_rl_env.py", line 75, in __init__
    super().__init__(cfg=cfg)
  File "/home/jh/IsaacLab/source/extensions/omni.isaac.lab/omni/isaac/lab/envs/manager_based_env.py", line 121, in __init__
    self.scene = InteractiveScene(self.cfg.scene)
  File "/home/jh/IsaacLab/source/extensions/omni.isaac.lab/omni/isaac/lab/scene/interactive_scene.py", line 150, in __init__
    self._add_entities_from_cfg()
  File "/home/jh/IsaacLab/source/extensions/omni.isaac.lab/omni/isaac/lab/scene/interactive_scene.py", line 584, in _add_entities_from_cfg
    self._articulations[asset_name] = asset_cfg.class_type(asset_cfg)
  File "/home/jh/IsaacLab/source/extensions/omni.isaac.lab/omni/isaac/lab/assets/articulation/articulation.py", line 99, in __init__
    super().__init__(cfg)
  File "/home/jh/IsaacLab/source/extensions/omni.isaac.lab/omni/isaac/lab/assets/asset_base.py", line 77, in __init__
    self.cfg.spawn.func(
  File "/home/jh/IsaacLab/source/extensions/omni.isaac.lab/omni/isaac/lab/sim/utils.py", line 276, in wrapper
    schemas.activate_contact_sensors(prim_paths[0], cfg.activate_contact_sensors)
  File "/home/jh/IsaacLab/source/extensions/omni.isaac.lab/omni/isaac/lab/sim/schemas/schemas.py", line 517, in activate_contact_sensors
    raise ValueError(
ValueError: No contact sensors added to the prim: '/World/envs/env_0/Robot'. This means that no rigid bodies are present under this prim. Please check the prim path.

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.

but, i got this error. and scene is shutdown.

how can i solve this error.

Thank you.

jh-s5974 avatar Dec 13 '24 08:12 jh-s5974

Is the "robot_nl.usd" file your own asset? It seems there might be an issue with it. The initial warnings, such as Could not perform 'modify_rigid_body_properties'/'modify_articulation_root_properties', suggest that some settings are not being correctly applied.

Could you verify the following for the "robot_nl.usd" file in Isaac Sim?

  1. Ensure that all Xforms with the _link postfix have a rigid body attached and are not instanceable.
  2. Confirm that the robotnl parent Xform has an articulation root attached, and that no other prims have an articulation root.
  3. Choose robotnl default prim to make sure it is the one imported.

ozhanozen avatar Dec 13 '24 10:12 ozhanozen

@ozhanozen

I got another error but I fixed this one.

It was because of the default prim setting.

Thank you.

I will try to solve the other error.

jh-s5974 avatar Dec 16 '24 02:12 jh-s5974

Thank you for posting this. I will tag this to improve upon our documentation. Please feel free to open a new question or bug report on our Issues if you can't resolve the other error you got.

RandomOakForest avatar Dec 17 '24 17:12 RandomOakForest

@ozhanozen

I got another error but I fixed this one.

It was because of the default prim setting.

Thank you.

I will try to solve the other error.

I met the same error, could you plz tell me how dd you solve it? 92ebc298-0d53-4352-b6bf-112cbee9b190

SnoopyGeeek avatar Jan 04 '25 15:01 SnoopyGeeek

@ozhanozen

I got another error but I fixed this one.

It was because of the default prim setting.

Thank you.

I will try to solve the other error. Hello!How do you change the settings? Could you explain it in more detail?

Catarina-lab avatar May 19 '25 06:05 Catarina-lab

@ozhanozen

I got another error but I fixed this one.

It was because of the default prim setting.

Thank you.

I will try to solve the other error. Hello!How do you change the settings? Could you explain it in more detail?

Sorry for the late reply.

I got an error because I didn't set the default prim of the robot usd file.

jh-s5974 avatar May 27 '25 01:05 jh-s5974

@ozhanozen I got another error but I fixed this one. It was because of the default prim setting. Thank you. I will try to solve the other error. Hello!How do you change the settings? Could you explain it in more detail?

Sorry for the late reply.

I got an error because I didn't set the default prim of the robot usd file.

May I ask how to modify the default prim and what to change it to

LuXiangyu666 avatar Jun 09 '25 06:06 LuXiangyu666

May I ask how to modify the default prim and what to change it to

You can right click on a new prim, and choose "set as default prim".

When you import a usd, only the default prim and its subtree is imported, so you should choose it accordingly.

ozhanozen avatar Jun 09 '25 10:06 ozhanozen