OpenDRIVE 是 ASAM 制定的自动驾驶路网描述标准。它包含道路几何、车道、路口、信号灯和道路标线。用于 CARLA、VTD、RoadRunner 仿真器以及 ADAS 测试。
主要特点

关于 OpenDRIVE 格式
OpenDRIVE is a standard by the ASAM association describing a road network the way autonomous driving simulators understand it: not just lines, but roads with lanes, their width, speed limits, junctions and the links between them. The .xodr file is XML, read by CARLA, esmini, RoadRunner and Vires VTD.
Exporting OSM into OpenDRIVE is what you need when a scenario has to be checked on the real geometry of a specific city rather than on a synthetic proving ground: an ADAS scenario prototype, a teaching task, a route demonstration in a simulator. A ready network appears in minutes instead of drawing roads by hand in an editor.
The implementation is simplified: the road plan is built from straight segments following the OSM geometry (arcs and clothoids are not used), the number of lanes, the road type and the speed are substituted by the highway tag (motorway, for example, gets three lanes and 110 km/h, residential gets one and 40), and the default lane width is 3.5 meters. Junctions are determined by clustering road ends: three or more within a five-meter radius become a junction with links between the incoming roads, and highway=traffic_signals points turn into signals. There is no elevation profile — the road is flat. That is enough for a prototype and for running a scenario in, but it is not an HD map of survey accuracy.
打开 OpenDRIVE 文件的程序
以下程序可以打开、编辑和处理从 OSM2CDR 导出的 OpenDRIVE (ASAM)(.xodr)文件:
格式规格
- 开放标准
- 支持 3D 坐标
- 无损(无质量损失)
- 存储要素属性
- 输出:1 个文件
- ASAM OpenDRIVE 1.7 (.xodr). Road network for autonomous-driving simulators (CARLA, esmini, Vires VTD).
谁在使用 OpenDRIVE 地图
如何导出 OpenDRIVE
导出后如何打开
- CARLA — put the .xodr into the project and launch it in standalone OpenDRIVE mode: the simulator generates the three-dimensional scene from the road description itself.
- esmini — quick viewing and checking: the odrviewer utility opens the file and shows lanes and junctions without building a full scene.
- MATLAB RoadRunner — import the road network and refine it by hand: add markings, signs, an elevation profile, ramps.
- Any XML editor — the file is text: you can see how many roads, junctions and signals came out and adjust parameters selectively.
- Before a serious scenario — run the file through your tool's validator: junction connectivity is built from the distance between road ends and needs fixing at complex interchanges.
OpenDRIVE 格式的热门地图
常见问题
相关格式
经常一起导出
Related Articles
ASAM OpenDRIVE (.xodr): the standard — and a ready file from OSM
The ASAM XML standard for lane-level road networks, read by CARLA, IPG CarMaker and NVIDIA DriveSim. Plus: export a read
usecaseTransport Simulation Formats: OpenDRIVE, SUMO, Lanelet2
OpenDRIVE, SUMO, Lanelet2 and ROS for transport simulation and autonomous driving. Export from OpenStreetMap.