-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CPU lidar (no rendering) #26
Comments
@chapulina Seems like the hard work is in the implementation of a What is the ignition equivalent of calling |
One way that I can think of this sensor being implemented is:
|
In the meantime, a workaround for those who need to simulate lidars in an environment where a GPU is not available is to use This is also how we have setup some of our CI machines (eg. Github Actions). There, since there is also no X server, we start one using
The caveat with this workaround is that, unlike the |
Hi all, it seems that DART does support ray collision via Bullet backend, which is also supported by This way, one high-level implementation proposal for the ray-based collisions would be:
Any suggestions/recommendations? |
I'm trying to run 2D laser simulations without GPU inside a container using this launch: ros2 launch ros_gz_sim_demos gpu_lidar_bridge.launch.py But the 2D laser scans and 3D beams do not update. (I checked that simulation is not paused). The workaround proposed by @azeey do not work for me. Any idea how make it work? |
Do you see any errors when launching? Can you try running https://github.com/gazebosim/gz-sim/blob/b8bbf1d9dee47af68fd1c85fa8382afc47732ff2/examples/worlds/gpu_lidar_sensor.sdf in Gazebo and with |
Here you are the output, But v4 do not seem to work, I think I'm doing something wrong about that, but I cannot figure it out:
|
Oh, I meant directly using Anyway, I was able to reproduce this issue. It's happening because the I think we have two action items:
I'll go ahead and create issues for these. Any help to fix them would be greatly appreciated. |
Hi all! I am running gazebo in a VM with GPU passthrough, I got everything to work with Since in my case GPU not being used for lidar is probably a virtualization problem and I don't have the expertise to fix it, an acceptable workaround would be to use GPU rendering and CPU lidar. But from looking at the issues and PRs mentioned above by @azeey, I understand that CPU lidar is not ready yet. Will it be included in future releases or will it come as an update? (I use gz harmonic) |
Ignition already supports GPU Lidars, which use
ign-rendering
and detect visuals in the scene.Besides the GPU version of this sensor, Gazebo-classic also supported a CPU-based ray sensor, which used the physics engine to detect objects. Even though that sensor is less performant than the GPU version, over the years many users have relied on it to have a ray sensor on settings where using a GPU / rendering engine was not ideal, like on cloud machines. Another difference is that these sensors would see collision shapes instead of visuals.
Based on this past experience, we should also consider adding a render-less lidar sensor to Ignition.
The text was updated successfully, but these errors were encountered: