Export to OpenDRIVE / OpenSCENARIO / esmini
drawtonomy can export your scene as ASAM
OpenDRIVE
(.xodr) and
OpenSCENARIO
(.xosc), or bundle both as a zip ready for
esmini playback.

Export from the editor
Section titled “Export from the editor”- Draw your scene (lanes, vehicles, traffic lights…).
- Open File → Export → Export for esmini.
- Enter a base name when prompted.
- A
<name>.zipcontaining<name>.xodrand<name>.xoscdownloads.
Play it back
Section titled “Play it back”unzip my-scene.zipesmini --osc my-scene/my-scene.xosc --window 60 60 1024 768Individual formats
Section titled “Individual formats”If you only need one of the two:
- File → Export → OpenDRIVE (.xodr)
- File → Export → OpenSCENARIO (.xosc)
Programmatic export
Section titled “Programmatic export”The exporter is part of @drawtonomy/sdk and runs without the
editor. Use it in CI pipelines, server-side tooling, or browser
extensions:
import { exporter, createSnapshot } from '@drawtonomy/sdk'
const snapshot = createSnapshot(shapes)const { blob, baseName } = exporter.buildEsminiZip(snapshot, { baseName: 'my-scene',})For the full API and extension points, see the Exporter SDK reference.
Versions emitted
Section titled “Versions emitted”| Format | Version |
|---|---|
| OpenDRIVE | 1.8 |
| OpenSCENARIO | 1.3 |
See also
Section titled “See also”- Exporter architecture — what the pipeline does between snapshot and file.
- Adding a target format — wire up CARLA, SUMO, Unity, or anything else.