Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Did you happen to see this: http://www.ros.org/wiki/cv_bridge/Tutorials/UsingCvBridgeToConvertBetweenROSImagesAndOpenCVImages

This tutorial seems to be an exact match to your question. Another one, that I found helpful (with LOTS of comments in the code) is http://siddhantahuja.wordpress.com/2011/07/20/working-with-ros-and-opencv-draft/

It's written for diamondback but works just as well in electric.

If you'd rather write nodes in python: http://www.pirobot.org/blog/0016/ this is a nice little Head-tracking tutorial (using openCV). You can skip the part related to the actual robot. They're all at quite modest levels of difficulty and show some slightly different ways of achieving the same thing. You can also manipulate the image from the ros message directly if you're just doing something simple (like inverting the colors) that doesn't really require openCV.

Did you happen to see this: http://www.ros.org/wiki/cv_bridge/Tutorials/UsingCvBridgeToConvertBetweenROSImagesAndOpenCVImages

This tutorial seems to be an exact match to your question. Another one, that I found helpful (with LOTS of comments in the code) is http://siddhantahuja.wordpress.com/2011/07/20/working-with-ros-and-opencv-draft/

It's written for diamondback but works just as well in electric.

If you'd rather write nodes in python: http://www.pirobot.org/blog/0016/ this is a nice little Head-tracking tutorial (using openCV). You can skip the part related to the actual robot.

They're all at quite modest levels of difficulty and show some slightly different ways of achieving the same thing. doing things in ROS. You can also manipulate the image from the ros message directly if you're just doing something simple (like inverting the colors) that doesn't really require openCV.