isaac-sim / IsaacLab

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

Raycast tutorial: sensor height expected seems wrong? #553

Open agillies8 opened 3 weeks ago

agillies8 commented 3 weeks ago

In the Isaac Lab Tutorial 4 - Adding a sensor, in the raycaster example, Im trying to make sense of the measurement it returns, and it seems incorrect. After the ball is resting on the ground, I would expect the raycaster to return something close to the radius of the ball, which is 0.125. However, Im actualyl seeing it even out around 1.22, which I dont understand how thats possible.

Screencast from 06-22-2024 10:56:20 PM.webm

To simplify the setup, I reduced the number of balls to one, and fixed it so it always falls from a height of 10m.

Steps to reproduce

I changed line 72 to:

origins = [[0.0, 0.0, 0.0]]

And added these lines at line 104:

ball_default_state[:, 2] = 10
ball_default_state[:,0] = 1
ball_default_state[:,1] = 0.5

Then ran the sim, the max height the sensor reads is stil. 1.22. Why is this?

Mayankm96 commented 3 weeks ago

As mentioned in the documentation:

Currently, only static meshes are supported. Extending the warp mesh to support dynamic meshes is a work in progress.

The raycaster in the above example only ray-casts against the terrain. It can be extended for dynamic cases (which includes the ball), but this is yet to be implemented. We don't have any immediate plans to add support since we are focusing more on improving the tiled rendering.

Zhefan-Xu commented 1 day ago

@Mayankm96 Thanks for your insights. Is it possible to implement raycast for dynamic objects in Isaac Sim. I would appreciate it if you can provide some suggestions. Thank you!