Issue visualizing Depth image in rviz2 #473
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
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: