Skip to content

Commit 1973fc7

Browse files
committed
Change relative_ego_origin vector to bbcenter_to_rear
1 parent 768031a commit 1973fc7

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

osi_object.proto

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,8 @@ package osi;
99
///
1010
/// A vehicle.
1111
///
12-
/// This is basically a BaseObject with additional attributes, such as type and lights. Note that, if this vehicle is a
13-
/// simulated ego vehicle (i.e. ego_vehicle is set to true), relative_ego_origin has to be set, defining the offset from
14-
/// the ego vehicle's bounding box center to the center of the vehicle's rear axis. This defines the origin of the ego
15-
/// vehicle's rear axis coordinate system and allows calculation of quantities relative to this reference frame. The
16-
/// origin of the rear axis coordinate system in world coordinates is calculated as: base.position + R * relative_ego_origin
12+
/// This is basically a BaseObject with additional attributes, such as type and lights.
13+
/// The origin of the rear (front) axis coordinate system in world coordinates is calculated as: base.position + R * bbcenter_to_rear (front)
1714
/// for the ego vehicle (R rotates from vehicle to world frame). For all vehicles, including ego vehicles, the position given
1815
/// in base.position points to the center of the vehicle's bounding box.
1916
///
@@ -35,10 +32,9 @@ message Vehicle
3532
/// See the description above!
3633
optional bool ego_vehicle = 5;
3734

38-
/// The position of the vehicle's reference point.
39-
/// See the description above!
40-
/// Field need not be set (or should be zero) if ego_vehicle is set to false.
41-
optional Vector3d relative_ego_origin = 6;
35+
/// The vector pointing from the bounding box center point (base.position) to the middle (in x, y and z)
36+
/// of the rear axle under neutral load conditions. In object coordinates.
37+
optional Vector3d bbcenter_to_rear = 6;
4238

4339
/// The ids of the lanes that this vehicle is assigned to.
4440
/// Might be multiple if the vehicle is switching lanes or moving from one lane into another following lane.
@@ -55,13 +51,9 @@ message Vehicle
5551
/// Field need not be set if ego_vehicle is set to false.
5652
optional Identifier driver = 10;
5753

58-
/// The vector pointing from the bounding box center point (base.position) to the middle (in x, y and z)
59-
/// of the rear axle under neutral load conditions.
60-
optional Vector3d bbcenter_to_rear = 11;
61-
6254
/// The vector pointing from the bounding box center point (base.position) to the middle (in x, y and z)
63-
/// of the front axle under neutral load conditions.
64-
optional Vector3d bbcenter_to_front = 12;
55+
/// of the front axle under neutral load conditions. In object coordinates.
56+
optional Vector3d bbcenter_to_front = 11;
6557

6658

6759
/// Definition of vehicle types.

0 commit comments

Comments
 (0)