ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

[ROS2] image_transport and RVIZ2 Camera, something wrong

asked 2019-01-16 07:39:27 -0600

Myzhar gravatar image

Hi,

using Rviz2 and image_transport with Crystal Clemmys I noticed that the Camera plugin in Rviz2 is not aligned to how image_transport::CameraPublisher creates the topic structure.

The Camera plugin for an image topic image/data expects the camera_info as image/data/camera_info, instead the image_transport::CameraPublisherpublishes it as image/camera_info (as for ROS1).

Who is wrong? The Camera plugin or image_transport?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2019-01-16 18:12:49 -0600

mjcarroll gravatar image

In the ROS1 image_transport, it is assumed that the camera_info topic should be a peer to the topic that the data is being published on, so for example

  • stereo/left/image (sensor_msgs/Image)
  • stereo/left/image/compressed (<transport-specific type="">)
  • stereo/left/image/theora (<transport-specific type="">)
  • stereo/left/camera_info (sensor_msgs/CameraInfo)

The goal with the port of image_transport to ROS2 was to reproduce the behavior from ROS1, so I believe that this is a bug in the way that RViz handles it. The quick fix would be to adjust this in RViz, but I believe a better fix would be to also bring the new image_transport functionality into RViz.

edit flag offensive delete link more

Comments

Yes, the bug is in the Rviz2 plugin. I found an old open issue about this problem on github. The wrong topic structure was reported, but no one fixed it yet.

Myzhar gravatar image Myzhar  ( 2019-01-17 00:55:46 -0600 )edit
clyde gravatar image clyde  ( 2019-12-06 19:43:41 -0600 )edit

Question Tools

3 followers

Stats

Asked: 2019-01-16 07:39:27 -0600

Seen: 1,552 times

Last updated: Jan 16 '19