Get the RoadData.AI sample
Free evaluation sample. Share your name and email and download right away.
By getting access you agree to the RoadData.AI Sample Data Evaluation Licence (LICENSE.txt): internal evaluation and testing only, no redistribution, and no use to identify or track people or vehicles.
Log in or Sign Up to review the conditions and access this dataset content.
- Download and check (no GPU)
- Changes (2026-12-01, Ego replay mode)
- Changes (2026-12-01)
- What is in the package
- Step 1 — check the files (no GPU) · Tested and reproducible
- Step 2 — play it in CARLA ScenarioRunner (one NVIDIA RTX GPU) · Tested and reproducible
- Use it with your own car
- What we changed for ScenarioRunner, and why
- Limitations
- Licence
RoadData → CARLA: a real street event in CARLA ScenarioRunner
Download and check (no GPU)
from huggingface_hub import snapshot_download
path = snapshot_download("roaddata-ai/carla-scenario-sample", repo_type="dataset") # after you accept the gate; log in with `hf auth login`
cd <path>
pip install xmlschema==4.3.2
python check_scenario.py # ends ALL CHECKS PASS
Then play it in CARLA ScenarioRunner (one NVIDIA RTX GPU): step 2 below.
One real event from our dashcam fleet — a cyclist or two-wheeler in our path, Manhattan, New York City, 14.5 seconds — as an
OpenDRIVE map and an OpenSCENARIO scenario that CARLA's own ScenarioRunner plays end to end. The 12 recorded road users
(5 people, 5 bicycles, a motorcycle and a truck) are replayed on their real paths and timing. Two modes for the car under test (Ego):
Ego replay (default) replays our car on its recorded path too, so the run reproduces what happened; closed loop
(EGO_MODE=sr) hands the Ego to ScenarioRunner's controller or your own driving stack.
Changes (2026-12-01, Ego replay mode)
- Ego replay mode, now the default.
tools/sr_convert.pyalso puts the Ego on the RoadData replay controller, on our car's recorded path with its body-centre offset, so a run reproduces the real event exactly (our run: median 0.00 m, largest 0.02 m from our car's real body centre).EGO_MODE=srkeeps the previous behaviour: ScenarioRunner's controller drives the Ego (closed loop), for testing your own driving stack.scenario/sr.xoscis the replay-mode file;check_scenario.pyalso converts and validates the closed-loop version (check 5b). - Physics off on every step. ScenarioRunner's Init placement switches physics back on after the controller's first step; the replay controller now switches it off on every step, so a replayed vehicle cannot drift between steps.
- Both modes tested in CARLA:
examples/our_run_2026-12-01_ego_replay/andexamples/our_run_2026-12-01_closed_loop/.
Changes (2026-12-01)
This version fixes three placement bugs in the version published on 2026-11-28. The map and the OpenSCENARIO 1.2 scenario
(scenario/map.xodr, scenario/scenario.xosc) are unchanged; scenario/sr.xosc is regenerated by the updated tools/sr_convert.py.
- Cyclists floated above the road. Bicycles that overlap where they first appear start a few metres higher in Init (CARLA refuses to spawn overlapping actors), and the old replay controller kept that lift for the whole run: three bicycles rode 2.4, 4.9 and 7.4 m above the road. The replay controller now puts every road user's bounding-box bottom on the road surface from its first step.
- People sank into the road. CARLA places a walker by its body centre, about 0.9 m above its feet; the old controller placed it by its feet, so people stood up to about 2.4 m too low. Fixed by the same bounding-box rule.
- Vehicles sat behind their real position. OpenSCENARIO places a vehicle by its reference point (the rear axle) and CARLA by its
body centre, so replayed bicycles, the motorcycle and the truck were 0.54, 0.63 and 2.25 m behind where they really were. The scenario
now passes each road user's body-centre offset (its OpenSCENARIO BoundingBox Center x) to the replay controller (
ref_offset_x). - Runs always last the recorded 14.5 s. ScenarioRunner ends an Act when every ManeuverGroup has finished, which can happen before the
stop trigger;
sr_convert.pyadds a hold ManeuverGroup whose event never starts, so the Act runs until the stop trigger. - A walker could sink after being run into. A person waiting at the last place they were seen can be passed through by a replayed road user; CARLA then lets the walker fall. The replay controller stops the fall and keeps the walker on the road.
- The checks are stricter.
run/run_scenario.shnow measures each replayed road user's CARLA body centre against its recorded body centre (median 0.1 m or less, was 0.5 m against the reference point) and its height above the road (0.3 m or less), andtools/sr_timing.pylogs every actor at every 0.05 s tick with its bounding box.
What is in the package
| Path | What it is |
|---|---|
scenario/map.xodr |
OpenDRIVE 1.5 map of the area, built from OpenStreetMap (69 roads, 12 junctions) |
scenario/scenario.xosc |
The scenario as recorded, OpenSCENARIO 1.2 (Ego = our car's real path; other road users tracked in the video) |
scenario/sr.xosc |
The same scenario adapted for ScenarioRunner v0.9.16 (OpenSCENARIO 1.0), made by tools/sr_convert.py, in Ego replay mode |
scenario/roaddata_replay_control.py |
RoadData replay controller: ScenarioRunner controller module that puts each recorded road user (and the Ego in replay mode) exactly on its trajectory, body centre where the real one was, standing on the road |
check_scenario.py |
Checks every file without a GPU (step 1) |
run/run_scenario.sh, run/sr_patches.sh |
Plays the scenario in CARLA and checks the result (step 2); three one-line ScenarioRunner fixes |
tools/ |
sr_convert.py (1.2 → ScenarioRunner copy; EGO_MODE=replay or sr), sr_timing.py (tick probe + every actor at every tick), sr_track_err.py (position and height report) |
docker/Dockerfile |
CARLA 0.9.16 + Python 3.10 client + ScenarioRunner v0.9.16, the image we test in |
schema/ |
ScenarioRunner v0.9.16's OpenSCENARIO 1.0 schema (MIT licence, from carla-simulator/scenario_runner) |
examples/our_run_2026-12-01_ego_replay/, examples/our_run_2026-12-01_closed_loop/ |
Our runs of this packaged copy in each mode: ScenarioRunner log, every actor at every 0.05 s tick, the position and height report |
preview/topdown.png |
Bird's-eye view of every track on the map |
Step 1 — check the files (no GPU) · Tested and reproducible
pip install xmlschema==4.3.2
python check_scenario.py
Clean python:3.12-slim container, 2026-12-01. Expected: six CHECK PASS lines (1–5 and 5b), then ALL CHECKS PASS.
Step 2 — play it in CARLA ScenarioRunner (one NVIDIA RTX GPU) · Tested and reproducible
docker build -t roaddata-carla:0.9.16 docker/
docker run --gpus all --rm -v "$PWD":/pack roaddata-carla:0.9.16 bash /pack/run/run_scenario.sh # Ego replay (default)
docker run --gpus all --rm -v "$PWD":/pack -e EGO_MODE=sr roaddata-carla:0.9.16 bash /pack/run/run_scenario.sh # closed loop
Our runs of this packaged copy: Cloud Run, NVIDIA RTX PRO 6000, same Dockerfile, 2026-12-01. Expected ending (Ego replay):
SR_EXIT 0
CHECK PASS ScenarioRunner exited 0, no traceback
CHECK PASS ran to the 14.5 s stop trigger
CHECK PASS all 13 actors spawned and logged
CHECK PASS replayed road users: body-centre median error <= 0.1 m each
CHECK PASS replayed road users on the road: |height| <= 0.3 m at the first controlled tick and median
CHECK PASS Ego replayed: body-centre median error <= 0.1 m
ALL CHECKS PASS
In closed-loop mode the last check reads Ego closed loop (ScenarioRunner's controller): distance from our car reported, not checked.
Measured in the Ego replay run (examples/our_run_2026-12-01_ego_replay/track_report.txt), from the third tick on: the Ego's body centre is a median 0.00 m (largest 0.02 m) from our car's real body centre; every replayed road user's CARLA
body centre has a median distance of 0.00 m from its recorded body centre (largest single sample 0.22 m, a person pushed for a moment
by a cyclist passing through), and every one stands 0.02 m above the road surface (bounding-box bottom; at most 0.03 m) for the
whole run. The first two ticks (0.1 s) are ScenarioRunner's Init placement, before the replay controller takes over: there, the three bicycles that overlap at the start are 2.5, 5.0 and 7.5 m up and people are about 0.4 m low.
ScenarioRunner also prints "Not all scenario tests were successful": it says that for any scenario without pass/fail criteria, and this file has none.
Use it with your own car
Switch to closed loop: EGO_MODE=sr python3 tools/sr_convert.py scenario/scenario.xosc scenario/sr_closed_loop.xosc (or -e EGO_MODE=sr
on the docker run). The Ego then starts on ScenarioRunner's default vehicle controller, which drives our car's real path with physics;
it is not an exact replay of our car (in our closed-loop run its body centre was a median 1.2 m, at most 5.5 m, from our car's real
body centre). To test your own driving stack, assign your agent or controller to the Ego in that file; the recorded road users keep
their real paths and timing.
What we changed for ScenarioRunner, and why
- Stop trigger on the Act, and a hold. ScenarioRunner v0.9.16 reads Storyboard stop conditions only as pass/fail criteria (names starting
criteria_) and gives OpenSCENARIO runs a 100,000-second timeout, so the scenario never ended.sr_convert.pycopies the 14.5 s stop trigger onto the Act, which ScenarioRunner honours, and adds a hold ManeuverGroup that never starts, so the Act does not end early when the Ego reaches the end of its path. - RoadData replay controller. ScenarioRunner's pedestrian controller ignores the trajectory times (people stood still), and its vehicle controller steers with physics (cyclists drifted 18–28 m). The replay controller follows the timed trajectory exactly, puts CARLA's body centre where the real body centre was (OpenSCENARIO places a vehicle by its rear axle, CARLA by its body centre), and stands every road user on the road surface.
- OpenSCENARIO 1.0 spelling. ScenarioRunner accepts only 1.0:
overridepriority becomesoverwrite,TrajectoryRefis unwrapped, road users that overlap at the first frame start 2.5 m higher per overlap in Init and are on the road from the replay controller's first step. Geometry and timing are unchanged. - Three ScenarioRunner fixes (
run/sr_patches.sh): no 1 m walls along road edges (cyclists just off the mapped lanes collided at spawn), and two index guards in its vehicle controller at the end of a path.
Limitations
- One event, 14.5 seconds, one forward dashcam.
- Positions of other road users come from one camera: people 20–30 m away are typically placed within 1–3 m.
- In closed-loop mode ScenarioRunner's controller drives the Ego with vehicle physics, so the Ego is not an exact replay of our car: it can cut corners or stop early (Ego replay mode, the default, is exact). It also places the Ego's body centre on the OpenSCENARIO reference point (the rear axle), about 1.4 m behind where the scenario puts our car's body.
- The map is OpenStreetMap, not surveyed: lanes as mapped there, the lane paint is CARLA's default for those lanes (not the real markings), and crosswalks are not painted. Sidewalks are not in the map, so CARLA builds no ground there: people on the sidewalk stand at road height with no surface under them.
- Every road user is a stock CARLA blueprint (a Lincoln MKZ 2020 for the Ego, a Diamondback Century bicycle, a Yamaha YZF motorcycle, a CarlaCola truck, one standard walker for every person); there are no custom 3D models, so sizes and shapes differ from the real ones.
- The recorded road users are replayed, not simulated: they do not react to your car. Before and after the time they were seen in the video they wait at their first and last positions.
- The package does not include the real video.
- Not yet tested: CARLA versions other than 0.9.16, the CARLA Leaderboard, other OpenSCENARIO players.
Licence
Scenario, map and tracks: RoadData.AI Sample Data Evaluation Licence (LICENSE.txt, https://catalog.roaddata.ai/terms.html).
Map data © OpenStreetMap contributors, Open Database License (ODbL). schema/ and the patched lines are from CARLA ScenarioRunner (MIT).
CARLA is open-source software by the CARLA team; RoadData.AI is not affiliated with it.
Also on the RoadData.AI catalog: https://catalog.roaddata.ai/sample-lab/#steps-carla · Questions or your own location: https://roaddata.ai/contact/
- Downloads last month
- 685