Swarm-IITKgp/SimpleSwarmSimulator

Name: SimpleSwarmSimulator

Owner: Swarm IIT Kharagpur

Description: A simple simulator for testing algorithms for Swarm Projects.

Created: 2017-03-17 17:47:53.0

Updated: 2017-03-21 10:00:43.0

Pushed: 2018-03-01 19:54:50.0

Homepage: null

Size: 9

Language: C++

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Swarm_Simulator

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:

1) Clone the repository and cd into the cloned directory. 2) Run the following commands (Need to do it only once) make Start make Output g++ -std=c++11 -pthread Simulator.cpp -o Simulator 3) Make the algorithms: For each algorithm, run make <algorithm_name>. To make test: run make test To make test2: run make test2 To make circle: run make circle To make the manual destination input: run make destination 3) Run the Simulator ./Simulator <algorithm_name> (use the flag: --dest-screen to manually give the destination points) (use the flag: circle to 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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.