DM: Add an actor.wait() action
Update 2021.12.09
This issue was voted on in final project meeting for further analysis in final review period (2022-Q1)
There is an open MR with a proposal !300
Original post
Need "Wait" Action added to Action Domain Model
Main Use
v1.Wait() with:
until(@event1)
Need this for users that use "strict composition" rules that completely fill the parallel.
This allows the user to fill a serial composition for lateral behavior.
Example1
do parallel:
serial: #LONGITUDINAL BEHAVIOR for v1
v1_init_drive_01: v1.Drive() with:
along(route: r1)
speed(speed: 50 kph)
at(at: start)
until(@Observation_Complete)
serial: #LATERAL BEHAVIOR for v1
v1_wait1_01: v1.Wait() with:
until(@event1)
v1_changelane_01: v1.ChangeLane() with:
...
v1_wait2_01: v1.Wait() with:
until(@event2)
Example2
do parallel:
v1_init_drive_01: v1.Drive() with:
along(route: r1)
speed(speed: 50 kph)
at(at: start)
until(@Observation_Complete)
serial: #LATERAL BEHAVIOR for v1
v1_wait1_01: v1.Wait() with:
until(rise(a > b))
v1_changelane_01: v1.ChangeLane() with:
...
v1_wait2_01: v1.Wait() with:
until(@event2)
Related To Rise / Fail Capability Need
https://code.asam.net/simulation/standard/openscenario-2.0/-/issues/26
Unsure About How Rise and Fall Should be Used
rise(a > b)
fall(b < a)