Robotics StackExchange | Archived questions

sensor_msgs/CompressedImage to sensor_msgs/Image

I am using ROS 2 foxy and trying to convert the compressed image messages from my USBL PC camera to regular image messages. To do this, I am using image transport with the following command:

ros2 run image_transport republish compressed --ros-args -r in:=/topic/compressed_image -r out:=/target/image_repub

The target topic is created with the proper message type. However, when I echo the topic, I get no data. Any help would be great!

Asked by aihustle on 2022-09-23 09:19:03 UTC

Comments

this may help #q35183

Asked by ravijoshi on 2022-09-23 12:20:28 UTC

Answers