ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

You probably want to structure things so all the code is in a ros package (with a package.xml) and there is a top level CMakeLists.txt that builds the library (with add_library), the opencv standalone executable, and a ros node executable.

The ros node is going to be somewhat similar to the opencv executable, you could start with an example ros image subscriber http://wiki.ros.org/image_transport/Tutorials/SubscribingToImages , and then you'll also have to launch a node that publishes images from your camera- usb_cam for example if you are using a webcam.