Skip to content

Commit 72513c8

Browse files
tpajenkamp-dspaceHabedank Clemens
authored andcommitted
Add CustomAction to TrafficCommand
This action is aligned with CustomCommandAction of OpenSCENARIO 1.0. Signed-off-by: Pierre R. Mai <pmai@pmsf.de>
1 parent ac8a61b commit 72513c8

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

osi_trafficcommand.proto

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,11 @@ message TrafficAction
9797

9898
// An EndActionsAction
9999
//
100-
optional EndActionsAction end_actions_action = 7;
100+
optional EndActionsAction end_actions_action = 7;
101+
102+
// A CustomAction
103+
//
104+
optional CustomAction custom_action = 8;
101105
}
102106

103107
//
@@ -505,3 +509,26 @@ message EndActionsAction
505509
//
506510
repeated Identifier target_action_id = 2;
507511
}
512+
513+
//
514+
// \brief Custom Action.
515+
//
516+
// This action assigns a custom command to a traffic participant.
517+
// The syntax and semantics of this action is implementation defined.
518+
// It is entirely up to each individual traffic participant which
519+
// custom commands it supports, if any, and how they must be phrased.
520+
//
521+
// \note This action is aligned with CustomCommandAction of OpenSCENARIO 1.0
522+
// providing a customizable user defined action.
523+
//
524+
525+
message CustomAction
526+
{
527+
// The Action Header
528+
//
529+
optional ActionHeader action_header = 1;
530+
531+
// The custom command given to the traffic participant.
532+
//
533+
optional string command = 2;
534+
}

0 commit comments

Comments
 (0)