Metromake / OpenDRIVE editor
ASAM OpenDRIVE 1.6 · .xodr

OpenDRIVE editor: draw roads, export valid .xodr

Metromake is an OpenDRIVE editor you draw in. Build a road network lane by lane, then export OpenDRIVE 1.6 with lanes, lane links, junctions with lane-level connecting roads, roundabouts, elevation, signals and georeference. Every export validates against the ASAM schema.

What is exported

What goes into the .xodr

The logical road network that driving simulators read. Exports ASAM OpenDRIVE 1.6, the format CARLA, RoadRunner and other simulators read.

ElementHow Metromake writes it
Reference linesSmooth paramPoly3 pieces fitted to each road's spline. Positions and headings are exact at every joint; pieces are split until they are within 2 cm of the road.
ElevationCubic elevation profiles.
LanesFrom the cross-section: type, width, direction (right- or left-hand traffic), height and road marks, plus a lane offset when the centre line falls inside a lane.
LinksTwo roads meeting at a node link road to road, with lane links.
JunctionsA connecting road for every movement, lane by lane, with its own geometry. Nodes where no movement is possible get no junction.
RoundaboutsOne-way ring roads (counter-clockwise), with a junction at each approach holding the entry, exit and through connections.
SignalsFrom junction controls (stop, give way, traffic lights with a controller per approach) and from placed signs, each with its OpenDRIVE code (country DE).
GeoreferenceA geoReference when the map came from OpenStreetMap.
Not exported todayObjects (crosswalk objects, poles), superelevation and crossfall, multiple lane sections per road, and spirals.
OpenDRIVE junction editor

How junctions are exported

Drop one road end onto another to make a junction. Metromake builds the surface and, on export, a connecting road for every movement, lane by lane.

  • 6 controls: priority, traffic signals, all-way stop, give way, uncontrolled, roundabout
  • Connecting roads meet their roads within 2 cm with continuous heading
  • Roundabouts size themselves to their roads and export as one-way rings
reference lineroad (approach)junctionconnecting roads,one per movementlane links: within 2 cm,continuous heading
Diagram Connecting roads from one approach of a four-way junction. Screenshot of the same junction in Metromake to follow.
How it is validated

How the OpenDRIVE export is checked

The same checks run in CI on every build (tools/validate_simulators.py and the test suite).

Schema

ASAM OpenDRIVE 1.6 XSD

Every exported .xodr validates against the official ASAM schema with xmllint.

Simulator

Runs in esmini

Scenarios on the exported network run to the end in esmini, with vehicles staying on the road network. Also checked on a real OpenStreetMap area of central Amsterdam.

Geometry

Read back with libOpenDRIVE

An independent reader checks geometry against the spline (within 2 cm), lane widths, junction connectivity and every link.

Sample files

Download a sample OpenDRIVE file

A small network exported by Metromake 1.0.0: 9 roads, 2 junctions and 8 connecting roads.

sample.xodr
OpenDRIVE 1.6 · 9 roads, 2 junctions
Download .xodr

Scenario samples are on the OpenSCENARIO generator page. To build your own from a real street layout, see how to convert OpenStreetMap to OpenDRIVE.

Simulator maps

Custom maps for driving simulators

Metromake exports ASAM OpenDRIVE 1.6, the format CARLA, esmini, RoadRunner and other simulators read. Use it to build ADAS test road networks, driving-simulator maps and custom maps for esmini experiments. Command-line export makes it scriptable: --export map.json out.xodr (see command-line export in the docs).

Looking for a RoadRunner alternative for OpenDRIVE maps? Metromake covers the features listed above; compare them with your requirements before switching.

FAQ

OpenDRIVE export questions

Which OpenDRIVE version does Metromake export?

OpenDRIVE 1.6, validated against the ASAM schema.

Can I use my exported maps commercially?

Yes. The road assets are CC0 and the exports are yours. Maps imported from OpenStreetMap must credit OpenStreetMap contributors (ODbL).

Does it work offline?

Yes, completely. No account, no telemetry.

Can I import existing OpenDRIVE files?

Yes; roads come back with their lanes and signs, and junctions are rebuilt.

Next step

Build your first OpenDRIVE map.

Join the waiting list, or talk to us about team licences for your simulation group.