https://github.com/venthur/python-ardrone
Python library for the AR.Drone
https://github.com/venthur/python-ardrone
Last synced: 9 months ago
JSON representation
Python library for the AR.Drone
- Host: GitHub
- URL: https://github.com/venthur/python-ardrone
- Owner: venthur
- Created: 2011-04-20T12:17:18.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2022-04-30T09:54:46.000Z (over 3 years ago)
- Last Synced: 2025-03-30T18:08:57.909Z (9 months ago)
- Language: Python
- Homepage:
- Size: 63.5 KB
- Stars: 238
- Watchers: 29
- Forks: 167
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://www.youtube.com/watch?v=2HEV37GbUow "Click to go to the video.")
A video of the library controlling a drone in action (click to jump to the video).
Getting Started:
----------------
```python
>>> import libardrone
>>> drone = libardrone.ARDrone()
>>> # You might need to call drone.reset() before taking off if the drone is in
>>> # emergency mode
>>> drone.takeoff()
>>> drone.land()
>>> drone.halt()
```
The drone's property `image` contains always the latest image from the camera.
The drone's property `navdata` contains always the latest navdata.
Demo:
-----
There is also a demo application included which shows the video from the drone
and lets you remote-control the drone with the keyboard:
RETURN - takeoff
SPACE - land
BACKSPACE - reset (from emergency)
a/d - left/right
w/s - forward/back
1,2,...,0 - speed
UP/DOWN - altitude
LEFT/RIGHT - turn left/right
Here is a [video] of the library in action:
[video]: http://youtu.be/2HEV37GbUow
Repository:
-----------
The public repository is located here:
git://github.com/venthur/python-ardrone.git
Requirements:
-------------
This software was tested with the following setup:
* Python 2.6.6
* Psyco 1.6 (recommended)
* Pygame 1.8.1 (only for the demo)
* Unmodified AR.Drone firmware 1.5.1
License:
--------
This software is published under the terms of the MIT License:
http://www.opensource.org/licenses/mit-license.php
