Skip to content

IntelLabs/scenario_execution

Repository files navigation

Scenario Execution

Super-Linter

Scenario execution is a backend- and middleware-agnostic library written in Python based on the generic scenario description language OpenSCENARIO 2 and pytrees. 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 and ROS 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.

Setup

Installation from source as ROS 2 workspace

Clone this repository, update its submodules by running:

git submodule update --init

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 launch scenario_execution_ros scenario_launch.py scenario:=examples/example_scenario/hello_world.osc live_tree:=True