Skip to content

Commit f5464aa

Browse files
committed
Move the future-trajectory inside moving object
To allow easier propagation of trajectories to allow traffic participants outside the simulator. Signed-off-by: Caspar de Haes <[email protected]>
1 parent 303fb8b commit f5464aa

File tree

2 files changed

+19
-34
lines changed

2 files changed

+19
-34
lines changed

osi_object.proto

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,18 @@ message MovingObject
338338
//
339339
optional string model_reference = 7;
340340

341+
// The trajectory that this moving object expects to follow in the future.
342+
//
343+
// This is not externally perceivable information, rather this is to aid
344+
// realistic simulation of agents not under test. This information should
345+
// not be made available to the stack under test.
346+
//
347+
// \note Moving objects are not required to stick to this trajectory, it is
348+
// indicative, and equivalent to the output of a perception + prediction
349+
// system.
350+
//
351+
repeated StatePoint future_trajectory = 8;
352+
341353
// Definition of object types.
342354
//
343355
enum Type

osi_trafficupdate.proto

Lines changed: 7 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ package osi3;
1010

1111
//
1212
// \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.
13+
// participant models to provide updates to their position, state
14+
// and future trajectory back to the simulation environment.
1515
//
1616
// \note Note that for reasons of convenience and consistency, the
1717
// updated information is provided as a MovingObject. Certain fields
@@ -41,37 +41,10 @@ message TrafficUpdate
4141

4242
// Updated traffic participant data
4343
//
44-
repeated TrafficParticipantUpdate traffic = 3;
45-
46-
// \brief Data for a single traffic participant to update the simulator.
47-
//
48-
// It includes an immediate update for the current timestamp reported in
49-
// parent traffic update message which can include the full detail of a
50-
// moving object message.
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.
5148
//
52-
// The future trajectory is deliberately more sparse as much of the detail
53-
// won't be known for all future points.
54-
//
55-
message TrafficParticipantUpdate
56-
{
57-
// Updated Moving Object
58-
//
59-
// \note Only the id, base member (without dimension and base_polygon),
60-
// and the vehicle_classification.light_state members are considered in
61-
// updates, all other members can be left undefined, and will be
62-
// ignored by the receiver of this message.
63-
//
64-
optional MovingObject update = 1;
65-
66-
// The future trajectory message is to allow traffic participants to
67-
// indicate to the simulator their current expectations of where they plan to
68-
// be in the future.
69-
//
70-
// \note Traffic participants aren't required to stick precisely to this future
71-
// trajectory. It is to allow the simulator to provide realistic agent
72-
// behaviours without performing prediction for all external traffic
73-
// participants.
74-
//
75-
repeated StatePoint future_trajectory = 2;
76-
}
49+
repeated MovingObject traffic = 3;
7750
}

0 commit comments

Comments
 (0)