Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

That sounds similar to a GPU lidar that has a single ray. Maybe using that sensor with the appropriate number of samples could work?

Creating custom sensors isn't well documented or well supported right now. But here are some ideas:

Here's the GPU lidar sensor implementation. On Ignition Gazebo, that's managed by the Sensors system. It should be possible for you to create a new sensor type, but I think some changes will be needed on ign-sensors and ign-gazebo to make sure you can load your sensor. I ticketed an issue for that.

Another option for now could be not to use ign-sensors and do all the calculations in an Ignition Gazebo system. You can create your own scene, or load the Sensors system and access its scene through the engine singleton. But you need to be careful about threading, since each system's PostUpdate runs in a different thread.