We recommend creating a dedicated virtual environment to avoid conflicts with other Python packages:
python -m venv venv
source venv/bin/activate # Linux/macOS
# venv\Scripts\activate # WindowsThen, install the package in editable mode to allow development changes:
pip install --upgrade pip
pip install -e .Installing with -e (editable) ensures that any changes to the source code are reflected immediately without reinstalling.
If you want to use this package in a project, you can add the following line to your requirements.txt file:
git+https://github.com/Swarm-Systems-Lab/ssl_simulator_vista.git
⚠️ All dependencies, including the simulator and PyVista, are specified inpyproject.tomlto ensure compatibility. Do not modify dependency versions to guarantee stable and reproducible environments.
You can launch the application from anywhere once the virtual environment is active:
sslvista-l/--layout: Layout type (name fromgrid_layoutsfolder) or relative path to a.jsonlayout file.-ll/--list-layouts: Show all available layouts from thegrid_layoutsfolder and exit.-data/--data-path: Path to a CSV data file (or sample name from thesamplesfolder).-ld/--list-data: Show all available testing data samples and exit.-ap/--auto-play: Automatically start the simulation upon loading (data file required).-dbg/--debug: Enable debug mode for detailed logging.-dbgi/--debug-info: Enable debug information display in the application.
# List available layouts
sslvista -ll
# Use a default 3D layout (providing -data is optional)
sslvista -l 3d_canvas -data ./data/my_simulation.csv -ap
# Use a custom layout file
sslvista -l ./layouts/custom_layout.json -data ./data/my_simulation.csv- Jesús Bautista Villar (jesbauti20@gmail.com) – Main Developer