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

You could write a program that uses cvbridge to convert a ROS Image to an openCV image (in a callback) and then in another thread perform whatever processing (including "mouse callbacks")

This would be equivalent to the tutorial example (minus the republishing, and with the addition of a main loop that looks like the talker from the publish and subscribe tutorial.

But answering the question "how can I export the CvImage from ROS image and use it in another .cpp file?"

You could write a program that uses cvbridge to convert a ROS Image to an openCV image and save to file (e.g. jpg) and then open that file with your external program, although I wouldn't recommend such an approach.