-
Notifications
You must be signed in to change notification settings - Fork 128
/
osi_trafficcommandupdate.proto
95 lines (86 loc) · 3.8 KB
/
osi_trafficcommandupdate.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
syntax = "proto2";
option optimize_for = SPEED;
import "osi_version.proto";
import "osi_common.proto";
package osi3;
//
// \brief This message enables the traffic participant model to send updates
// to the scenario engine about the execution of its received \c TrafficCommand input.
// While traffic actions are usually executed successfully by the traffic participant,
// there may be actions which the traffic participant is not able to execute
// either for capability or situation-specific reasons.
//
// This message allows a traffic participant to send feedback if an action
// cannot happen as requested by the \c TrafficCommand. Currently, it is out of
// scope to standardize the exact reason for non-executability or failed execution
// because the reason can have multiple explanations. The responsibility for deciding
// about successful or unsuccessful scenario execution lies fully on the side of the
// scenario engine.
//
// \note This interface is currently just a placeholder and could be
// changed in experimental ways to support semantics of upcoming OpenSCENARIO
// versions.
//
message TrafficCommandUpdate
{
// The interface version used by the sender (traffic participant model).
//
// \rules
// is_set
// \endrules
//
optional InterfaceVersion version = 1;
// The data timestamp of the simulation environment. Zero time is arbitrary
// but must be identical for all messages. Zero time does not need to
// coincide with the UNIX epoch. It is recommended to use zero timestamp as
// the starting time point of the simulation.
//
// \rules
// is_set
// \endrules
//
optional Timestamp timestamp = 2;
// The ID of this traffic participant which must coincide with a prior sent ID, cf.
// \c TrafficCommand::traffic_participant_id.
//
// \rules
// is_set
// \endrules
//
optional Identifier traffic_participant_id = 3;
// Actions which a traffic participant dismisses and which are not yet ended or
// aborted by the scenario engine (via a \c TrafficCommand::action.end_actions_action or a
// \c TrafficCommand::action.abort_actions_action).
// Thus, the valid time interval for this action is after the \c TrafficCommand::timestamp
// for the respective action, which tells a traffic participant to perform an action, has
// been sent, but must not be after a \c TrafficCommand::timestamp of the respective End-Actions-Action
// or Abort-Actions-Action, which tells a traffic participant to end or abort that action.
//
// Furthermore, a \c TrafficCommand::action.end_actions_action or a
// \c TrafficCommand::action.abort_actions_action must not be sent after this action
// (the \c TrafficCommandUpdate::dismissed_action) for a respective action has been sent.
//
// \note If more than one dismissed action is supplied it means that
// multiple actions are regarded as dismissed.
//
repeated DismissedAction dismissed_action = 4;
//
// \brief Action which a traffic participant dismisses.
//
message DismissedAction
{
// Dismissed traffic action id from the perspective of this traffic participant, if any.
//
// \note A dismissed traffic action id identifies a \c TrafficCommand::action which cannot be executed or
// completed by the traffic participant. This field must have the same value as the
// \c ActionHeader::action_id of a prior sent \c TrafficCommand and must correspond
// to the same traffic participant.
//
optional Identifier dismissed_action_id = 1;
// Information about the reason of failure.
//
// \note This is a custom, informal string without a standardized meaning.
//
optional string failure_reason = 2;
}
}