MageGuide is a Python project for controlling a drone using motion-capture (OptiTrack/NatNet) input.
Drone_Interface.py– primary entry script for mocap + drone controlwandInterface.py– wand-driven control scriptCustom_Drone_Commands.py/Custom_Drone_Commands_Gazebo.py– drone command helpersCustom_Mocap_Commands.py– mocap connection/stream helpersNatNetClient.py,MoCapData.py,DataDescriptions.py– NatNet data handling
python -m venv .venv
source .venv/bin/activate
pip install pymavlinkThen run one interface script:
python Drone_Interface.py
# or
python wandInterface.py- Make sure your NatNet stream is running before starting the scripts.
- Make sure your drone endpoint/simulator is available on the configured UDP port.