ros-perception / image_common

Common code for working with images in ROS
http://www.ros.org/wiki/image_common
125 stars 220 forks source link

image_transport::CameraPublisher does not support cv::Mat Type adapter #266

Open Yadunund opened 1 year ago

Yadunund commented 1 year ago

PR https://github.com/ros-perception/vision_opencv/pull/441 introduced a type adapter between cv::Mat and Image msg.

It would be great if the image_transport::CameraPublisher also supported publishing with this type adapter. I'm happy to work on this feature if no one else is already working on it.

I can add an overloaded function here to publish a unique_ptr of the adapter. Subsequently also change the publisher in the Impl class to a type adapted one.

This would enable users to setup ImagePublishers that supports type adaptation internally.