Skip to content

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.

A drawtonomy scene played back in esmini after export

  1. Draw your scene (lanes, vehicles, traffic lights…).
  2. Open File → Export → Export for esmini.
  3. Enter a base name when prompted.
  4. A <name>.zip containing <name>.xodr and <name>.xosc downloads.
Terminal window
unzip my-scene.zip
esmini --osc my-scene/my-scene.xosc --window 60 60 1024 768

If you only need one of the two:

  • File → Export → OpenDRIVE (.xodr)
  • File → Export → OpenSCENARIO (.xosc)

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.

FormatVersion
OpenDRIVE1.8
OpenSCENARIO1.3