Search code examples
visual-studio-2015linkeropenframeworksar.drone

Connecting OpenFrameWorks with exciting project VS2015


I want to make a awesome user interface using openframeworks for a drone project. I am using CVDrone project as my base, and want to able to connect CVDrone project to my openframeworks project, so that I can call functions from CVDrone in my openframeworks project.

If I run the two projects separately, they works perfectly, no errors or anything. But can't connect them.

I have given it a go, but VS 2015 trows all kind of errors at me. Everything from libraries not found to .dll files missing.


Solution

  • You have a couple of options. A hacky option, but pragmatic in terms of time and experience with c++, would be to have two programs, a CVDrone and an OF one, talking to each other over sockets on the same computer. OSC makes it easy to pass arguments and not have to worry about parsing data. In terms of streaming frames, you might want to check out spout.

    However, quickly going through the CVDrone project, and it's samples, it should be possible to integrate the project into an OpenFrameworks projects. I recommend trying ofxCV to use OpenCV directly. You will need to swap the OpenCV 2 for the OpenCV 3 libraries (headers/dlls) though and of course the ardrone classes to your project.