Metromake / OpenSCENARIO generator
ASAM OpenSCENARIO 1.2 · .xosc

OpenSCENARIO generator for your road maps

Metromake generates OpenSCENARIO 1.2 scenarios on the lanes of your map. Each export writes a .xosc next to its .xodr; both are validated against their schemas and the scenario is run in esmini.

Templates

16 scenario templates

Pick a template in the Scenarios tool and click the lane the ego starts on. Actors, speeds and trigger distances are then dragged on the map, and the scenario can be previewed before export.

Template 01

Rear-end

The vehicle ahead brakes hard to a stop.

Template 02

Cut-in

A vehicle in the next lane changes into the ego's lane just ahead of it.

Template 03

Lane change

The ego changes lane in front of a faster vehicle in the target lane.

Template 04

Merging

A vehicle whose lane ends merges into the next lane.

Template 05

Crossing pedestrian

A pedestrian crosses the road ahead.

Template 06

Pedestrian suddenly enters

A pedestrian runs into the road close in front of the ego.

Template 07

Oncoming vehicle

A vehicle comes the other way in the opposite lane.

Template 08

Wrong-way vehicle

A vehicle drives towards the ego in the ego's own lane.

Template 09

Emergency vehicle

An emergency vehicle comes up fast from behind; the ego makes way.

Template 10

Traffic-light violation

A vehicle on a crossing road runs the red light as the ego crosses.

Template 11

Stop-sign violation

A vehicle drives through its stop sign as the ego crosses.

Template 12

Unprotected left turn

The ego turns left across an oncoming vehicle.

Template 13

Roundabout conflict

A vehicle enters the roundabout as the ego reaches it.

Template 14

Highway merge

The ego joins the motorway from an entrance ramp beside a vehicle on it.

Template 15

Highway exit

The ego leaves the motorway at an exit while a vehicle carries on beside it.

Template 16

Overtaking

The ego overtakes a slower vehicle and pulls back in.

  • Validates against the OpenSCENARIO 1.2 schema
  • Every template runs to the end in esmini, with every vehicle driving and every pedestrian walking on the road network
  • Positions are lane positions on the exported roads and lanes; routes through junctions are assigned routes
  • Signal programs of the map's junctions are written as traffic-signal controllers
Command line

Generate a scenario from the command line

From the command line, three quick scenarios need no setup on the map:

metromake --export map.json scenario.xosc              # follow a lead vehicle
metromake --export map.json scenario.xosc --cut-in     # cut-in from the next lane
metromake --export map.json scenario.xosc --junction   # two vehicles at a junction
# each also writes scenario.xodr

More in the command-line export docs. The road network itself is described on the OpenDRIVE editor page.

Availability

Early access

Metromake 0.9.0 is in early access for macOS and Windows: download it, activate it with a free early-access key, and tell us what to improve. To discuss use in a test pipeline, contact us.