Generates an optimized flight plan for drones to conduct precise and efficient aerial mapping
Project description
Drone Flightplan
Generates waypoints for drone and creates a flightplan
📖 Documentation: https://hotosm.github.io/drone-flightplan/
🖥️ Source Code: https://github.com/hotosm/drone-flightplan
Overview
The Drone Flightplan Generator is a Python package designed to automate the creation of flight plans for drones. This tool is essential for users needing efficient and precise aerial surveys, mapping, and imagery collection.
Installation
To install the package, use pip
pip install drone-flightplan
Usage
To get the drone waypoints for a given Geojson Polygon AOI, we can do this:
from drone_flightplan.waypoints import create_waypoint
create_waypoint(
polygon_geojson,
altitude_above_ground_level,
forward_overlap,
side_overlap,
generate_each_points,
generate_3d,
)
Parameters:
- polygon_geojson = Geojson Polygon AOI
- altitude_above_ground_level = The height at which you want to fly the drone from ground level
- forward_overlap = Forward Overlap you want in the imageries
- side_overlap = Desired Side Overlap you want in the imageries
- generate_each_points (bool) : True if you want waypoints and False if you want waylines
- generate_3d : True if you want to generate 3d imageries. False if you just want 2d imageries. 3d imageries will take photos ad 3 different angles (-90, -45 and lateral 45 degree angle)
Waypoint File
DJI drones requires waypoint file. WPML route files all end with a ".kmz" suffix and are essentially archive files packed in ZIP format. After decompression of a standard WPML route file, its file structure is as follows
You can find more on this from the documentation here.
You can get the waypoint file following this steps:
from drone_flightplan import flightplan
flightplan.generate_flightplan(
project_area,
altitude_above_ground_level,
forward_overlap,
side_overlap,
generate_each_points,
generate_3d,
output_file_path
)
Parameters:
- polygon_geojson = Geojson Polygon AOI
- altitude_above_ground_level = The height at which you want to fly the drone from ground level
- forward_overlap = Forward Overlap you want in the imageries
- side_overlap = Desired Side Overlap you want in the imageries
- generate_each_points (bool) : True if you want waypoints and False if you want waylines
- generate_3d : True if you want to generate 3d imageries. False if you just want 2d imageries. 3d imageries will take photos ad 3 different angles (-90, -45 and lateral 45 degree angle)
- output_file_path: The path where you want your output flightplan
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file drone_flightplan-0.3.1rc1.tar.gz
.
File metadata
- Download URL: drone_flightplan-0.3.1rc1.tar.gz
- Upload date:
- Size: 32.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.9.3 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2fd5961a4cf8119cbdbf2a4137f323b4ab7507ca5f38728e48370f6814a2cbb |
|
MD5 | 1db17555ee16ea415db9941d04684c67 |
|
BLAKE2b-256 | d757285e63105173201e87dd80f61962a040eaacffd6d19578459fc4583b4358 |
File details
Details for the file drone_flightplan-0.3.1rc1-py3-none-any.whl
.
File metadata
- Download URL: drone_flightplan-0.3.1rc1-py3-none-any.whl
- Upload date:
- Size: 37.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.9.3 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | baf7dd87a8487078a3063f15ee385ac27beb38f2c4c6f6c95b9cf3572037e95f |
|
MD5 | e2a86c9635d5565c03e334886450d2cc |
|
BLAKE2b-256 | a425663fc7f51d76e430e9b2c797b79226246ff2cbce847dee8887446c59f3b9 |