|
| 1 | +syntax = "proto2"; |
| 2 | + |
| 3 | +option optimize_for = SPEED; |
| 4 | + |
| 5 | +import "osi_version.proto"; |
| 6 | +import "osi_common.proto"; |
| 7 | +import "osi_object.proto"; |
| 8 | + |
| 9 | +package osi3; |
| 10 | + |
| 11 | +// |
| 12 | +// \brief The traffic command message is provided by the scenario |
| 13 | +// engine to traffic participant models to provide control commands |
| 14 | +// to them based on the scenario. |
| 15 | +// |
| 16 | +// \note This interface is currently just a placeholder, and will be |
| 17 | +// changed in experimental ways to support basic scenario execution. |
| 18 | +// In the future this interface shall be aligned with the level of |
| 19 | +// atomic actions as described in OpenSCENARIO 1.0 or later. |
| 20 | +// |
| 21 | +message TrafficCommand |
| 22 | +{ |
| 23 | + // The interface version used by the sender (scenario engine). |
| 24 | + // |
| 25 | + optional InterfaceVersion version = 1; |
| 26 | + |
| 27 | + // The data timestamp of the simulation environment. Zero time is arbitrary |
| 28 | + // but must be identical for all messages. Zero time does not need to |
| 29 | + // coincide with the UNIX epoch. Recommended is the starting time point of |
| 30 | + // the simulation. |
| 31 | + // |
| 32 | + // \note For traffic command data the timestamp coincides both with |
| 33 | + // the notional simulation time the data applies to and the time it was sent |
| 34 | + // (there is no inherent latency for traffic command data, as opposed |
| 35 | + // to sensor data). |
| 36 | + // |
| 37 | + optional Timestamp timestamp = 2; |
| 38 | + |
| 39 | + // The ID of this traffic participant. |
| 40 | + // |
| 41 | + optional Identifier traffic_participant_id = 3; |
| 42 | + |
| 43 | + // Commanded Traffic Action(s) if any |
| 44 | + // |
| 45 | + // \note OSI uses singular instead of plural for repeated field names. |
| 46 | + // |
| 47 | + repeated TrafficAction action = 4; |
| 48 | + |
| 49 | +} |
| 50 | + |
| 51 | +// |
| 52 | +// \brief Atomic Traffic Actions to be performed |
| 53 | +// |
| 54 | +message TrafficAction |
| 55 | +{ |
| 56 | + |
| 57 | +} |
0 commit comments