Skip to content

The Code of the paper: "ABCS Flocking: A Leader-Follower Collision Free UAV Flocking System with Multi-Agent Reinforcement Learning"

License

Notifications You must be signed in to change notification settings

YunxiaoGuo/ABCS-Flocking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ABCS Flocking: A Leader-Follower Collision Free UAV Flocking System with Multi-Agent Reinforcement Learning

This is the Attention Based Cucker-Smale Flocking algorithm implementation on Multi-Agent Particle Environment(MPE), the corresponding paper is ABCS Flocking: A Leader-Follower Collision Free UAV Flocking System with Multi-Agent Reinforcement Learning

The MADDPG part is come from: MADDPG

Requirements

Or download the python environment directly: LG-CS.zip

Extract code: MARL

Complie Cython Code

Before running the code, please complie the environment code:

cd ./envs
python setup.py build_ext --inplace --force

Training Agents

Running the main.py, the agents will learn from the flocking scenario:

python main.py --n-agents=5 --evaluate-episodes=256

If you want to adjust the parameters, please see the ./common/arguments.py for more details.

Testing Agents

python main.py --n-agents=5 --evaluate-episodes=10 --evaluate=True

Display Results

After data collection:

python display.py

About

The Code of the paper: "ABCS Flocking: A Leader-Follower Collision Free UAV Flocking System with Multi-Agent Reinforcement Learning"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published