Camera controlled crazyflie

Firmware/software/electronics/mechanics
peterh
Beginner
Posts: 11
Joined: Sun Apr 12, 2015 8:21 am

Re: Camera controlled crazyflie

Post by peterh »

deathbrad wrote:Hi

I get this error :

CFRadioController.h :
Lexical or Processor issue
"thread not found"
In the file include from /Users/.../flightdynamics/CameraDetection/CFRadioController.cpp:10:

I am running on OSX 10.10 and xcode 6.3.2
Sorry I thought you are talking about CFRadio lib, you got this error because you need to enable C++ 11 support for <thread>
deathbrad
Beginner
Posts: 4
Joined: Tue May 19, 2015 6:40 pm

Re: Camera controlled crazyflie

Post by deathbrad »

HI,

Now on Xcode in "build setting" on C++ Standard Library i set : libc++ (LLVM C++ standard library withC++11 support)
With this setting i get some errors :

Undefined symbols for architecture x86_64:
"cv::Algorithm::getList(std::__1::vector<cv::String, std::__1::allocator<cv::String> >&)", referenced from:
CMT::initialise(cv::Mat, cv::Point_<float>, cv::Point_<float>) in CMT.o
"cv::_InputArray::getMatVector(std::__1::vector<cv::Mat, std::__1::allocator<cv::Mat> >&) const", referenced from:
vtable for cv::_InputOutputArray in StaticTracking.o
vtable for cv::_InputOutputArray in DynamicTracking.o
vtable for cv::_InputOutputArray in BallTracking.o
vtable for cv::_InputOutputArray in CMT.o
"cv::_InputArray::getUMatVector(std::__1::vector<cv::UMat, std::__1::allocator<cv::UMat> >&) const", referenced from:
vtable for cv::_InputOutputArray in StaticTracking.o
vtable for cv::_InputOutputArray in DynamicTracking.o
vtable for cv::_InputOutputArray in BallTracking.o
vtable for cv::_InputOutputArray in CMT.o
"cv::FeatureDetector::detect(cv::_InputArray const&, std::__1::vector<cv::KeyPoint, std::__1::allocator<cv::KeyPoint> >&, cv::_InputArray const&) const", referenced from:
CMT::initialise(cv::Mat, cv::Point_<float>, cv::Point_<float>) in CMT.o
CMT::processFrame(cv::Mat) in CMT.o
"cv::DescriptorMatcher::knnMatch(cv::_InputArray const&, cv::_InputArray const&, std::__1::vector<std::__1::vector<cv::DMatch, std::__1::allocator<cv::DMatch> >, std::__1::allocator<std::__1::vector<cv::DMatch, std::__1::allocator<cv::DMatch> > > >&, int, cv::_InputArray const&, bool) const", referenced from:
CMT::processFrame(cv::Mat) in CMT.o
"cv::DescriptorExtractor::compute(cv::_InputArray const&, std::__1::vector<cv::KeyPoint, std::__1::allocator<cv::KeyPoint> >&, cv::_OutputArray const&) const", referenced from:
CMT::initialise(cv::Mat, cv::Point_<float>, cv::Point_<float>) in CMT.o
CMT::processFrame(cv::Mat) in CMT.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


That's why initialy I had changed "libc++ (LLVM C++ standard library withC++11 support)" with libstdc++(GNU C++ standard library)


Sorry it seem not easy to use for me, I don't have developer experience.
jdanielp
Beginner
Posts: 1
Joined: Sun Aug 30, 2015 6:58 pm

Re: Camera controlled crazyflie

Post by jdanielp »

The video looks great, but the link to bitbucket is dead. Any chance you can make it public again?
derf
Expert
Posts: 163
Joined: Fri May 31, 2013 12:17 am
Location: Germany

Re: Camera controlled crazyflie

Post by derf »

This link should work: https://bitbucket.org/flightdynamics/crazyflie
(found it in the comments of the YouTube video)
Peter
Beginner
Posts: 18
Joined: Sun Sep 06, 2015 3:00 pm

Re: Camera controlled crazyflie

Post by Peter »

Hello, nice work
I am a developer too, i want to know how to send the data of the sensor(camera) to the drone ?
could you explain me how to calculate the error.
How do you set the desired points ?
Thanks
Post Reply