A Mesa implementation of flocking agents. The agent behavior is inspired by https://doi.org/10.1109/IROS.2014.6943105. The implementation is based on the boid_flockers example of the Mesa project.
Create a virtual Python environment:
python3 -m venv mesa
Activate the virtual environment:
cd mesa
source bin/activate
Get the source code:
git clone https://github.com/tropappar/flocking.git
Install requirements:
cd flocking
pip3 install -r requirements.txt
Switch to the folder containing the virtual environment and activate it:
cd mesa
source bin/activate
Run Mesa in the virtual environment:
cd flocking
mesa runserver
This opens the visualization in your default web browser.