Rear-end
The vehicle ahead brakes hard to a stop.
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.
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.
The vehicle ahead brakes hard to a stop.
A vehicle in the next lane changes into the ego's lane just ahead of it.
The ego changes lane in front of a faster vehicle in the target lane.
A vehicle whose lane ends merges into the next lane.
A pedestrian crosses the road ahead.
A pedestrian runs into the road close in front of the ego.
A vehicle comes the other way in the opposite lane.
A vehicle drives towards the ego in the ego's own lane.
An emergency vehicle comes up fast from behind; the ego makes way.
A vehicle on a crossing road runs the red light as the ego crosses.
A vehicle drives through its stop sign as the ego crosses.
The ego turns left across an oncoming vehicle.
A vehicle enters the roundabout as the ego reaches it.
The ego joins the motorway from an entrance ramp beside a vehicle on it.
The ego leaves the motorway at an exit while a vehicle carries on beside it.
The ego overtakes a slower vehicle and pulls back in.
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.
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.