@@ -6,8 +6,9 @@ package osi;
66
77
88//
9- // \brief A cartesian 3D vector for positions, velocities or accelerations or its uncertainties.
10- //
9+ // \brief A cartesian 3D vector for positions, velocities or accelerations or
10+ // its uncertainties.
11+ //
1112// Units are [m] for positions, [m/s] for velocities and [m/s^2] for accelerations.
1213//
1314// The coordinate system is defined as right-handed.
@@ -16,55 +17,64 @@ message Vector3d
1617{
1718 // The x coordinate.
1819 //
20+ // Unit [m] [m/s] or [m/s^2]
1921 optional double x = 1 ;
2022
2123 // The y coordinate.
2224 //
25+ // Unit [m] [m/s] or [m/s^2]
2326 optional double y = 2 ;
2427
2528 // The z coordinate.
2629 //
30+ // Unit [m] [m/s] or [m/s^2]
2731 optional double z = 3 ;
2832}
2933
3034//
31- // \brief A cartesian 2D vector for positions, velocities or accelerations or its uncertainties.
32- //
35+ // \brief A cartesian 2D vector for positions, velocities or accelerations or
36+ // its uncertainties.
37+ //
3338// Units are [m] for positions, [m/s] for velocities and [m/s^2] for accelerations.
3439//
3540message Vector2d
3641{
3742 // The x coordinate.
3843 //
44+ // Unit [m] [m/s] or [m/s^2]
3945 optional double x = 1 ;
4046
4147 // The y coordinate.
4248 //
49+ // Unit [m] [m/s] or [m/s^2]
4350 optional double y = 2 ;
4451}
4552
4653//
4754// \brief A timestamp.
4855//
49- // Names and types of fields are chosen in accordance to google/protobuf/timestamp.proto to allow a possible switch in the future.
50- // There is no definition of the zero point in time neither it is the Unix epoch.
51- // A simulation may start at the zero point in time but it is not mandatory.
52- //
56+ // Names and types of fields are chosen in accordance to
57+ // google/protobuf/timestamp.proto to allow a possible switch in the future.
58+ // There is no definition of the zero point in time neither it is the Unix
59+ // epoch. A simulation may start at the zero point in time but it is not
60+ // mandatory.
5361message Timestamp
5462{
55- // The number of seconds since the start of e.g. the simulation / system / vehicle.
63+ // The number of seconds since the start of e.g. the simulation / system /
64+ // vehicle.
65+ //
5666 // Unit: [s]
5767 optional int64 seconds = 1 ;
5868
5969 // The number of nanoseconds since the start of the last second.
70+ //
6071 // Unit: [ns]
6172 optional int32 nanos = 2 ;
6273}
6374
6475//
65- // \brief The dimension of a 3D box, e.g. the size of a 3D bounding box or its uncertainties.
66- //
67- // Units are all [m].
76+ // \brief The dimension of a 3D box, e.g. the size of a 3D bounding box or its
77+ // uncertainties.
6878//
6979// The dimensions are positive. Uncertainties are negative or positive.
7080//
@@ -75,25 +85,26 @@ message Dimension3d
7585{
7686 // The length of the box.
7787 //
88+ // Unit [m]
7889 optional double length = 1 ;
7990
8091 // The width of the box.
8192 //
93+ // Unit [m]
8294 optional double width = 2 ;
8395
8496 // The height of the box.
8597 //
98+ // Unit [m]
8699 optional double height = 3 ;
87100}
88101
89102//
90103// \brief A 3D orientation, orientation rate or orientation acceleration (i.e.
91104// derivatives) or its uncertainties denoted in euler angles.
92105//
93- // Units are
94- // \arg [rad] for orientation
95- // \arg [rad/s] for rates
96- // \arg [rad/s^2] for accelerations
106+ // Units are [rad] for orientation [rad/s] for rates and [rad/s^2] for
107+ // accelerations
97108//
98109// The preferred angular range is (-pi, pi]. The coordinate system is defined as
99110// right-handed.
@@ -122,14 +133,17 @@ message Orientation3d
122133{
123134 // The roll angle/rate/acceleration.
124135 //
136+ // Unit: [rad] [rad/s] or [rad/s^2]
125137 optional double roll = 1 ;
126138
127139 // The pitch angle/rate/acceleration.
128140 //
141+ // Unit: [rad] [rad/s] or [rad/s^2]
129142 optional double pitch = 2 ;
130143
131144 // The yaw angle/rate/acceleration.
132145 //
146+ // Unit: [rad] [rad/s] or [rad/s^2]
133147 optional double yaw = 3 ;
134148}
135149
@@ -175,33 +189,30 @@ message MountingPosition
175189//
176190// Used e.g., for low level representations of radar detections.
177191//
178- // Units are [m] for radial distance and [rad] for azimuth and elevation angles.
179- // With the x-axis of the sensor frame pointing in the central viewing direction
180- // of the sensor, the z-axis pointing upwards and the senor frame being
181- // right-handed, azimuth and elevation are defined as the rotations that would
182- // have to be applied to the sensor frame to make its x-axis point towards the
183- // referenced point or to align it with the referenced vector. The rotations are
184- // to be performed \b azimuth \b first (around the z-axis) and \b elevation
185- // \b second (around the new y-axis) to follow the definition of
186- // OSI:Orientation3D. For the sense of each rotation, the right-hand rule
187- // applies.
188- // If azimuth and elevation are zero, the referenced point lies directly ahead
189- // in the central viewing direction of the sensor, and the respective vector
190- // points directly in the latter.
192+ // Azimuth and elevation are defined as the rotations that would have to be
193+ // applied to the local frame (e.g sensor frame definition in
194+ // \c OSI:DetectionHeader) to make its x-axis point towards the referenced point
195+ // or to align it with the referenced vector. The rotations are to be performed
196+ // \b azimuth \b first (around the z-axis) and \b elevation \b second (around
197+ // the new y-axis) to follow the definition of \c OSI:Orientation3D. For the
198+ // sense of each rotation, the right-hand rule applies.
191199//
192200// vector_cartesian := Rotation(elevation)*Rotation(azimuth)*Unit_vector_x*distance
193201message Spherical3d
194202{
195203 // The radial distance.
196204 //
205+ // Unit: [m]
197206 optional double distance = 1 ;
198207
199208 // The azimuth (horizontal) angle.
200209 //
210+ // Unit: [rad]
201211 optional double azimuth = 2 ;
202212
203213 // The elevation (vertical) angle.
204214 //
215+ // Unit: [rad]
205216 optional double elevation = 3 ;
206217}
207218
0 commit comments