Configuration#
This overview is a compact reference for all available Docker Compose profiles and .env variables. The basic workflow for configuring and running simulations, along with concrete examples, is described in Getting Started.
The recommended way to edit the configuration is the Configuration GUI. It exposes the same variables listed below, applies presets, validates the configuration, and writes valid changes back to .env:
xhost +local:
docker compose up -d gui
When X11 access is available, the Configuration GUI opens automatically. Otherwise, open http://localhost:8501 manually.
Environment Variables#
Environment variables are key-value settings that configure the Docker Compose setup. Some of them are also passed into the containers, but their main role in this repository is to select profiles, maps, vehicles, scenarios, overrides, and optional runtime behavior without editing the Compose files directly.
All variables below can be set through the Configuration GUI or manually in .env.
Variable |
Purpose / Impact |
Typical Values |
|---|---|---|
|
Selected functional groups for simulation, traffic, testing, perception, and planning. |
|
|
Compose file chain. Examples override the standard |
|
|
Vehicle profile for sensor frames (URDF), parameters, and controller tuning. Mostly relevant for CARLA. |
|
|
Comma-separated list of CARLA sensor layout files to be used when spawning objects. SUMO does not use sensor layouts. |
|
|
Selected prebuilt map. Leave empty when using custom OpenDRIVE mode. |
CARLA: |
|
Ego spawn point, given as |
|
|
Custom OpenDRIVE ( |
|
|
Matching Lanelet2 |
|
|
GPS origin latitude for a custom Lanelet2 map frame. Set together with |
|
|
GPS origin longitude for a custom Lanelet2 map frame. Set together with |
|
|
|
|
|
OpenSCENARIO file executed directly using the CARLA scenario runner within the |
|
|
Enables ROS simulated time across the stack. Must stay |
|
|
Enables ROS 2 tracing for supported services. |
|
Service Profiles#
COMPOSE_PROFILES selects functional groups from the included Docker Compose files. Depending on the selected value, services are enabled or omitted. Pick one compatible value per group.
Group |
Profiles |
Compatibility / Effect |
|---|---|---|
Simulation |
|
Selects the simulation backend. CARLA supports the full stack; SUMO is lightweight and more restricted. |
Traffic |
|
Selects if background traffic in CARLA is enabled. SUMO always generates random traffic. |
Testing |
|
CARLA only. |
Perception |
|
|
Planning |
|
CARLA and SUMO support |
CARLA uses one profile from both the Traffic and Testing groups. Their defaults are traffic and manual-testing. SUMO uses neither group.
Add bag-recording when ROS bag capture is required.
Service Overview#
The following overview lists the Docker Compose services involved in OpenADSim and shows which profiles activate them. Services marked always have no profile assigned and therefore start with every configuration.
CARLA Simulation
Service |
Profiles |
Role |
|---|---|---|
|
|
Offscreen CARLA backend with custom |
|
|
DDS-to-Zenoh bridge for CARLA ROS topics |
|
|
ROS 2 bridge; loads |
|
|
Spawns ego vehicle and sensors from |
|
|
Generates stack-relevant ego, object, and map topics |
|
|
Transforms CARLA data and coordinate frames for OpenADStack; optional Lanelet2 map selection via |
|
|
Applies Ackermann control commands to the ego vehicle |
|
|
Manual keyboard control of the vehicle |
|
|
Reports whether stack control is active on |
|
|
Defines random traffic and environment variation |
|
|
Interactive scenario execution through RViz |
|
|
Direct scenario execution from |
SUMO Simulation
Service |
Profiles |
Role |
|---|---|---|
|
|
Generates |
|
|
Transforms SUMO data and coordinate frames for OpenADStack; optional Lanelet2 map selection via |
|
|
Reports whether stack control is active on |
OpenADStack#
OpenADStack services, their roles, and interfaces are documented in the OpenADStack functional architecture.
Monitoring and Tooling
Service |
Profiles |
Role |
|---|---|---|
|
|
RViz visualization with the CARLA display configuration |
|
|
RViz visualization with the SUMO display configuration |
|
|
Optionally records ROS bags after the route topic becomes available |
|
|
Web-based Configuration GUI on port 8501 |