ROS 2 Foxy - Image Transport Tutorial, example subscriber node does not subscribe to compressed topic when param "_image_transport:=compressed" is set, transport hints for Image Display do not appear in RVIZ.

asked 2023-02-20 04:26:15 -0500

Randombs gravatar image

updated 2023-02-20 04:28:45 -0500

System: Ubuntu 20.04, Foxy. Using cyclone_dds implementation, all nodes run locally on same PC.

Following packages built from source:

To stream images from webcam:

ros2 run image_transport_tutorials publisher_from_video 0

To subscribe to images:

ros2 run image_transport_tutorials my_subscriber --ros-args --remap __name:=compressed_listener -p _image_transport:=compressed

Launching RVIZ2:

rviz2


Relevant Information:

rqt_graph screenshot: Subscribing to /camera/image instead of /camera/image/compressed

rviz2 screenshot: No transport hint option for Image RVIZ2 Display

rviz2 does not appear in rqt_graph, despite successfully displaying image

Topics present using "ros2 topic list":

/camera/image

/camera/image/compressed

/camera/image/compressedDepth

/camera/image/theora /clicked_point

/goal_pose /initialpose

/parameter_events /rosout /tf

/tf_static

I am able to run:

ros2 topic bw for /camera/images/compressed

and

ros2 topic hz for /camera/images/compressed

However upon running:

ros2 run rqt_reconfigure rqt_reconfigure

to adjust "camera.image.jpeg.quality", the data rate of /camera/images/compressed does not change as expected (checked using ros2 topic bw for /camera/images/compressed)

edit retag flag offensive close merge delete