@@ -62,6 +62,13 @@ message TrafficCommand
6262// regarding that are not part of this message, yet are seen as a task of the
6363// scenario description (e.g. OpenSCENARIO).
6464//
65+ // \note All TrafficActions are expected to be sent only once, to indicate
66+ // that they must start immediately. This is also true, if their execution
67+ // is expected to take simulation time. To inform the traffic participant
68+ // model that certain actions must or shall be terminated, there are
69+ // explicit Actions nested inside this message (AbortActionsAction,
70+ // EndActionsAction), which hold a reference to the respective actions.
71+ //
6572message TrafficAction
6673{
6774 // A FollowTrajectoryAction
@@ -83,6 +90,14 @@ message TrafficAction
8390 // A SpeedAction
8491 //
8592 optional SpeedAction speed_action = 5 ;
93+
94+ // An AbortActionsAction
95+ //
96+ optional AbortActionsAction abort_actions_action = 6 ;
97+
98+ // An EndActionsAction
99+ //
100+ optional EndActionsAction end_actions_action = 7 ;
86101}
87102
88103//
@@ -445,3 +460,48 @@ message SpeedAction
445460 }
446461
447462}
463+
464+ //
465+ // \brief AbortActionsAction.
466+ //
467+ // This action tells a TrafficParticipant that it should abort the
468+ // execution of other actions (referenced within this action) immediately.
469+ // In contrast to the EndActionsAction this action forces a hard
470+ // termination of the referenced actions.
471+ //
472+
473+ message AbortActionsAction
474+ {
475+ // The Action Header
476+ //
477+ optional ActionHeader action_header = 1 ;
478+
479+ // Actions which must be aborted immediately.
480+ //
481+ // These fields hold the action ids of the actions that must be
482+ // aborted immediately.
483+ //
484+ repeated Identifier target_action_id = 2 ;
485+ }
486+
487+ // \brief EndActionsAction.
488+ //
489+ // This action tells a TrafficParticipant that the exection of the
490+ // referenced actions is regarded as successfully performed. The
491+ // termination of the referenced actions is allowed to be performed
492+ // gracefully.
493+ //
494+
495+ message EndActionsAction
496+ {
497+ // The Action Header
498+ //
499+ optional ActionHeader action_header = 1 ;
500+
501+ // Actions which are regarded as successfully executed.
502+ //
503+ // These fields hold the action ids of the actions that are regarded
504+ // as successfully executed and shall be terminated gracefully.
505+ //
506+ repeated Identifier target_action_id = 2 ;
507+ }
0 commit comments