Skip to content

Commit 7097103

Browse files
authored
Merge pull request #368 from OpenSimulationInterface/bugfix/osi_object
Move assigned_lane_id/assigned_lane_percentage in osi_object.proto to new MovingObjectClassification
2 parents d0ae8e4 + 97444fa commit 7097103

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

osi_detectedobject.proto

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ message DetectedMovingObject
190190
//
191191
// Percentage value of the object width in the corresponding lane.
192192
//
193+
// \note DEPRECATED: Use assigned_lane_percentage in MovingObjectClassification
194+
// instead.
195+
//
193196
// \rules
194197
// is_greater_than_or_equal_to: 0
195198
// is_less_than_or_equal_to: 100
@@ -201,6 +204,9 @@ message DetectedMovingObject
201204
//
202205
// Percentage value of the object width in the corresponding lane.
203206
//
207+
// \note DEPRECATED: Use assigned_lane_percentage in MovingObjectClassification
208+
// instead.
209+
//
204210
// \rules
205211
// is_greater_than_or_equal_to: 0
206212
// is_less_than_or_equal_to: 100
@@ -309,6 +315,10 @@ message DetectedMovingObject
309315
// [1] Patton, K. T. & Thibodeau, G. A. (2015). <em>Anatomy & Physiology</em>. 9th Edition. Elsevier. Missouri, U.S.A. ISBN 978-0-323-34139-4. p. 1229.
310316
//
311317
optional Orientation3d upper_body_pose = 5;
318+
319+
// Specific information about the classification of a moving object.
320+
//
321+
optional MovingObject.MovingObjectClassification moving_object_classification = 6;
312322
}
313323

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

osi_object.proto

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,9 @@ message MovingObject
308308
//
309309
// \note OSI uses singular instead of plural for repeated field names.
310310
//
311+
// \note DEPRECATED: Use assigned_lane_id in MovingObjectClassification
312+
// instead.
313+
//
311314
repeated Identifier assigned_lane_id = 4;
312315

313316
// Specific information about the vehicle.
@@ -352,6 +355,10 @@ message MovingObject
352355
//
353356
repeated StatePoint future_trajectory = 8;
354357

358+
// Specific information about the classification of the vehicle.
359+
//
360+
optional MovingObjectClassification moving_object_classification = 9;
361+
355362
// Definition of object types.
356363
//
357364
enum Type
@@ -543,6 +550,31 @@ message MovingObject
543550
}
544551
}
545552

553+
//
554+
// \brief Information for the classification of moving objects regarding
555+
// \c MovingObject (host or other).
556+
//
557+
message MovingObjectClassification
558+
{
559+
// The IDs of the lanes that this object is assigned to.
560+
//
561+
// \note Might be multiple if the object is switching lanes or moving from
562+
// one lane into another following lane.
563+
//
564+
// \note OSI uses singular instead of plural for repeated field names.
565+
//
566+
repeated Identifier assigned_lane_id = 1;
567+
568+
// Percentage value of the object width in the corresponding lane.
569+
//
570+
// \note Might be multiple if the object is switching lanes or moving from
571+
// one lane into another following lane.
572+
//
573+
// \note OSI uses singular instead of plural for repeated field names.
574+
//
575+
repeated double assigned_lane_percentage = 2;
576+
}
577+
546578
//
547579
// \brief Information for the classification of vehicles regarding
548580
// \c MovingObject (host or other).

0 commit comments

Comments
 (0)