Skip to content

Commit 93093e9

Browse files
committed
Initial addition of Traffic Update top-level msg
Signed-off-by: Pierre R. Mai <pmai@pmsf.de>
1 parent c854a46 commit 93093e9

File tree

4 files changed

+57
-1
lines changed

4 files changed

+57
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ set(OSI_PROTO_FILES
6666
osi_hostvehicledata.proto
6767
osi_trafficsign.proto
6868
osi_trafficlight.proto
69+
osi_trafficupdate.proto
6970
osi_roadmarking.proto
7071
osi_lane.proto
7172
osi_featuredata.proto

doc/osifiles.rst

Lines changed: 4 additions & 1 deletion
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_trafficupdate.proto`_
42+
---------------------------------
43+
4144
`osi_trafficsign.proto`_
4245
---------------------------------
4346

@@ -91,4 +94,4 @@ OSI common provides the building blocks for the OSI field messages.
9194
.. _osi_datarecording.proto: https://github.com/OpenSimulationInterface/open-simulation-interface/blob/master/osi_datarecording.proto
9295
.. _osi_datarecording.proto: https://github.com/OpenSimulationInterface/open-simulation-interface/blob/master/osi_datarecording.proto
9396
.. _osi_datarecording.proto: https://github.com/OpenSimulationInterface/open-simulation-interface/blob/master/osi_datarecording.proto
94-
.. _osi_datarecording.proto: https://github.com/OpenSimulationInterface/open-simulation-interface/blob/master/osi_datarecording.proto
97+
.. _osi_datarecording.proto: https://github.com/OpenSimulationInterface/open-simulation-interface/blob/master/osi_datarecording.proto

osi_trafficupdate.proto

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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 update message is provided by traffic
13+
// participant models to provide updates to their position and
14+
// state back to the simulation environment.
15+
//
16+
// \note Note that for reasons of convenience and consistency, the
17+
// updated information is provided as a MovingObject. Certain fields
18+
// of this sub-message need not be set and will be ignored by the
19+
// simulation environment, because they are in fact static information.
20+
// Instead of creating a seperate message type for only the non-static
21+
// information, re-use of the existing message was considered more
22+
// appropriate.
23+
//
24+
message TrafficUpdate
25+
{
26+
// The interface version used by the sender (traffic participant model).
27+
//
28+
optional InterfaceVersion version = 1;
29+
30+
// The data timestamp of the simulation environment. Zero time is arbitrary
31+
// but must be identical for all messages. Zero time does not need to
32+
// coincide with the UNIX epoch. Recommended is the starting time point of
33+
// the simulation.
34+
//
35+
// \note For moving object update data the timestamp coincides both with
36+
// the notional simulation time the data applies to and the time it was sent
37+
// (there is no inherent latency for moving object update data, as opposed
38+
// to sensor data).
39+
//
40+
optional Timestamp timestamp = 2;
41+
42+
// Updated Moving Object
43+
//
44+
// \note Only the id, base member (without dimension and base_polygon),
45+
// and the vehicle_classification.light_state members are considered in
46+
// updates, all other members can be left undefined, and will be
47+
// ignored by the receiver of this message.
48+
//
49+
optional MovingObject update = 3;
50+
51+
}

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def find_protoc():
5959
'osi_hostvehicledata.proto',
6060
'osi_trafficsign.proto',
6161
'osi_trafficlight.proto',
62+
'osi_trafficupdate.proto',
6263
'osi_roadmarking.proto',
6364
'osi_featuredata.proto',
6465
'osi_object.proto',

0 commit comments

Comments
 (0)