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

Using openCV in ROS to stream images from AR-Drone

asked 2013-08-18 08:53:01 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi everyone, I would like to use openCV to process images from an AR-Drone 2.0. I would like the images to be streamed into openCV from the AR-Drone 2.0 but I do not know how to set this up. I am using the ardrone_autonomy to interface the Ardrone 2.0 with ROS and that is setup already. I noticed a section on cameras link:text however it does not talk about openCV support with this image stream (I think it just shows an image feed to the computer).

Any links to this problem would be greatly appreciated!

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-08-18 09:03:10 -0500

cv_bridge can convert images to opencv types. The cv_bridge tutorials have examples in python and C++ of subscribing to images and converting them for use with opencv.

edit flag offensive delete link more

Comments

Brilliant. Thank you Dan :)

JP gravatar image JP  ( 2013-08-18 09:29:40 -0500 )edit

Just to check with you, should I download the latest stable release of openCV? Does the version matter in terms of working well with cv_bridge?

JP gravatar image JP  ( 2013-08-18 09:50:39 -0500 )edit

If you're using ROS groovy or earlier, you should use the version packaged with ROS. Hydro or later, I'm not sure.

Dan Lazewatsky gravatar image Dan Lazewatsky  ( 2013-08-18 11:59:14 -0500 )edit

I am using ROS Fuerte. When you say a version packaged with ROS, do you mean this:http://www.ros.org/browse/details.php?distro=fuerte&name=vision_opencv I am slightly confused how to install this if the above is what I should have.

JP gravatar image JP  ( 2013-08-18 13:27:27 -0500 )edit

Yep, that's right. You can install it with apt-get install ros-fuerte-vision-opencv if you're using Ubuntu.

Dan Lazewatsky gravatar image Dan Lazewatsky  ( 2013-08-18 15:48:34 -0500 )edit

I noticed that I already had vision_opencv within \opt\ros\fuerte\stacks ! Is it best to download something like eclipse? Also, how can I check what version for opencv this is?

JP gravatar image JP  ( 2013-08-18 23:57:40 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2013-08-18 08:53:01 -0500

Seen: 883 times

Last updated: Aug 18 '13