Does a Python node subscribed to CompressedImage messages need to use image_transport republish?

asked 2014-10-25 23:56:28 -0500

basheersubei gravatar image

I have a Python ROS node that subscribes to a topic of message type CompressedImage. So far it works fine (I play a rosbag with compressed images, run my node, and it correctly reads them [I checked using cv2.imshow()].

I'm probably misunderstanding what the point of compressed_image_transport is. My question is:

If I have a ROS node (say usb_cam) publishing compressed image messages, and my Python node subscribes to those compressed images (specifying sensor_msgs.msg.CompressedImage as the message type), why would I ever need image_transport or republish for my node (I know image_transport is being used in the publishing node, i.e. usb_cam, but not in my Python node). What's the point of image_transport republish in such a case?

edit retag flag offensive close merge delete


bump? bump bump bump?

basheersubei gravatar image basheersubei  ( 2014-10-30 00:53:32 -0500 )edit