İçeriğe geç

Scenario editor — author and run OpenSCENARIO in the browser

Bu içerik henüz dilinizde mevcut değil.

drawtonomy’s scenario editor turns the drawing canvas into an OpenSCENARIO authoring tool. You draw the road, place the actors, describe what they do over time, and press play — the run is executed by esmini compiled to WebAssembly, inside the same browser tab. No install, no account, no build step.

The scenario editor — canvas with the road and actor, transport row, phase/event graph, and event editor

drawtonomy splits the work in two. Switching between them is the single most important thing to know before you start.

ModeWhat you do thereWhat the toolbar offers
SceneDraw roads: lanes, intersections, crosswalks, markings. Place vehicles and pedestrians.The full drawing toolbar — Lane, Linestring, Intersection, Participants, and the rest.
ScenarioDefine behaviour: phases, events, actions, triggers, end and fail conditions. Run the scenario.Only Undo, Redo, Hand, Select, Add actor, and Path.

Switch modes from the hamburger menu at the top left, under the EDITING heading: Scene or Scenario.

Two things follow from the split:

  • You cannot draw roads in Scenario mode. The drawing tools are not shown there. To get back, use the hamburger menu, or the Edit roads button at the top of the actor placement panel.
  • Draw the road and place at least one actor first. The + Phase button stays disabled until a scenario has an actor, and a scenario without a road has nothing for the actor to drive on.
  1. Scene mode — draw the road. Press N for the Lane tool and draw one or more lanes. Or import an OpenDRIVE .xodr instead of drawing.
  2. Place actors. You can do this from either mode: in Scene mode press P for the Participants tool, or in Scenario mode click Add actor — then click on a lane. Each actor becomes an OpenSCENARIO entity.
  3. Switch to Scenario mode. Hamburger → EDITINGScenario.
  4. Build the logic. + Phase creates a phase with its first event. Each event has one TRIGGER (when it fires) and one or more ACTIONS (what happens).
  5. Set the end and fail conditions. The END CONDITIONS node decides when the run stops; FAIL CONDITIONS decide whether the run is a PASS or a FAIL.
  6. Play. The ▶ button on the left of the LOGIC card runs the scenario and the verdict badge reports the outcome.
  7. Export. Hamburger → ExportOpenSCENARIO (.xosc)… for the scenario, .xodr (OpenDRIVE) for the road, or Export video… for a recording.

Your work is saved to the browser automatically as you go and comes back when you reopen the tab, so nothing here is a required “save” step — but Export is what you use to share a scenario or keep it for good.

The editor’s labels map onto OpenSCENARIO elements. The short version:

drawtonomy UIOpenSCENARIO 1.x
PhaseAct
EventEvent
TRIGGERthe event’s StartTrigger
ACTIONa PrivateAction such as SpeedAction
ALL OF (AND)one ConditionGroup
END CONDITIONSthe storyboard’s StopTrigger
FAIL CONDITIONSdrawtonomy-specific, stored as a vendor parameter

The full table, including the RoadRunner Scenario equivalents, is on RoadRunner and OpenSCENARIO terms.