Before installing drone-pathgen, ensure you have the required system dependencies:
brew install ompl eigen boostsudo apt-get update
sudo apt-get install libompl-dev libeigen3-dev libboost-all-dev- Python: 3.8 - 3.12
- OS: Linux, macOS
- Compiler: C++17 compatible (GCC 7+, Clang 8+)
For basic trajectory planning functionality:
# Using uv (recommended)
uv add git+https://github.com/u-k-g/drone-pathgen.git
# Using pip
pip install git+https://github.com/u-k-g/drone-pathgen.gitFor 3D visualization capabilities (adds Open3D dependency):
# Using uv
uv add "git+https://github.com/u-k-g/drone-pathgen.git[viz]"
# Using pip
pip install "git+https://github.com/u-k-g/drone-pathgen.git[viz]"Test your installation:
import gcopter_cpp as gc
import numpy as np
# Create API instance
api = gc.GCopterAPI()
print("✅ drone-pathgen installed successfully!")
# Test basic functionality
map_size = np.array([10, 10, 5], dtype=np.int32)
origin = np.array([0.0, 0.0, 0.0])
obstacles = [np.array([2.0, 2.0, 1.0])]
api.configure_map(map_size, origin, 0.5, obstacles)
print("✅ Library functions working correctly!")# Create project with uv
uv init my-drone-project
cd my-drone-project
# Add drone-pathgen dependency
uv add "git+https://github.com/u-k-g/drone-pathgen.git[viz]"
# Run your code
uv run python main.pyAfter successful installation:
-
Read the User Guide for basic usage
-
Review the API Reference for detailed documentation
-
Check out examples/ for working code