Skip to content

Software

Scenario Execution for Robotics

By cps-test-lab, from github.com/cps-test-lab/scenario-execution (opens in a new tab)

  • Middleware
  • Framework
  • Apache-2.0

A Python library that reads robotics scenario definitions written in the OpenSCENARIO DSL and executes them, reusing existing checks and actions. It is independent of backend and middleware.

Facts

GitHub stars
10read on 29 Nov 2026
Last update
18 Nov 2026Newest commit on main
Maintenance
Activea commit in the last 90 days
Difficulty
Intermediate

Checked on GitHub on 29 Nov 2026.

Licenses

Code
Apache-2.0 (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (Apache-2.0) at commit 47ad467 (opens in a new tab), on 22 Nov 2026.

Commercial use
Yes

At a glance

What it is
  • Reads a scenario definition from a file and runs it using pytrees.
  • Keeps scenario descriptions separate from their implementation, reducing manual effort in scenario creation.
  • Extensible through a library mechanism for adding new checks and actions.
  • Shown in an example with a turtlebot-like robot using Nav2 and ROS to reach a navigation goal in simulation.
  • Includes a ROS 2 entry point that launches a scenario from an .osc file.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
Apache-2.0. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's website (opens in a new tab)
Maintenance
Active, last commit on 18 Nov 2026.

Use it

How to install it, in the creator's words: The project's website (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit 47ad467

Robotheca read the repository at two versions: the summary at fba8f71 and the facts and the README at 47ad467 (read on 29 Nov 2026).

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: README.md by cps-test-lab, at commit 47ad467, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

Scenario Execution

Scenario execution is a backend- and middleware-agnostic library written in Python based on the generic scenario description language OpenSCENARIO DSL (opens in a new tab) and pytrees (opens in a new tab). It reads a scenario definition from a file and then executes it, reusing available checks and actions. It is easily extendable through a library mechanism. This separation of the scenario definition from implementation massively reduces the manual efforts of scenario creation.

To give an impression of the functionality of scenario execution, the following animation shows an example scenario with a turtlebot-like robot in simulation using Nav2 (opens in a new tab) and ROS (opens in a new tab) as middleware to navigate towards a specified navigation goal in a simulated warehouse environment. Once the robot reaches a reference position a box is spawned in front of the robot as an unmapped static obstacle that needs to be avoided. Upon arrival of the goal position, the scenario ends and the simulation gets cleaned up.

scenario execution in action

Documentation

Please find the documentation here (opens in a new tab).

How to cite

If you use Scenario Execution for Robotics in your scientific work, please cite our paper Scenario Execution for Robotics: A generic, backend-agnostic library for running reproducible robotics experiments and tests (opens in a new tab)

@Article{Pasch2024,
  author = {Pasch, Frederik and Mirus, Florian and Zhang, Yongzhou and Scholl, Kay-Ulrich},
  title = {Scenario Execution for Robotics: A generic, backend-agnostic library for running reproducible robotics experiments and tests},
  journal = {Computing Research Repository (CoRR)},
  year = {2024},
  eprint = {2409.07080},
  archivePrefix = {arXiv},
  primaryClass = {cs.RO},
  url = {https://arxiv.org/abs/2409.07080},
}
Setup
Installation from source as ROS 2 workspace

Clone this repository and install the necessary dependencies:

rosdep install  --from-paths . --ignore-src
pip3 install -r requirements.txt

and build it

colcon build
How to run

First, build the packages:

colcon build
source install/setup.bash

To launch a scenario with ROS2:

ros2 run scenario_execution_ros scenario_execution_ros examples/example_scenario/hello_world.osc -t

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.