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

Revision history [back]

click to hide/show revision 1
initial version

You cannot use the /camera/rgb/image_raw/compressed (with sensor_msgs/CompressedImage) topic there since in the plugin the color image topic requires sensor_msgs/Image . You will need to decompress the images. For example, try using image_transport as suggested in this answer:

rosrun image_transport republish compressed in:=/camera/rgb/image_raw raw out:=/camera/rgb/image_raw

If you are wondering why the in:topic_name and out:topic_name are the same, it appears that image transport adds /compressed to the in:topic_name

You cannot use the /camera/rgb/image_raw/compressed (with sensor_msgs/CompressedImage) topic there since in the plugin the color image topic requires sensor_msgs/Image . You will need to decompress the images. For example, try using image_transport as suggested in this answer:

rosrun image_transport republish compressed in:=/camera/rgb/image_raw raw out:=/camera/rgb/image_raw

If you are wondering why the in:topic_name and out:topic_name are the same, it appears that image transport adds /compressed to the in:topic_name C:\fakepath\raw_compressed.png

You cannot use the /camera/rgb/image_raw/compressed (with sensor_msgs/CompressedImage) topic there since in the plugin the color image topic requires sensor_msgs/Image . You will need to decompress the images. For example, try using image_transport as suggested in this answer:

rosrun image_transport republish compressed in:=/camera/rgb/image_raw raw out:=/camera/rgb/image_raw

If you are wondering why the in:topic_name and out:topic_name are the same, it appears that image transport adds /compressed to the in:topic_name C:\fakepath\raw_compressed.png

You cannot use the /camera/rgb/image_raw/compressed (with sensor_msgs/CompressedImage) topic there since in the plugin the color image topic requires sensor_msgs/Image . You will need to decompress the images. For example, try using image_transport as suggested in this answer:

rosrun image_transport republish compressed in:=/camera/rgb/image_raw raw out:=/camera/rgb/image_raw

If you are wondering why the in:topic_name and out:topic_name are the same, it appears that image transport adds /compressed to the in:topic_name image description

You cannot use the /camera/rgb/image_raw/compressed (with sensor_msgs/CompressedImage) topic there since in the plugin the color image topic requires sensor_msgs/Image . You will need to decompress the images. For example, try using image_transport as suggested in this answer:

rosrun image_transport republish compressed in:=/camera/rgb/image_raw raw out:=/camera/rgb/image_raw

or if you have a launch file just add this:

<node name="republish" type="republish" pkg="image_transport" output="screen" args="compressed in:=/camera/rgb/image_raw raw out:=/camera/rgb/image_raw" />

If you are wondering why the in:topic_name and out:topic_name are the same, it appears that image transport adds /compressed to the in:topic_name image description

You cannot use the /camera/rgb/image_raw/compressed (with sensor_msgs/CompressedImage) topic there since in the plugin the color image topic requires sensor_msgs/Image . You will need to decompress the images. images and republish them. For example, try using image_transport as suggested in this answer:

rosrun image_transport republish compressed in:=/camera/rgb/image_raw raw out:=/camera/rgb/image_raw

or if you have a launch file just add this:

<node name="republish" type="republish" pkg="image_transport" output="screen" args="compressed in:=/camera/rgb/image_raw raw out:=/camera/rgb/image_raw" />

If you are wondering why the in:topic_name and out:topic_name are the same, it appears that image transport adds /compressed to the in:topic_name image description