跳到內容

Actions reference — all 35 scenario actions

本頁內容尚未翻譯。

An event’s ACTION is what happens when its trigger fires. drawtonomy offers 35 actions, each mapping to an ASAM OpenSCENARIO 1.x element.

The dropdown shows four of them under COMMON. The other 31 sit behind a collapsed More actions… row — that row looks like a group heading, but it opens when you click it. The dropdown lists them in menu order; the tables below instead group them by what they do, so you can look one up by intent.

The ACTION dropdown open — the four COMMON actions above a More actions… row expanded to reveal the rest

An event can hold several actions. + Action in the event editor adds another; they all start when the trigger fires.

UI labelOpenSCENARIOWhat it does
Change SpeedSpeedActionBrings the actor to a target speed, absolute or relative to another actor.
Change LaneLaneChangeActionMoves the actor sideways into another lane.
Follow PathFollowTrajectoryActionMakes the actor follow a trajectory you drew with the Path tool.
TeleportTeleportActionPlaces the actor at a position instantly, with no motion in between.

The remaining 31 actions live behind the More actions… row. They are grouped here by intent; in the dropdown itself they appear in a single menu-ordered list.

Speed over time and forward gaps.

UI labelOpenSCENARIOWhat it does
Speed ProfileSpeedProfileActionFollows a series of speed / time pairs instead of a single target speed.
Keep Longitudinal DistanceLongitudinalDistanceActionHolds a gap ahead of or behind a reference actor.
SynchronizeSynchronizeActionTimes the actor’s arrival at a position to coincide with another actor’s arrival at its own.

Sideways position and sideways gaps.

UI labelOpenSCENARIOWhat it does
Lateral OffsetLaneOffsetActionShifts the actor sideways within its lane without changing lane.
Keep Lateral DistanceLateralDistanceActionHolds a sideways gap from a reference actor.

Where the actor is, and the path it takes across the road network.

UI labelOpenSCENARIOWhat it does
Assign RouteAssignRouteActionGives the actor a route made of waypoints to follow.
Drive to PositionAcquirePositionActionSends the actor to a position, routing over the road network.

Attach a controller to an actor and steer what it governs.

UI labelOpenSCENARIOWhat it does
Assign ControllerAssignControllerActionAttaches a controller to the actor.
Activate ControllerActivateControllerActionTurns an assigned controller’s lateral or longitudinal domain on or off.
Override Controller ValueOverrideControllerValueActionForces throttle, brake, steering, gear, or similar to a value.

How the actor looks and what it is made of.

UI labelOpenSCENARIOWhat it does
VisibilityVisibilityActionControls whether the actor is visible to graphics, sensors, or traffic.
Light StateLightStateActionSwitches vehicle lights — indicators, brake lights, head lights.
AnimationAnimationActionDrives an animation such as a door, the trunk, or a wiper.
Connect TrailerConnectTrailerActionCouples a trailer entity to the actor.
Disconnect TrailerDisconnectTrailerActionUncouples the actor’s trailer.

Spawn, remove, and manage the actors and ambient traffic in the run.

UI labelOpenSCENARIOWhat it does
Add EntityAddEntityActionSpawns an entity into the running scenario.
Delete EntityDeleteEntityActionRemoves an entity from the running scenario.
Traffic SourceTrafficSourceActionContinuously spawns ambient traffic at a position.
Traffic SinkTrafficSinkActionRemoves ambient traffic that reaches a position.
Traffic SwarmTrafficSwarmActionMaintains a swarm of ambient traffic around a central actor.
Traffic StopTrafficStopActionStops a previously started traffic source, sink, or swarm.
Traffic AreaTrafficAreaActionPopulates an area or set of roads with ambient traffic.

The world the actors drive in — signals and conditions.

UI labelOpenSCENARIOWhat it does
Traffic Signal StateTrafficSignalStateActionForces a traffic signal into a given state.
Traffic Signal ControllerTrafficSignalControllerActionSwitches a signal controller to a named phase.
EnvironmentEnvironmentActionSets weather, time of day, and road conditions.

Scenario-level values, and the hooks that report outcomes.

UI labelOpenSCENARIOWhat it does
Set ParameterParameterSetActionAssigns a value to a scenario parameter.
Modify ParameterParameterModifyActionApplies an arithmetic change to a parameter.
Set VariableVariableSetActionAssigns a value to a scenario variable.
Modify VariableVariableModifyActionApplies an arithmetic change to a variable.
Set MonitorSetMonitorActionSets a named monitor value, used to report scenario outcomes.
Custom CommandCustomCommandActionPasses a simulator-specific command straight through.

Most motion actions share two settings.

DYNAMICS decides what the accompanying VALUE measures:

DYNAMICSVALUE isMeaning
over timesecondsComplete the change in this much time.
over distancemetresComplete it over this much travelled distance.
at ratem/s²Change at this rate until the target is reached.

PROFILE, in the ADVANCED section, decides the interpolation shape — Linear, Cubic, Sinusoidal, or Step. It maps to OpenSCENARIO’s dynamicsShape.

Defaults differ per action. Change Speed starts at over time 2.00 s; Change Lane starts at over distance 30.00 m with a Sinusoidal profile.

The Change Speed form — RELATIVE TO, SPEED, DYNAMICS, VALUE

FieldValues
RELATIVE TOFixed or Actor
SPEEDa number, in m/s
DYNAMICSover time / over distance / at rate
VALUEa number, in s, m, or m/s² depending on DYNAMICS

With RELATIVE TO set to Actor, two more fields appear:

  • REFERENCE — the actor to measure against.
  • MODE× factor (a multiple of the reference speed) or + delta (an offset from it).

Fixed emits an absolute SpeedAction target; Actor emits a relative one.

Speeds are in metres per second throughout the editor. 8.33 m/s is 30 km/h; 27.78 m/s is 100 km/h.

The Change Lane form — TARGET, REFERENCE, NUMBER OF LANES, DYNAMICS, VALUE

FieldValues
TARGETLeft / Right / Same lane / Specific lane
REFERENCEthe actor whose lane the target is measured from
NUMBER OF LANESa number — shown only for Left and Right
DYNAMICSover time / over distance / at rate
VALUEa number, in m by default

TARGET and REFERENCE work together, and that pairing is the part worth understanding:

TARGETREFERENCEResult
Right, 1 lanethe actor itselfMove one lane to the actor’s own right. A plain lane change.
Same laneanother actorMove into whatever lane that actor is in. This is how a cut-in is written.
Same lanethe actor itselfNothing. The editor warns you.
Specific laneMove to an absolute lane ID from the OpenDRIVE road.

When you switch an action to Change Lane, it starts on Same lane with the actor referencing itself, so a warning appears immediately:

⚠ Change Lane target is the actor’s own current lane — no lateral movement will occur.

That is the default state, not a mistake you made. Set TARGET to Left or Right — which also reveals NUMBER OF LANES — or point REFERENCE at a different actor.