Skip to content

Commit cddc509

Browse files
author
Stefan Cyliax
authored
Merge pull request #523 from OpenSimulationInterface/feature/align-custom-traffic-action-with-osc
Align custom traffic action with osc
2 parents 9c7dfe9 + 1b6fa8c commit cddc509

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

osi_trafficcommand.proto

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,9 +487,21 @@ message TrafficAction
487487
//
488488
optional ActionHeader action_header = 1;
489489

490-
// The custom command given to the traffic participant.
490+
// The custom command given to the traffic participant. Used to convey a specific instruction
491+
// (for example, "exit_highway"), or event (for example, "left_indicator_activated").
492+
//
493+
// \note This corresponds to the content of the OpenSCENARIO 1.0 CustomCommandAction field.
491494
//
492495
optional string command = 2;
496+
497+
// The type of the custom command given to the traffic participant. Can be used to simplify
498+
// how commands are grouped. For example, the command_type could be "sensor_failure" and the
499+
// command value could be "front_right_camera". This avoids long commands, like
500+
//"sensor_failure: front_right_camera".
501+
//
502+
// \note This corresponds to the "type" attribute of the OpenSCENARIO 1.0 CustomCommandAction.
503+
//
504+
optional string command_type = 3;
493505
}
494506

495507
// \brief Longitudinal Distance Action

0 commit comments

Comments
 (0)