[ros-users] Publishing jpeg images directly from a webcam

kiwi kiwi9864 at gmail.com
Fri Jun 3 05:14:02 UTC 2011


The wiki on compressed_image_transport says that it's possible to
directly publish a jpeg from a camera:

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
but an implementation isn't shown.

Does anyone have an example of how to publish a jpeg directly as a
compressed image message?


More information about the ros-users mailing list