Ask Your Question

mikegao88's profile - activity

2018-04-16 18:43:59 -0600 received badge  Popular Question (source)
2012-09-28 15:40:04 -0600 answered a question AR Drone 2.0 video feed

I suggest that you use ROS as the bridge, then you could use a ROS interface package for ARDrone 2.0,

"ardrone_autonomy": https://github.com/AutonomyLab/ardrone_autonomy

It is well written, and also quite easy to use. Finally you could change the input video stream into OpenCV data structure through "cv_bridge" package of ROS.

Hope this could help.

2012-09-28 06:25:59 -0600 answered a question Problem with using Qt Functions '"createButton" of OpenCV2

Finally, I have found a temporary "way-around" solution:

The cause of this problem is that the current highgui lib used by ROS does not have the Qt support, so with such libs, the programmer could not use those new Qt functions in OpenCV.

So my way to solve it is to download the newest OpenCV 2.4.2 source from the official site, then compile it by myself, and then use the compiled new highgui libs to replace the old ones in ROS, then everything goes fine~

The compile procedure of OpenCV 2.4.2 on Ubuntu 12.04 can be easily found through Google.

2012-09-28 04:07:29 -0600 received badge  Student (source)
2012-09-28 04:01:40 -0600 asked a question Problem with using Qt Functions '"createButton" of OpenCV2

Hello, I use the integrated OpenCV of ROS (installed directly through ROS). The problem I encounter is that when I try to add a button to the image window using "cv::createButton" function, the build process always fails:

undefined reference to `cv::createButton(std::basic_string<char, std::char_traits<char="">, std::allocator<char> > const&, void ()(int, void), void*, int, bool)'

It seems that I should specify the parameter "WITH_QT:BOOL=ON", but how could I do this in the "CMakeLists.txt", as the rosmake system may not support the run time parameter specification? Or how should I configure my OpenCV?

I use ROS-Fuerte with Ubuntu 12.04 32bit, the version of OpenCV is

Version: 2.4.2-0precise-20120908-1632-+0000

Thanks for any help!!!!