This is a simple swarm simulator for the purpose of testing the algorithms to be applied on the bots.
The circle.cpp file contains the algorithm for the formation of a circle from a given number of bots.
Building:
- Clone the repository and cd into the cloned directory.
- Run the following commands (Need to do it only once)
make Startmake Outputg++ -std=c++11 -pthread Simulator.cpp -o Simulator - Make the algorithms: For each algorithm, run
make <algorithm_name>. To make test: runmake testTo make test2: runmake test2To make circle: runmake circleTo make the manual destination input: runmake destination - Run the Simulator
./Simulator <algorithm_name>(use the flag:--dest-screento manually give the destination points) (use the flag:circleto run the circle formation algorithm)
To spawn the bots select the points by left-clicking on them. To run the simulation right-click on the arena.