MCPcopy
hub / github.com/dronekit/dronekit-python

github.com/dronekit/dronekit-python @v2.9.1 sqlite

repository ↗ · DeepWiki ↗ · release v2.9.1 ↗
304 symbols 1,163 edges 41 files 129 documented · 42%
README

DroneKit Python

dronekit_python_logo

PyPi published version Windows Build status OS X Build Status Linux Build Status

DroneKit-Python helps you create powerful apps for UAVs.

Overview

DroneKit-Python (formerly DroneAPI-Python) contains the python language implementation of DroneKit.

The API allows developers to create Python apps that communicate with vehicles over MAVLink. It provides programmatic access to a connected vehicle's telemetry, state and parameter information, and enables both mission management and direct control over vehicle movement and operations.

The API is primarily intended for use in onboard companion computers (to support advanced use cases including computer vision, path planning, 3D modelling etc). It can also be used for ground station apps, communicating with vehicles over a higher latency RF-link.

Getting Started

The Getting Started guide explains how to set up DroneKit on each of the supported platforms (Linux, Mac OSX, Windows) and how to write a script to connect to a vehicle (real or simulated).

A basic script looks like this:

from dronekit import connect, VehicleMode

# Connect to UDP endpoint.
vehicle = connect('127.0.0.1:14550', wait_ready=True)
# Use returned Vehicle object to query device state - e.g. to get the mode:
print " Mode: %s" % vehicle.mode.name

Once you've got DroneKit set up, the guide explains how to perform operations like taking off and flying the vehicle. You can also try out most of the tasks by running the examples.

Resources

The project documentation is available at python.dronekit.io. This includes guide, example and API Reference material.

The example source code is hosted here on Github as sub-folders of /dronekit-python/examples.

The DroneKit Forums are the best place to ask for technical support on how to use the library. You can also check out our Gitter channel though we prefer posts on the forums where possible.

Users and contributors wanted!

We'd love your feedback and suggestions about this API and are eager to evolve it to meet your needs, please feel free to create an issue to report bugs or feature requests.

If you've created some awesome software that uses this project, let us know on the forums here!

If you want to contribute, see our Contributing guidelines, we welcome all types of contributions but mostly contributions that would help us shrink our issues list.

Licence

DroneKit-Python is made available under the permissive open source Apache 2.0 License.


Copyright 2015 3D Robotics, Inc.

Core symbols most depended-on inside this repo

connect
called by 38
dronekit/__init__.py
notify_attribute_listeners
called by 30
dronekit/__init__.py
close
called by 27
dronekit/__init__.py
wait_ready
called by 21
dronekit/__init__.py
errprinter
called by 19
dronekit/util.py
send_mavlink
called by 16
dronekit/__init__.py
download
called by 14
dronekit/__init__.py
add
called by 14
dronekit/__init__.py

Shape

Method 184
Function 88
Class 31
Route 1

Languages

Python100%

Modules by API surface

dronekit/__init__.py153 symbols
dronekit/mavlink.py26 symbols
examples/drone_delivery/drone_delivery.py24 symbols
examples/guided_set_speed_yaw/guided_set_speed_yaw.py11 symbols
examples/performance_test/performance_test.py8 symbols
examples/create_attribute/my_vehicle.py7 symbols
examples/mission_basic/mission_basic.py6 symbols
examples/vehicle_state/vehicle_state.py5 symbols
examples/mission_import_export/mission_import_export.py5 symbols
dronekit/test/sitl/test_waypoints.py5 symbols
dronekit/test/__init__.py5 symbols
examples/flight_replay/flight_replay.py4 symbols

Dependencies from manifests, versioned

dronekit-sitl3.2.0 · 1×
future0.15.2 · 1×
mock2.0.0 · 1×
monotonic1.2 · 1×
nose1.3.7 · 1×
pymavlink2.0.6 · 1×
sphinx-3dr-theme0.4.3 · 1×

For agents

$ claude mcp add dronekit-python \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact