Skip to content

Basic Usage with Python

Yunlong edited this page Aug 31, 2020 · 4 revisions

Install the Flightmare library flightlib

To run the reinforcement learning example, you have to first install flightmare library please follow the guide of Install with pip.

Install the Flightmare RL baselines flightrl

conda activate ENVNAME
cd /path/to/flightmare/flightrl

Train neural network controller using PPO

cd examples
python3 run_drone_control.py --train 1

Test a pre-trained neural network controller

cd examples
python3 run_drone_control.py --train 0
Clone this wiki locally