Skip to content

Commit 51613e6

Browse files
committed
reordered DetectedObject and corrected comments
1 parent 950ec0f commit 51613e6

File tree

5 files changed

+79
-85
lines changed

5 files changed

+79
-85
lines changed

osi_common.proto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ option optimize_for = SPEED;
44

55
package osi3;
66

7-
87
//
98
// \brief A cartesian 3D vector for positions, velocities or accelerations or
109
// its uncertainties.
@@ -376,4 +375,4 @@ message BaseMoving
376375
// The polygon is defined counter-clockwise.
377376
//
378377
repeated Vector2d base_polygon = 7;
379-
}
378+
}

osi_detectedobject.proto

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ message DetectedItemHeader
3636
//
3737
optional double existence_probability = 3;
3838

39-
// The amount of time that this detected object has been continously
39+
// The amount of time that this detected object has been continuously
4040
// observed/tracked.
4141
//
4242
// \note: 'Time stamp' - Age := 'point in time' when the object has
@@ -63,29 +63,29 @@ message DetectedItemHeader
6363
// \note OSI uses singular instead of plural for repeated field names.
6464
//
6565
repeated Identifier sensor_id = 6;
66-
}
67-
68-
// Definition of measurement states.
69-
//
70-
enum MeasurementState
71-
{
72-
// Measurement state is unknown (must not be used in ground truth).
66+
67+
// Definition of measurement states.
7368
//
74-
MEASUREMENT_STATE_UNKNOWN = 0;
69+
enum MeasurementState
70+
{
71+
// Measurement state is unknown (must not be used in ground truth).
72+
//
73+
MEASUREMENT_STATE_UNKNOWN = 0;
7574

76-
// Measurement state is unspecified (but known, i.e. value is not part of
77-
// this enum list).
78-
//
79-
MEASUREMENT_STATE_OTHER = 1;
75+
// Measurement state is unspecified (but known, i.e. value is not part of
76+
// this enum list).
77+
//
78+
MEASUREMENT_STATE_OTHER = 1;
8079

81-
// Entity has been measured by the sensor in the current timestep.
82-
//
83-
MEASUREMENT_STATE_MEASURED = 2;
80+
// Entity has been measured by the sensor in the current timestep.
81+
//
82+
MEASUREMENT_STATE_MEASURED = 2;
8483

85-
// Entity has not been measured by the sensor in the current timestep.
86-
// Values provided by tracking only.
87-
//
88-
MEASUREMENT_STATE_PREDICTED = 3;
84+
// Entity has not been measured by the sensor in the current timestep.
85+
// Values provided by tracking only.
86+
//
87+
MEASUREMENT_STATE_PREDICTED = 3;
88+
}
8989
}
9090

9191
//
@@ -104,15 +104,16 @@ message DetectedMovingObject
104104
// \note OSI uses singular instead of plural for repeated field names.
105105
//
106106
repeated CandidateMovingObject candidate = 2;
107-
108-
// Additional internal data and state flags required and used by the
109-
// sensor-models, should not be used by subscribers to \c SensorData.
110-
// Generally this field should be cleared after internal processing.
107+
108+
// Reference point location specification of the sensor measurement
109+
// (required to decouple sensor measurement, position and bounding box
110+
// estimation) as used by the sensor (model).
111111
//
112-
// \note optional. List of used detections to recognize this object.
113-
// Detections have also an identifier to reference to the detected object.
112+
// \note Note that the value of this field has no impact on the value of
113+
// object.position, which always references the center of the object /
114+
// bounding box.
114115
//
115-
optional ModelInternalObject model_internal_object = 3;
116+
optional ReferencePoint reference_point = 3;
116117

117118
// The root mean squared error of the base parameters of the detected
118119
// moving object (e.g. car). \c MovingObject::base has to be
@@ -141,28 +142,37 @@ message DetectedMovingObject
141142
// \note Field need not be set if simulated sensor is not a radar
142143
// sensor.
143144
//
144-
optional RadarSpecificObjectData radar_specifics = 8;
145+
optional RadarSpecificObjectData radar_specifics = 100;
145146

146147
// Additional data that is specific to lidar sensors.
147148
//
148149
// \note Field need not be set if simulated sensor is not a lidar
149150
// sensor.
150151
//
151-
optional LidarSpecificObjectData lidar_specifics = 9;
152+
optional LidarSpecificObjectData lidar_specifics = 101;
152153

153154
// Additional data that is specific to camera sensors.
154155
//
155156
// \note Field need not be set if simulated sensor is not a camera
156157
// sensor.
157158
//
158-
optional CameraSpecificObjectData camera_specifics = 10;
159+
optional CameraSpecificObjectData camera_specifics = 102;
159160

160161
// Additional data that is specific to ultrasonic sensors.
161162
//
162163
// \note Field need not be set if simulated sensor is not an ultrasonic
163164
// sensor.
164165
//
165-
optional UltrasonicSpecificObjectData ultrasonic_specifics = 11;
166+
optional UltrasonicSpecificObjectData ultrasonic_specifics = 103;
167+
168+
// Additional internal data and state flags required and used by the
169+
// sensor-models, should not be used by subscribers to \c SensorData.
170+
// Generally this field should be cleared after internal processing.
171+
//
172+
// \note optional. List of used detections to recognize this object.
173+
// Detections have also an identifier to reference to the detected object.
174+
//
175+
optional ModelInternalObject model_internal_object = 1000;
166176

167177
//
168178
// \brief A candidate for a detected moving object as estimated by the
@@ -184,16 +194,6 @@ message DetectedMovingObject
184194
//
185195
optional MovingObject moving_object = 2;
186196

187-
// Reference point location specification of the sensor measurement
188-
// (required to decouple sensor measurement, position and bounding box
189-
// estimation) as used by the sensor (model).
190-
//
191-
// \note Note that the value of this field has no impact on the value of
192-
// object.position, which always references the center of the object /
193-
// bounding box.
194-
//
195-
optional ReferencePoint reference_point = 3;
196-
197197
// Pedestrian head pose for behavior prediction. Describes the head
198198
// orientation w.r.t. the host vehicle orientation.
199199
// The x-axis of the right-handed head frame is pointing along the
@@ -205,7 +205,7 @@ message DetectedMovingObject
205205
// \par References:
206206
// \li [1] https://en.wikipedia.org/wiki/Anatomical_terms_of_location
207207
//
208-
optional Orientation3d head_pose = 4;
208+
optional Orientation3d head_pose = 3;
209209

210210
// Pedestrian upper body pose for behavior prediction. Describes the
211211
// upper body orientation w.r.t. the host vehicle orientation.
@@ -219,7 +219,7 @@ message DetectedMovingObject
219219
// \par References:
220220
// \li [2] https://en.wikipedia.org/wiki/Anatomical_terms_of_location
221221
//
222-
optional Orientation3d upper_body_pose = 5;
222+
optional Orientation3d upper_body_pose = 4;
223223
}
224224

225225
// Definition of available reference points. Left/middle/right and

osi_featuredata.proto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ message LidarDetection
220220
// Basic classification of the detection.
221221
//
222222
optional DetectionClassification classification = 9;
223-
224223
}
225224

226225
//
@@ -338,4 +337,4 @@ enum DetectionClassification
338337
// Under-drivable (sign gantry etc.).
339338
//
340339
DETECTION_CLASSIFICATION_UNDERDRIVABLE = 5;
341-
}
340+
}

osi_object.proto

Lines changed: 33 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ package osi3;
88

99
//
1010
// \brief A simulated object that is neither a moving object (vehicle or
11-
// \c MovingObject e.g. pedestrian or animal) nor a stationary object
12-
// (traffic sign, traffic light).
11+
// \c MovingObject e.g. pedestrian, animal, or vehicle) nor a traffic related
12+
// object (\c TrafficLight, \c TrafficSign).
1313
//
14-
// \c StationaryObject excludes traffic lights and traffic signs
14+
// \c StationaryObject excludes traffic lights, traffic signs and road marking
1515
//
1616
message StationaryObject
1717
{
@@ -47,76 +47,72 @@ message StationaryObject
4747
//
4848
TYPE_BUILDING = 3;
4949

50-
// Object is a pole (e.g. traffic light).
50+
// Object is a pole (e.g. from a traffic light).
5151
//
5252
TYPE_POLE = 4;
5353

5454
// Object is a pylon.
5555
//
5656
TYPE_PYLON = 5;
5757

58-
// Object is a reflector post.
59-
//
60-
TYPE_REFLECTOR_POST = 6;
61-
6258
// Object is a delineator (e.g. at a construction site).
6359
//
64-
TYPE_DELINEATOR = 7;
60+
TYPE_DELINEATOR = 6;
6561

6662
// Object is a tree.
6763
//
68-
TYPE_TREE = 8;
64+
TYPE_TREE = 7;
6965

7066
// Object is a barrier.
7167
//
72-
TYPE_BARRIER = 9;
68+
TYPE_BARRIER = 8;
7369

7470
// Object is vegetation.
7571
//
76-
TYPE_VEGETATION = 10;
72+
TYPE_VEGETATION = 9;
7773

7874
// Object is a curbstone.
7975
//
80-
TYPE_CURBSTONE = 11;
76+
TYPE_CURBSTONE = 10;
8177

8278
// Object is a wall.
8379
//
84-
TYPE_WALL = 12;
80+
TYPE_WALL = 11;
8581

86-
// Landmarks corresponding to vertical structures in the environment,
87-
// like poles.
82+
// Landmarks corresponding to vertical structures in the environment.
8883
//
89-
TYPE_VERTICAL_STRUCTURE = 13;
84+
TYPE_VERTICAL_STRUCTURE = 12;
9085

9186
// Landmarks corresponding to rectangular structures in the environment,
9287
// like walls.
9388
//
94-
TYPE_RECTANGULAR_STRUCTURE = 14;
89+
TYPE_RECTANGULAR_STRUCTURE = 13;
9590

9691
// Landmarks corresponding to overhead structures in the environment,
9792
// like sign bridges.
9893
//
99-
TYPE_OVERHEAD_STRUCTURE = 15;
94+
TYPE_OVERHEAD_STRUCTURE = 14;
10095

10196
// Landmarks corresponding to light sources or reflective structures in
10297
// the environment, like street lights or reflective poles on the road
10398
// boarder.
10499
//
105-
TYPE_REFLECTIVE_STRUCTURE = 16;
100+
TYPE_REFLECTIVE_STRUCTURE = 15;
106101

107102
// Landmarks corresponding to construction site elements in the
108103
// environment, like cones or beacons.
109104
//
110-
TYPE_CONSTRUCTION_SITE_ELEMENT = 17;
105+
TYPE_CONSTRUCTION_SITE_ELEMENT = 16;
111106
}
112107
}
113108

114109
//
115110
// \brief A simulated object that is either a vehicle or another
116111
// moving object (animal, pedestrian, etc), but not a stationary
117-
// object (traffic sign, traffic light, \c StationaryObject).
112+
// object (\c TrafficLight, \c TrafficSign, or \c StationaryObject).
118113
//
119-
// \note If the \c MovingObject.Type is a vehicle.
114+
// \note The field \c MovingObject.vehicle_extension has to be
115+
// filled if the \c MovingObject.Type is a vehicle.
120116
//
121117
message MovingObject
122118
{
@@ -145,7 +141,7 @@ message MovingObject
145141

146142
// Specific information about the vehicle.
147143
//
148-
// \note This field is mandatory if the type is
144+
// \note This field is mandatory if the \c MovingObject.type is
149145
// \c #TYPE_VEHICLE .
150146
//
151147
optional Vehicle vehicle_extension = 5;
@@ -161,18 +157,18 @@ message MovingObject
161157
// Other (unspecified but known) type of moving object.
162158
//
163159
TYPE_OTHER = 1;
160+
161+
// Object is a vehicle.
162+
//
163+
TYPE_VEHICLE = 2;
164164

165165
// Object is a pedestrian.
166166
//
167-
TYPE_PEDESTRIAN = 2;
167+
TYPE_PEDESTRIAN = 3;
168168

169169
// Object is an animal.
170170
//
171-
TYPE_ANIMAL = 3;
172-
173-
// Object is a vehicle.
174-
//
175-
TYPE_VEHICLE = 4;
171+
TYPE_ANIMAL = 4;
176172
}
177173

178174
//
@@ -277,18 +273,18 @@ message MovingObject
277273
// Definition: Hatchback car with maximum length 4 m.
278274
//
279275
TYPE_SMALL_CAR = 2;
280-
281-
// Vehicle is a medium car.
276+
277+
// Vehicle is a compact car.
282278
//
283-
// Definition: Hatchback or sedan with lenght between 4.5 and 5 m.
279+
// Definition: Hatchback car with length between 4 and 4.5 m.
284280
//
285-
TYPE_MEDIUM_CAR = 3;
281+
TYPE_COMPACT_CAR = 3;
286282

287-
// Vehicle is a compact car.
283+
// Vehicle is a medium car.
288284
//
289-
// Definition: Hatchback car with length between 4 and 4.5 m.
285+
// Definition: Hatchback or sedan with lenght between 4.5 and 5 m.
290286
//
291-
TYPE_COMPACT_CAR = 4;
287+
TYPE_MEDIUM_CAR = 4;
292288

293289
// Vehicle is a luxury car.
294290
//

osi_occupant.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,4 @@ message Occupant
117117
//
118118
STEERING_CONTROL_RIGHT_HAND = 6;
119119
}
120-
}
120+
}

0 commit comments

Comments
 (0)