Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

depth value of openni_camera

Hello. I am doing simulation using openni_camera(https://github.com/ros-drivers/openni_camera) on Gazebo. I'd like to get the depth value of real type, but uint8[] will return as shown by document(http://docs.ros.org/api/sensor_msgs/html/msg/Image.html). Since 4 data was stored for one point, I converted it to float32 using union, but we could not get the correct value. What do these four data represent? Also, how can we obtain the depth value? Thank you.