Skip to content

A demonstration of multidrone control using PyBullet and the gym-pybullet-drones package.

Notifications You must be signed in to change notification settings

someyuck/pybullet-drones-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pybullet-drones-demo

A demonstration of multidrone control using PyBullet and the gym-pybullet-drones package.

Dependencies

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.

Running the simulation

After activating the virtual environment, run the simulations as follows:

One drone reaching a target point

python -m src.simple_path --num_drones=1

Two drones reaching their target points

python -m src.simple_path --num_drones=2

Four drones reaching consensus

  • 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.

Cleanup

Run bash clean.sh to remove the saved results and videos.

About

A demonstration of multidrone control using PyBullet and the gym-pybullet-drones package.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published