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

Are there somebodies use OpenCV2.2 with ROS ?

asked 2011-02-22 18:18:49 -0600

Yongqiang Gao gravatar image

updated 2011-02-22 18:36:12 -0600

Eric Perko gravatar image

I want to translate my previous code by opencv2.2 into ROS, and I have found many differences between opencv and ROS in image type and some other types. So I wander if some one have already developed a long time on it, please give me some advices?

Thanks a lot!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2011-02-23 02:27:14 -0600

Yogi gravatar image

ROS default install uses OpenCV 2.0 You can upgrade to 2.2 if you replace the ROS opencv2 package with the one available her: http://www.ros.org/wiki/vision_opencv just do svn co https://code.ros.org/svn/ros-pkg/stacks/vision_opencv/trunk and make it.

edit flag offensive delete link more

Comments

Just a note -- cturtle used OpenCV 2.0, diamondback/unstable are using 2.2
fergs gravatar image fergs  ( 2011-02-23 04:17:57 -0600 )edit
3

answered 2011-02-22 18:40:39 -0600

Eric Perko gravatar image

I suggest you take a look at the documentation for the vision_opencv stack. Diamondback will include OpenCV 2.2, so that shouldn't be a problem for you.

As far as the differences between OpenCV and ROS image types, the cv_bridge addresses these concerns. Make sure to read the tutorials linked to from the cv_bridge package documentation to learn how to convert ROS images to OpenCV images and vice versa. Because Cturtle and Diamondback have different cv_bridge APIs, you should make sure you have the proper version selected when viewing the tutorials.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-02-22 18:18:49 -0600

Seen: 617 times

Last updated: Feb 23 '11