This repository provides a ready-to-use template for creating new projects based on the Swarm Systems Lab (SSL) Simulator.
It includes recommended folder structures, example notebooks, controllers, robot models, and visualization tools.
You can quickly generate a new project using Cookiecutter.
- All files and folders inside
{{cookiecutter.project_slug}}/will be copied into your new project. - Use the
cookiecutter.jsonto customize project name, author, Python version, etc.
pip install cookiecutterFrom any folder, run:
cookiecutter https://github.com/Swarm-Systems-Lab/ssl_simulator_template.git- You will be prompted to fill in the project name, author, and other variables defined in
cookiecutter.json. - Example:
project_name [My Simulation Project]: MyFirstSim
project_slug [my_simulation_project]: my_first_sim
cd my_first_sim
treeYou will see the folder structure populated with:
src/containing example controllers, robot models, and visualization classesnotebooks/with starter Jupyter notebooksoutput/for simulation datarequirements.txtlisting project dependencies
Open the template notebook:
jupyter notebook notebooks/template.ipynb- It demonstrates how to define robots, add controllers, run the simulation, and visualize the results.