Building AR Drone SDK 2.0.1 on Linux
I tried to build this SDK on more variants of linux than I care to admit. It only works successfully out of the box on Ubuntu. Specifically, Ubuntu 12.04.5. I compiled this for use with my AR Drone 2, but I don’t see why it couldn’t be used with the AR Drone as well. There’s nothing here that makes the SDK specific to either model.
- Download Ubuntu 12.04.5 32bit. It probably works with 64bit (although I didn’t test it), if you really must use 64bit.
- Either install Ubuntu 12.04.5 alongside (dual boot) with another operating system, or in a virtual machine. I installed it in a VMware Fusion virtual machine on macOS. The Ubuntu operating system is agnostic, so it doesn’t really matter how you choose to virtualise it, if you do.
- Don’t install Ubuntu 12.04.5 updates during the installation process (leave the option unticked).
- Don’t install updates or upgrade Ubuntu to the next release when asked after the first login.
- Download the SDK (or copy it from somewhere to the Desktop).
- Open a terminal and change to your Desktop directory.
- # cd Desktop
- Unzip the SDK.
- # unzip ARDrone_SDK_2_0_1.zip
- Change to the ARDrone_SDK_2_0_1 directory
- # cd ARDrone_SDL_2_0_1 directory
- Run the following command (using sudo) to compile and install dependencies.
- # sudo ARDroneLib/Soft/Build/check_dependencencies.sh
- You’ll be asked to confirm installation of some packages, be sure to say Yes (y).
- # sudo ARDroneLib/Soft/Build/check_dependencencies.sh
- Run the following command (using sudo) to compile the linux binaries.
- # cd Examples\Linux
- # sudo make
- Wait for the SDK binaries to be compiled
- The binaries are built in /home/<username>/Desktop/ARDrone_SDL_2_0_1/Examples/Linux/Build/Release/. Move them to you desktop and make them accessible as follows.
- # sudo mv /home/<username>/Desktop/ARDrone_SDL_2_0_1/Examples/Linux/Build/Release/ /home/<username>/Desktop/ARDroneApps
- # sudo chown -R <username>:<username> /home/<username>/Desktop/ARDroneApps
- Run the apps! You’ll need to be connected to your AR Drone 2 WiFi network first of course. Make sure you don’t have the Free Flight app open on any smart phones or tablets at the same time, as this will interfere with communications between your computer and your drone.
- # cd /home/<username>/Desktop/ARDroneApps
- # ./ardrone_navigation
- # ./linux_sdk_demo
- # ./linux_video_demo
- # ./sym_ardrone_testing_tool