Skip to content

Commit 2f7654b

Browse files
caspar-aipmai
authored andcommitted
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 <caspar.dehaes@five.ai>
1 parent 05a1cff commit 2f7654b

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 For reasons of convenience and consistency, the
1717
// updated information is provided as a MovingObject. Certain fields
@@ -40,37 +40,10 @@ message TrafficUpdate
4040

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

0 commit comments

Comments
 (0)