No project description provided
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file commonroad_stl_monitor-2025.1.1.tar.gz.
File metadata
- Download URL: commonroad_stl_monitor-2025.1.1.tar.gz
- Upload date:
- Size: 14.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.10.18 Linux/5.15.0-87-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
405306b6d68050f7241a7b6e08115a6b17e1de7ce54a5ef7f2fc389812fe3971
|
|
| MD5 |
21666a5d858ccbd0b4368466e47f97bc
|
|
| BLAKE2b-256 |
f731cb34dad0f614deaa37f9e137d8fc9ee4afc13f78022e49a9200336d9aec7
|
File details
Details for the file commonroad_stl_monitor-2025.1.1-py3-none-any.whl.
File metadata
- Download URL: commonroad_stl_monitor-2025.1.1-py3-none-any.whl
- Upload date:
- Size: 14.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.10.18 Linux/5.15.0-87-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d39eb2a73e8dcfa696a20307d68b18d25d036e70433d98da3ddb5386f415504
|
|
| MD5 |
51b725152e4f4cb01bdab31cf0e9201e
|
|
| BLAKE2b-256 |
c0e4597fd2b45f567f288c37325e4d68fbab5bbc1a533c9edf1fa610129ec8e3
|