Data catalog / Guides / OpenDRIVE, OpenSCENARIO and USD

OpenDRIVE vs OpenSCENARIO vs USD: which file does what

Three file formats come up again and again in driving and robot simulation. They are not alternatives: each holds a different layer of the same scene. This guide shows what goes in each one, using real scenario files you can download.

The short answer

FormatWhat it holdsOpens inIn our data
OpenDRIVE (.xodr)The road network: roads, lanes and junctions as geometry.esmini, CARLA and most driving simulatorsEvery scenario's map.xodr (OpenDRIVE 1.5), built from OpenStreetMap around the event.
OpenSCENARIO (.xosc)What happens on the road: each road user, its route and its timing, on a named map.esmini, CARLA ScenarioRunnerEvery scenario's scenario.xosc (version 1.2, checked against the official schema). Twin City also ships 1.0 copies for CARLA ScenarioRunner.
Universal Scene Description (USD: .usda, .usdc)The 3D scene: buildings, kerbs, materials and lights.NVIDIA Isaac Sim and OmniverseThe street-robots crossing twin.

How they fit together

  • The OpenSCENARIO file names its OpenDRIVE map, so the two travel as a pair: the map says where the lanes are, the scenario says who moves along them and when.
  • A Simulation of Urban Mobility (SUMO) network (map.net.xml) can sit next to the OpenDRIVE map when you want simulated background traffic.
  • USD carries what a camera or a robot's physics needs to see: surfaces, buildings and kerbs. Robots in NVIDIA Isaac Sim walk or drive through the USD scene.
  • The real video and motion data sit alongside all of these, so you can check the simulation against what actually happened.

Look inside one scenario

Download the starter sample from the scenario library, unzip it, and read both files with the Python standard library:

inspect_scenario_files.py

Tested 2026-11-30 · Python 3.15.2 · standard library only
# Show what each file in a RoadData.AI scenario holds: the OpenDRIVE roads and the OpenSCENARIO road users.
# usage: python inspect_scenario_files.py roaddata-scenario-starter/sc_3ebeafb59c
import sys, xml.etree.ElementTree as ET
from collections import Counter
folder = sys.argv[1]
odr = ET.parse(f"{folder}/map.xodr").getroot()
h = odr.find("header")
print(f"map.xodr      OpenDRIVE {h.get('revMajor')}.{h.get('revMinor')}: {len(odr.findall('road'))} roads, {len(odr.findall('junction'))} junctions")
for road in odr.findall("road")[:3]:
    lanes = [l for l in road.findall(".//lane") if l.get("id") != "0"]   # lane 0 is the reference line, not a lane
    print(f"              road {road.get('id')}: {float(road.get('length')):.1f} m, lanes: {len(lanes)}")
osc = ET.parse(f"{folder}/scenario.xosc").getroot()
h = osc.find("FileHeader")
print(f"scenario.xosc OpenSCENARIO {h.get('revMajor')}.{h.get('revMinor')}, map: {osc.find('.//RoadNetwork/LogicFile').get('filepath')}")
kinds = Counter()
for obj in osc.findall(".//Entities/ScenarioObject"):
    e = next(iter(obj))                                                     # Vehicle or Pedestrian
    kinds[e.get("vehicleCategory") or e.get("pedestrianCategory") or e.tag] += 1
print("              road users:", ", ".join(f"{k} {n}" for k, n in kinds.items()))
python inspect_scenario_files.py roaddata-scenario-starter/sc_3ebeafb59c
What it printed when we ran it
map.xodr      OpenDRIVE 1.5: 69 roads, 12 junctions
              road 270: 159.6 m, lanes: 1
              road 271: 146.1 m, lanes: 1
              road 272: 67.6 m, lanes: 2
scenario.xosc OpenSCENARIO 1.2, map: map.xodr
              road users: car 1, bicycle 5, pedestrian 5, motorbike 1, truck 1

Which one you need

  • Planning and prediction tests for autonomous vehicles: OpenSCENARIO with its OpenDRIVE map.
  • Traffic flow: the SUMO network, with the OpenDRIVE map for geometry.
  • Robots, cameras and physics: the USD scene in NVIDIA Isaac Sim.
  • World models: the real video with its motion data, with the scenario files as structured context.

Limits in our files

  • OpenDRIVE maps are built from OpenStreetMap and are not surveyed; Twin City is widened to the surveyed kerb.
  • Lane paint in CARLA comes from OpenStreetMap defaults, not from the real street.
  • In the free samples, USD ships with the street-robots crossing twin only, not with every scenario.