isaac-sim / IsaacLab

Unified framework for robot learning built on NVIDIA Isaac Sim
https://isaac-sim.github.io/IsaacLab
Other
1.54k stars 478 forks source link

[Bug Report] Cannot run sensors tutorials code #330

Open gonzalezJohnas opened 3 months ago

gonzalezJohnas commented 3 months ago

Describe the bug

I cannot launch any of tutorials 04_sensors, the core dumped appear as soon as I use any sensors ( Camera, RayCasterCfg...). If I comment them everything works fine.

Steps to reproduce

python source/standalone/tutorials/04_sensors/run_usd_camera.py

Program aborted due to an unhandled Error:
Unable to find target for this triple (no targets are registered)Aborted (core dumped)

log.txt

System Info

Describe the characteristic of your environment:

Additional context

So far all other tutorials works well, this error appear also in other tutorials when running in cpu mode. I am in remote server with no physical display connected to the desktop computer.

Checklist

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.

Mayankm96 commented 3 months ago

I think this is because of the reason here:

I am in remote server with no physical display connected to the desktop computer.

Does it work when you run headless?

gonzalezJohnas commented 3 months ago

Everything works in headless mode, except for the sensor camera that's is why it is weird. I can successfully run other examples with this setup.

Mayankm96 commented 3 months ago

For running camera headless, you probably need to pass --offscreen_render flag as well.

gonzalezJohnas commented 3 months ago

To clarify my problem, all other tutorial code works ( I can see the IsaacSim window open), just when getting to the sensor and more particularly run_usd_camera.py I have a core dumped. I tried in headless mode also and same error, this happens only when I tried to use sensors.

gonzalezJohnas commented 3 months ago

After debugging the program crashed with the error:

Program aborted due to an unhandled Error: Unable to find target for this triple (no targets are registered)Aborted (core dumped)

Only when using the CameraCfg object, other sensor works well (RayCaster, ContactSensor). The error appear either when calling scene.reset() or accessing scene['camera'].

In IsaacSim I can create a camera and see the rendering from the perspective view, it seems to be a problem at Orbit level.

gonzalezJohnas commented 3 months ago

Hello, sorry to stress again about this bug but do you have some update on why the Camera sensors produce this error? Should I pull a specific version ??

YitianShi commented 3 months ago

Hi I fixed somehow the same problem through:

sudo prime-select nvidia

if your

sudo prime-select query

gives on-demand

gonzalezJohnas commented 3 months ago

Thank you for the tip, but still have the error following your suggestion.

ninamortensen commented 1 month ago

Thank you for the tip, but still have the error following your suggestion.

Hi, I have the same issue, have you by any chance resolved this?

gonzalezJohnas commented 1 month ago

For me plugging a monitor resolve the issue, I am still using ssh to work but that was the only solution to make the images works.