CommonRoad STL Monitor
CommonRoad STL Monitor is a toolbox to evaluate the robustness of model-free and model-predictive robustness on CommonRoad scenarios using signal temporal logic.
Getting Started
Installation
The toolbox is installable as a regular PyPI package:
pip install commonroad-stl-monitor
Additionally, you can install extras like visualization to enable advanced AST visualizations. The visualization requires a working graphiz installation, which you should be able to source from your distros package registry.
pip install commonroad-stl-monitor[visualization]
Example Usage
from commonroad.common.file_reader import CommonRoadFileReader
from crmonitor.common import World
from crmonitor.evaluation import OfflineRuleEvaluator
scenario_path = "../scenarios/test_interstate/DEU_test_safe_distance.xml"
# Open the scenario
scenario, _ = CommonRoadFileReader(scenario_path)
# Create a world state, which is a holder class for intermediate results produced by the monitoring.
# Use the convenience class method to create with default configuration from a scenario.
world = World.create_from_scenario(scenario)
# Create a rule evaluator for the traffic rule 'R_G1'
rule_evaluator = OfflineRuleEvaluator.create_for_rule("R_G1", dt=world.dt)
ego_vehicle = next(iter(world.vehicles))
# Evaluate the robustness across the whole time frame the ego vehicle is defined.
robustness = rule_evaluator.evaluate(world, ego_vehicle.vehicle_id)
Documentation
The full documentation can be found at cps.pages.gitlab.lrz.de/commonroad/commonroad-stl-monitor.
Metadata
Release files for commonroad-stl-monitor 2025.1.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 |
|---|---|---|---|---|
| commonroad_stl_monitor-2025.1.1.tar.gz | 14.5 MB | Without provenance | Details for commonroad_stl_monitor-2025.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| commonroad_stl_monitor-2025.1.1-py3-none-any.whl | Python 3 | none | any | Details for commonroad_stl_monitor-2025.1.1-py3-none-any.whl |
Total release size: 29.4 MB
Release files / commonroad_stl_monitor-2025.1.1.tar.gz
| Download URL | commonroad_stl_monitor-2025.1.1.tar.gz |
|---|---|
| Size | 14.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
405306b6d68050f7241a7b6e08115a6b17e1de7ce54a5ef7f2fc389812fe3971
|
|
BLAKE2b-256 checksum How to use checksums |
f731cb34dad0f614deaa37f9e137d8fc9ee4afc13f78022e49a9200336d9aec7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.10.18 Linux/5.15.0-87-generic
|
Release files / commonroad_stl_monitor-2025.1.1-py3-none-any.whl
| Download URL | commonroad_stl_monitor-2025.1.1-py3-none-any.whl |
|---|---|
| Size | 14.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1d39eb2a73e8dcfa696a20307d68b18d25d036e70433d98da3ddb5386f415504
|
|
BLAKE2b-256 checksum How to use checksums |
c0e4597fd2b45f567f288c37325e4d68fbab5bbc1a533c9edf1fa610129ec8e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.10.18 Linux/5.15.0-87-generic
|
Security for commonroad-stl-monitor 2025.1.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.