MCPcopy Index your code
hub / github.com/carla-simulator/scenario_runner

github.com/carla-simulator/scenario_runner @v0.9.16

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.9.16 ↗ · + Follow
5,366 symbols 13,044 edges 192 files 1,457 documented · 27% updated 7d agov0.9.16 · 2025-09-29★ 668167 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

License: MIT GitHub tag (latest SemVer) Build Status

ScenarioRunner for CARLA

This repository contains traffic scenario definition and an execution engine for CARLA. It also allows the execution of a simulation of the CARLA Challenge. You can use this system to prepare your agent for the CARLA Challenge.

Scenarios can be defined through a Python interface, and with the newest version the scenario_runner also the upcoming OpenSCENARIO standard and OpenSCENARIO 2.0 standard is supported.

Read the documentation here.

Scenario_Runner for CARLA

Getting the ScenarioRunner

Use git clone or download the project from this page. Note that the master branch contains the latest fixes and features, and may be required to use the latest features from CARLA.

It is important to also consider the release version that has to match the CARLA version.

To use a particular version you can either download the corresponding tarball or simply checkout the version tag associated to the release (e.g. git checkout v0.9.5)

Currently no build is required, as all code is in Python.

Using the ScenarioRunner

Please take a look at our Getting started documentation.

Challenge Evaluation

The CARLA Challenge has moved to the CARLA Autonomous Driving Leaderboard. Please see the leaderboard repository and the getting started guide for more information.

Contributing

Please take a look at our Contribution guidelines.

FAQ

If you run into problems, check our FAQ.

License

ScenarioRunner specific code is distributed under MIT License.

Core symbols most depended-on inside this repo

find
called by 309
srunner/tests/carla_mocks/carla.py
visit_children
called by 168
srunner/osc2/ast_manager/ast_vistor.py
get_waypoint
called by 164
srunner/tests/carla_mocks/carla.py
get_location
called by 141
srunner/scenariomanager/carla_data_provider.py
enterRule
called by 133
srunner/osc2/osc2_parser/OpenSCENARIO2Parser.py
exitRule
called by 133
srunner/osc2/osc2_parser/OpenSCENARIO2Parser.py
set_children
called by 132
srunner/osc2/ast_manager/ast_node.py
distance
called by 120
srunner/tests/carla_mocks/carla.py

Shape

Method 4,521
Class 700
Function 145

Languages

Python100%

Modules by API surface

srunner/osc2/osc2_parser/OpenSCENARIO2Parser.py1,471 symbols
srunner/osc2/ast_manager/ast_node.py368 symbols
srunner/osc2/ast_manager/ast_builder.py306 symbols
srunner/osc2/osc2_parser/OpenSCENARIO2Listener.py303 symbols
srunner/scenariomanager/scenarioatomics/atomic_behaviors.py262 symbols
srunner/osc2/osc2_parser/OpenSCENARIO2Visitor.py152 symbols
srunner/osc2/ast_manager/ast_listener.py135 symbols
srunner/scenariomanager/scenarioatomics/atomic_trigger_conditions.py96 symbols
srunner/scenariomanager/scenarioatomics/atomic_criteria.py95 symbols
srunner/scenarios/background_activity.py91 symbols
no_rendering_mode.py84 symbols
srunner/osc2/ast_manager/ast_vistor.py74 symbols

For agents

$ claude mcp add scenario_runner \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page