Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to read object intensity value for every pixel in the image returned by a camera sensor?

Question

The camera sensor in Gazebo only returns a normal RGB image. Is there any way to also get the object's intensity (for example, laser retro) for every pixel in the image? If so, how would I go about implementing this?

My failed attempt:

My idea was to do ray-tracing back from the image and read the object's laser retro at the point which the ray hits an object. So the workaround is to use a ray sensor in Gazebo, with the number of samples in horizontal and vertical equal to the image width and height. However, doing so causes the Gazebo to freeze, or even won't start, probably because of the high memory usage.

How to read object intensity value for every pixel in the image returned by a camera sensor?

Question

The camera sensor in Gazebo only returns a normal RGB image. Is there any way to also get the object's intensity (for example, laser (laser retro) for every pixel in the image? If so, how would I go about implementing this?

My failed attempt:

My idea was to do ray-tracing back from the image and read the object's laser retro at the point which the ray hits an object. So the workaround is to use a ray sensor in Gazebo, with the number of samples in horizontal and vertical equal to the image width and height. However, doing so causes the Gazebo to freeze, or even won't start, probably because of the high memory usage.