Skip to content

Commit 6ae62d6

Browse files
authored
Merge pull request #525 from OpenSimulationInterface/bugfix/tp/clarify-trafficupdate-repeated
Clarified semantics currently supported with TrafficUpdate
2 parents 28bf88e + 8e79ad7 commit 6ae62d6

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

osi_trafficupdate.proto

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ import "osi_object.proto";
99
package osi3;
1010

1111
//
12-
// \brief The traffic update message is provided by traffic
13-
// participant models to provide updates to their position, state
14-
// and future trajectory back to the simulation environment.
12+
// \brief The traffic update message is provided by traffic participant
13+
// models to provide updates to their position, state and future
14+
// trajectory back to the simulation environment. The message is
15+
// designed to update data of exactly one traffic participant,
16+
// optionally with an attached trailer.
1517
//
16-
// \note For reasons of convenience and consistency, the
17-
// updated information is provided as a MovingObject. Certain fields
18-
// of this sub-message are not required to be set and will be ignored by the
18+
// \note For reasons of convenience and consistency, the updated
19+
// information is provided as a MovingObject. Certain fields of this
20+
// sub-message are not required to be set and will be ignored by the
1921
// simulation environment, because they are static information.
2022
// Instead of creating a seperate message type for only the non-static
2123
// information, re-use existing message.
@@ -45,5 +47,9 @@ message TrafficUpdate
4547
// or vehicle category. All dynamic fields should be populated where known,
4648
// for example, velocity, light states, or future trajectory.
4749
//
50+
// \note The field is repeated because it is possible to have a trailer attached to
51+
// a vehicle, see MovingObject::VehicleClassification::has_trailer and
52+
// MovingObject::VehicleClassification::trailer_id.
53+
//
4854
repeated MovingObject update = 3;
4955
}

0 commit comments

Comments
 (0)