parrot ar drone sdk

Introduction to the AR. Posted by Gauth at 9:20 AM. What is the AR.Drone is a quadricopter created by Parrot. at a price of around 300 dollars. It is mainly used as a flying video game, and several games has been released using augmented reality. The drone has two cameras: one frontal and one vertical. The technical specifications can be found here. The drone can be controlled using any Wifi device. When the drone is turned on, it automatically creates a ad-hoc wifi. The controlling device connects to the wifi, and communicates with the drone. Parrot developed an application for the iPhone and the Android Phones, named AR.More applications created by other developers can be found on the AppStore, etc. Parrot released a SDK to help developers creating innovation applications using the drone. The SDK is available for iOS, Android, Linux and Windows. Linux and Windows SDK are using the C programming language. In this article, I will focus on the Linux SDK. The specifications of the communication’s protocol used by the drone is also available.

ARDroneAPI.dox: doxygen file, used to generate the documentation.Drone library (communication with the drone, video codecs etc.) ControlEngine: files specific to the iPhone. Docs: folder where the documentation is generated
ar drone 2 battery charger flashing red Examples: folder containing demonstration code for each platform and the ARDrone Tool. The archive contains more files than we need. We can remove the ControlEngine directory, and all the directories in Examples except the Linux one. The examples are useful for several reasons: To check that the system has all the needed libraries. To check that the computer can communicate with the drone The first step is to install the missing package. If you’re using Ubuntu, a script was developed to install them automatically. ARDroneLib/Soft/Build/check_dependencies.sh must be executed with the root privilege.

OK is displayed when all the packages are installed. When all the packages are installed, we are ready to compile the libraries and the examples: If you get the following error message: In file included from ..//VP_Com/vp_com_serial.h:22: error: expected ‘)’ before ‘*’ token you need to edit the file ARDroneLib/Soft/Build/custom.makefile and change the line We need to connect to the wifi created by the drone when It is turned on. Its name is ardrone_XXXXX, with XXXXX the ID of the drone. By default, only two IP addresses are used: 192.168.1.1 is the drone. 192.168.1.2 is the device that communicates with it. Thefore, when we are connected to the wifi, we need to set our IP address. We can use the following command: If the computer address is not 192.168.1.2, the drone won’t be able to communicate with the computer. Several examples have been compiled. The most useful one is Build/Release/ardrone_navigation. This graphical application is able to display all the information transmitted by the drone:

The application is able to control the drone movement using a Joystick. Refer to the Developer’s Guide for more information. Edit the file ARDroneLib/Soft/Build/custom.makefile and change the line undefined reference to symbol ‘some_gtk_function’ Some flags are probably missing in the Makefile. A way to fix it is to edit the file Examples/Linux/sdk_demo/Build/Makefile. To add the correct flags, change the following line: Timeout when reading navdatas – resending a navdata request on port 5554 One possibility is that your computer’s IP is not 192.168.1.2. You can set it with the following command line: The navigation data always contains zeros: This is an error I had with VMWare. I changed my IP (in this case, the eth0 IP) to 192.168.1.3 and since then, I don’t have any more errors like this one. I use the bridged mode to connect to the drone via AirPort. The check_dependencies.sh file is not installing the packages. Several problems can exist:

You are not using Ubuntu, and therefore the script cannot work. You need to manually install required packages. You are not running the script with the root privilege. Prefix your command line by sudo. The file temporary_file located in the same folder exists and indicates to the script that all the packages are installed. It can happen if you got an archive from an other computer, instead of the official SDK. You simply need to remove this file. Parrot AR Drone SDK v2.0.1 - ENHANCEDDrone SDK 2.0.1, now up-to-date to work with Android Studio. Parrot has dropped support for its ARDrone 2.0 (kind of). The Play Store app hasn't been updated since 2013. There was an official SDK, but it is no longer available online on the official developer page. Still it can be found (version 2.0.1 here for instance). It contains the source files for the SDK and sample apps on various platforms. Also, in the Android world, things have changed a lot since 2013.