Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

[ROS2] image_transport only advertising raw option

Hi,

I created a ROS2 stereo camera node using image transport. I have two publisher:

m_publisher_left_image = image_transport::create_publisher(this, "stereo/left/image_raw");
m_publisher_right_image = image_transport::create_publisher(this, "stereo/right/image_raw");
m_publisher_left_info = this->create_publisher<sensor_msgs::msg::CameraInfo>("stereo/left/camera_info", 10);
m_publisher_right_info = this->create_publisher<sensor_msgs::msg::CameraInfo>("stereo/right/camera_info", 10);

When I start the node on my laptop I can see the following topics with ros2 topic list:

/stereo/left/camera_info
/stereo/left/image_raw
/stereo/left/image_raw/compressed
/stereo/left/image_raw/compressedDepth
/stereo/left/image_raw/theora
/stereo/right/camera_info
/stereo/right/image_raw
/stereo/right/image_raw/compressed
/stereo/right/image_raw/compressedDepth
/stereo/right/image_raw/theora

Now I run the exact same code on a Jetson Nano, also using eloquent distro but I can only see

/stereo/left/camera_info
/stereo/left/image_raw
/stereo/right/camera_info
/stereo/right/image_raw

I install eloquent via debian packages in late Nov on my laptop. On the Jetson it was installed on 6th Jan.

I would be glad if someone could explain me the cause of the different behavior.