Hi,
The wiki on compressed_image_transport says that it's possible to
directly publish a jpeg from a camera:
http://www.ros.org/wiki/compressed_image_transport#Publishing_compressed_images_directly
I'm trying to do exactly that, but I am having a hard time publishing
the image, using a compressed_image_transport::CompressedPublisher.
The publish function wants a PublishFn& as an argument. PublishFn is
mentioned in a tutorial
(
http://www.ros.org/wiki/image_transport/Tutorials/WritingNewTransport#The_Code_Explained)
but an implementation isn't shown.
Does anyone have an example of how to publish a jpeg directly as a
compressed image message?
Thanks!
kiwi