Skip to content

Commit 63b1921

Browse files
committed
changed ClassProbability to use Vehicle.Type -> please review: Problem with MovingObjects
1 parent 8496e6d commit 63b1921

File tree

1 file changed

+9
-99
lines changed

1 file changed

+9
-99
lines changed

osi_detectedobject.proto

Lines changed: 9 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,10 @@ message DetectedObject
110110

111111
// The estimated probabilities for the object to belong to a specific class.
112112
//
113-
optional ClassProbability class_probability = 16;
113+
// \note The probability for each class of object has to be provided.
114+
// \note OSI uses singular instead of plural for repeated field names.
115+
//
116+
repeated ClassProbability class_probability = 16;
114117

115118
// Pedestrian head pose for behavior prediction. Describes the head
116119
// orientation w.r.t. the host vehicle orientation.
@@ -254,109 +257,16 @@ message DetectedObject
254257
//
255258
message ClassProbability
256259
{
257-
// Probability that the object has unknown type.
258-
//
259-
// Range: [0,1]
260-
//
261-
optional double prob_unknown = 1;
262-
263-
// Probability that the object is unspecified but known.
264-
//
265-
// Range: [0,1]
266-
//
267-
optional double prob_other = 2;
268-
269-
// Probability that the object is a car.
270-
//
271-
// Range: [0,1]
272-
//
273-
optional double prob_car = 3;
274-
275-
// Probability that the object is a heavy truck.
276-
//
277-
// Range: [0,1]
278-
//
279-
optional double prob_heavy_truck = 4;
280-
281-
// Probability that the object is a van.
282-
//
283-
// Range: [0,1]
284-
//
285-
optional double prob_van = 5;
286-
287-
// Probability that the object is a bus.
288-
//
289-
// Range: [0,1]
290-
//
291-
optional double prob_bus = 6;
292-
293-
// Probability that the object is a trailer.
294-
//
295-
// Range: [0,1]
296-
//
297-
optional double prob_trailer = 7;
298-
299-
// Probability that the object is a semitrailer.
300-
//
301-
// Range: [0,1]
302-
//
303-
optional double prob_semitrailer = 8;
304-
305-
// Probability that the object is a tram.
306-
//
307-
// Range: [0,1]
308-
//
309-
optional double prob_tram = 9;
310-
311-
// Probability that the object is a train.
312-
//
313-
// Range: [0,1]
314-
//
315-
// \note Can also be used for underground railway.
316-
//
317-
optional double prob_train = 10;
318-
319-
// Probability that the object is a motorbike.
320-
//
321-
// Range: [0,1]
322-
//
323-
optional double prob_motorbike = 11;
324-
325-
// Probability that the object is a bicycle.
326-
//
327-
// Range: [0,1]
328-
//
329-
optional double prob_bicycle = 12;
330-
331-
// Probability that the object is a pedestrian.
332-
//
333-
// Range: [0,1]
334-
//
335-
optional double prob_pedestrian = 13;
336-
337-
// Probability that the object is a wheelchair.
338-
//
339-
// Range: [0,1]
340-
//
341-
optional double prob_wheelchair = 14;
342-
343-
// Probability that the object is an animal.
344-
//
345-
// Range: [0,1]
346-
//
347-
optional double prob_animal = 15;
348-
349-
// Probability that the object is a stationary object.
350-
//
351-
// Range: [0,1]
260+
// The class of object that has been estimated with a certain
261+
// probability.
352262
//
353-
optional double prob_stationary = 16;
263+
optional Vehicle.Type class = 1;
354264

355-
// Probability that the object is an unspecified but known vehicle.
265+
// Probability that the object is of that certain class.
356266
//
357267
// Range: [0,1]
358268
//
359-
optional double prob_other_vehicle = 17;
269+
optional double probability = 2;
360270
}
361271
}
362272

0 commit comments

Comments
 (0)