This repository contains code for simulating and analyzing Braitenberg vehicles with on-board stimuli sources.
- Python 3
- Matplotlib 3.5+ (for plots)
- PyGame (installable with pip)
Run multiple_sweeps.py
to generate the main figures in the paper (uncomment
sections as desired).
Run demo_interactive.py
to interact with a collective using a single
controllable very bright agent.
Run generate_demo.py
and then play_demo.py
after changing relevant settings
at the top of the files to generate a video of a single run.
Configuration files are in yaml format, in the configs/
folder.
Other files contain functionality that may be useful for running different types of simulations or improving the simulator:
robots.py
contains the agent model implementationutils.py
contains geometric and other helper functionsparam_sweep.py
contains functions for running parameter sweepsunit_test.py
contains tests for the simulator
Jack A. Defay Alli Nilles