Skip to content

Commit 894b447

Browse files
committed
Setup basic TrafficCommand message frame
Signed-off-by: Pierre R. Mai <pmai@pmsf.de>
1 parent 93093e9 commit 894b447

File tree

4 files changed

+62
-0
lines changed

4 files changed

+62
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ set(OSI_PROTO_FILES
6767
osi_trafficsign.proto
6868
osi_trafficlight.proto
6969
osi_trafficupdate.proto
70+
osi_trafficcommand.proto
7071
osi_roadmarking.proto
7172
osi_lane.proto
7273
osi_featuredata.proto

doc/osifiles.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ OSI common provides the building blocks for the OSI field messages.
3838
`osi_hostvehicledata.proto`_
3939
---------------------------------
4040

41+
`osi_trafficcommand.proto`_
42+
---------------------------------
43+
4144
`osi_trafficupdate.proto`_
4245
---------------------------------
4346

osi_trafficcommand.proto

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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+
}

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def find_protoc():
6060
'osi_trafficsign.proto',
6161
'osi_trafficlight.proto',
6262
'osi_trafficupdate.proto',
63+
'osi_trafficcommand.proto',
6364
'osi_roadmarking.proto',
6465
'osi_featuredata.proto',
6566
'osi_object.proto',

0 commit comments

Comments
 (0)