Skip to content

Commit d7fab37

Browse files
Habedank Clemenspmai
authored andcommitted
Introduce MovingObjectClassification in MovingObject
Add MovingObjectClassification and put assigend_lane_id and assigned_lane_percentage there to allow for filling those fields for non-vehicle moving objects Signed-off-by: Pierre R. Mai <pmai@pmsf.de>
1 parent d4eaae3 commit d7fab37

File tree

2 files changed

+28
-21
lines changed

2 files changed

+28
-21
lines changed

osi_detectedobject.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ message DetectedMovingObject
190190
//
191191
// Percentage value of the object width in the corresponding lane.
192192
//
193-
// \note DEPRECATED: Use assigned_lane_percentage in VehicleClassification
193+
// \note DEPRECATED: Use assigned_lane_percentage in MovingObjectClassification
194194
// instead.
195195
//
196196
// \rules
@@ -204,7 +204,7 @@ message DetectedMovingObject
204204
//
205205
// Percentage value of the object width in the corresponding lane.
206206
//
207-
// \note DEPRECATED: Use assigned_lane_percentage in VehicleClassification
207+
// \note DEPRECATED: Use assigned_lane_percentage in MovingObjectClassification
208208
// instead.
209209
//
210210
// \rules

osi_object.proto

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ message MovingObject
308308
//
309309
// \note OSI uses singular instead of plural for repeated field names.
310310
//
311-
// \note DEPRECATED: Use assigned_lane_id in VehicleClassification
311+
// \note DEPRECATED: Use assigned_lane_id in MovingObjectClassification
312312
// instead.
313313
//
314314
repeated Identifier assigned_lane_id = 4;
@@ -546,6 +546,31 @@ message MovingObject
546546
}
547547
}
548548

549+
//
550+
// \brief Information for the classification of moving objects regarding
551+
// \c MovingObject (host or other).
552+
//
553+
message MovingObjectClassification
554+
{
555+
// The IDs of the lanes that this object is assigned to.
556+
//
557+
// \note Might be multiple if the object is switching lanes or moving from
558+
// one lane into another following lane.
559+
//
560+
// \note OSI uses singular instead of plural for repeated field names.
561+
//
562+
repeated Identifier assigned_lane_id = 1;
563+
564+
// Percentage value of the object width in the corresponding lane.
565+
//
566+
// \note Might be multiple if the object is switching lanes or moving from
567+
// one lane into another following lane.
568+
//
569+
// \note OSI uses singular instead of plural for repeated field names.
570+
//
571+
repeated double assigned_lane_percentage = 2;
572+
}
573+
549574
//
550575
// \brief Information for the classification of vehicles regarding
551576
// \c MovingObject (host or other).
@@ -575,24 +600,6 @@ message MovingObject
575600
//
576601
optional Identifier trailer_id = 4;
577602

578-
// The IDs of the lanes that this object is assigned to.
579-
//
580-
// \note Might be multiple if the object is switching lanes or moving from
581-
// one lane into another following lane.
582-
//
583-
// \note OSI uses singular instead of plural for repeated field names.
584-
//
585-
repeated Identifier assigned_lane_id = 5;
586-
587-
// Percentage value of the object width in the corresponding lane.
588-
//
589-
// \note Might be multiple if the object is switching lanes or moving from
590-
// one lane into another following lane.
591-
//
592-
// \note OSI uses singular instead of plural for repeated field names.
593-
//
594-
repeated double assigned_lane_percentage = 6;
595-
596603
// Definition of vehicle types.
597604
//
598605
enum Type

0 commit comments

Comments
 (0)