simple-scenario
Quickly generate prototype test scenarios for automated driving.
Examples
Generate all kinds of highway test scenarios from simple config files (see .json files in demo/examples/).
💡 To recreate these gifs use: demo/examples/generate_gifs.py.
Deceleration test scenario (example_scenario1.json):
Cut-in test scenario (example_scenario2.json):
Deceleration test scenario with surrounding traffic (example_scenario3.json):
Cut-in test scenario with surrounding traffic (example_scenario4.json):
💡 For more examples, see tutorials/.
Notice
Install
pip install simple-scenario
Use
simple-scenario offers a rich python API and a basic CLI for test scenario generation.
Python API
The python API supports various ways of generating and interacting with test scenarios.
Please conduct the tutorials/A_01_getting_started.ipynb to learn about the basic usage of simple-scenario.
Please find more in-depth examples in the test/ folder (E.g., test/test_scenario.py shows which input formats can be used).
💡 Have a look at the Dev section of this readme to find out how to setup the project and run the tutorial notebooks and tests.
CLI
The CLI supports generating a set of
- an OpenSCENARIO (
.xosc) - and an OpenDRIVE (
.xodr) file
for a given simple-scenario config file (.json) through the following command
simple-scenario create demo/cutout_example.json
Extras
commonroad-extra
⚠️ Needs python version 3.8
pip install simple-scenario[commonroad]
Enables advanced features like feasibility checking of the scenario (powered by the CommonRoad Drivability Checker) and exporting the scenario to the CommonRoad (CR) format.
Please conduct the tutorials/B_01_commonroad_extra.ipynb for more details.
lxd-extra
pip install simple-scenario[lxd]
Enables reading leveLXData datasets through lxd-io.
⚠️ Currently only the highD dataset is supported
Please conduct the tutorials/C_01_lxd_extra.ipynb for more details.
Dev
To develop simple-scenario, you must first clone the repository.
$ git clone git@github.com:ika-rwth-aachen/simple-scenario.git
$ cd simple-scenario
It is recommended to use uv for package management. If you do not want to use uv, please consult the Without uv section.
With uv
Install requirements with
$ uv sync
To run a script, use
$ uv run /path/to/script.py
or directly use the python interpreter from the .venv folder in e.g. VSCode.
To run the tests, install the dev requirements with
$ uv sync --dev
and run the tests
$ uv run pytest
To run the notebooks in the tutorials/ folder in VSCode, select the .venv's as the kernel (see here for more info).
Without uv
Install the project editable
$ python -m pip install -e .
To run the tests, first install pytest
$ python -m pip install pytest
and run
$ pytest
Acknowledgements
This package is developed as part of the SYNERGIES project.
Funded by the European Union. Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or European Climate, Infrastructure and Environment Executive Agency (CINEA). Neither the European Union nor the granting authority can be held responsible for them.
Metadata
Release files for simple-scenario 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| simple_scenario-1.0.1.tar.gz | 62.8 kB | With provenance | Details for simple_scenario-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| simple_scenario-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for simple_scenario-1.0.1-py3-none-any.whl |
Total release size: 125.4 kB
Release files / simple_scenario-1.0.1.tar.gz
| Download URL | simple_scenario-1.0.1.tar.gz |
|---|---|
| Size | 62.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac07b5faffe57bb7625b99892c483fc260220ae95c63349188bef31fcca81d23
|
|
BLAKE2b-256 checksum How to use checksums |
30fe4da5c9db3a2c54a1a1e82370aa262a7c345a4306b3b5496c2534111abc28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 12, 2026.
Transparency logRelease files / simple_scenario-1.0.1-py3-none-any.whl
| Download URL | simple_scenario-1.0.1-py3-none-any.whl |
|---|---|
| Size | 62.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a88a3c283cdc4241d9816ed364717772fb6605589f996c3de47b2682fa00a6a
|
|
BLAKE2b-256 checksum How to use checksums |
e0da46963494fc12c2dea4ba5579018dffaf6406d5adb871cb252e1b1d337f3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 12, 2026.
Transparency logSecurity for simple-scenario 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for simple_scenario-1.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 12, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.