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

I am not sure if directly subscribing to a compressed image topic and displaying it in rviz is possible. You can use image transport to decompress and then visualize the raw image using

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

Also if you just want to view the image you can use image_view like

rosrun image_view image_view image:=/camera/rgb/image_raw _image_transport:=compressed

I am not sure if directly subscribing to a compressed image topic and displaying it in rviz is possible. You can use image transport to decompress and then visualize the raw image using

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

Also if you just want to view the image you can use image_view like

rosrun image_view image_view image:=/camera/rgb/image_raw _image_transport:=compressed

I am not sure if directly subscribing to a compressed image topic and displaying it in rviz is possible. You can use image transport to decompress and then visualize the raw image using

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

Also if you just want to view the image you can use image_view like

rosrun image_view image_view image:=/camera/rgb/image_raw _image_transport:=compressed

EDIT:

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