You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if the difference come from the encoding, the bridge or simply the rviz2 configuration (if it is it could be interesting to know the default settings to visualize the data).
The text was updated successfully, but these errors were encountered:
I think it's just that the "visualization" is different but the depth image data encoding and depth values should be the same. The image consists of float32 depth values. In gazebo, from this description, large depth values are darker (black) while smaller depth values are brighter (white), which just happens to be opposite of how rviz visualizes depth data.
There doesn't seem to be a standard on how to display depth images. A quick look on the web shows both approaches being used in different places. Since the behavior in Gazebo has been around for a long time, I don't think we should change it. Perhaps a flag in the "Image Display" plugin to revert the colors could be an option.
Environment
Description
I try to add the depth sensors in the sdf of my robot in order to have the depth image available in ROS2.
I have the good output for the depth image in Gazebo Image display viewer:
But when I visualize it in rviz2 the image is fully black or is in reverse color pattern in function of the settings:
Steps to reproduce
I have implement the sensor in this way in my model.sdf:
`
I have this for the bridge:
gz_topic_name: "/model/diff_drive/depth_camera"
ros_type_name: "sensor_msgs/msg/Image"
gz_type_name: "gz.msgs.Image"
direction: GZ_TO_ROS
`
I'm not sure if the difference come from the encoding, the bridge or simply the rviz2 configuration (if it is it could be interesting to know the default settings to visualize the data).
The text was updated successfully, but these errors were encountered: