A demonstration of multidrone control using PyBullet and the gym-pybullet-drones package.
gym-pybullet-drones
is used as the simulation environment, as it provides easy-to-use control of
multiple drones in an agent-environment setting.
Install it by following the steps in the official repository.
Note: Use the main
branch, and not the master
branch.
After activating the virtual environment, run the simulations as follows:
python -m src.simple_path --num_drones=1
python -m src.simple_path --num_drones=2
- Starting with all drones in a line:
python -m src.swarm --init_pos=0
- Starting with all drones in a square shape:
python -m src.swarm --init_pos=1
- Starting with all drones in random positions:
python -m src.swarm --init_pos=2
The number of drones can be changed by passing a value to the --num_drones
flag.
Run bash clean.sh
to remove the saved results and videos.