-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathosi_object.proto
692 lines (571 loc) · 18.9 KB
/
osi_object.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
syntax = "proto2";
option optimize_for = SPEED;
import "osi_common.proto";
package osi3;
//
// \brief A simulated object that is neither a moving object (vehicle or
// \c MovingObject e.g. pedestrian, animal, or vehicle) nor a traffic related
// object (\c TrafficLight, \c TrafficSign).
//
// \image html OSI_BaseStationary.svg
//
// \c StationaryObject excludes traffic lights, traffic signs and road marking
//
message StationaryObject
{
// The ID of the object.
//
// \rules
// is_globally_unique
// \endrules
//
optional Identifier id = 1;
// The base parameters of the stationary object.
//
optional BaseStationary base = 2;
// The classification of the stationary object.
//
optional Classification classification = 3;
// Opaque reference of an associated 3D model of the stationary object.
//
// \note It is implementation-specific how model_references are resolved to
// 3d models.
//
optional string model_reference = 4;
//
// \brief Classification data for a stationary object.
//
message Classification
{
// The type of the object.
//
optional Type type = 1;
// The dominating material of the structure.
//
optional Material material = 2;
// The dominating density of the material of the structure.
//
optional Density density = 3;
// The dominating color of the material of the structure.
//
optional Color color = 4;
// Definition of object types.
//
enum Type
{
// Type of the object is unknown (must not be used in ground truth).
//
TYPE_UNKNOWN = 0;
// Other (unspecified but known) type of object.
//
TYPE_OTHER = 1;
// Object is a bridge.
//
TYPE_BRIDGE = 2;
// Object is a building.
//
TYPE_BUILDING = 3;
// Object is a pole (e.g. from a traffic light).
//
TYPE_POLE = 4;
// Object is a pylon.
//
TYPE_PYLON = 5;
// Object is a delineator (e.g. at a construction site).
//
TYPE_DELINEATOR = 6;
// Object is a tree.
//
TYPE_TREE = 7;
// Object is a barrier.
//
TYPE_BARRIER = 8;
// Object is vegetation.
//
TYPE_VEGETATION = 9;
// Object is a curbstone.
//
TYPE_CURBSTONE = 10;
// Object is a wall.
//
TYPE_WALL = 11;
// Landmarks corresponding to vertical structures in the
// environment.
//
TYPE_VERTICAL_STRUCTURE = 12;
// Landmarks corresponding to rectangular structures in the
// environment, like walls.
//
TYPE_RECTANGULAR_STRUCTURE = 13;
// Landmarks corresponding to overhead structures in the
// environment, like sign bridges.
//
TYPE_OVERHEAD_STRUCTURE = 14;
// Landmarks corresponding to light sources or reflective structures
// in the environment, like street lights or reflective poles on the
// road boarder.
//
TYPE_REFLECTIVE_STRUCTURE = 15;
// Landmarks corresponding to construction site elements in the
// environment, like cones or beacons.
//
TYPE_CONSTRUCTION_SITE_ELEMENT = 16;
}
// Definition of material types.
//
enum Material
{
// Type of the material is unknown (must not be used in ground
// truth).
//
MATERIAL_UNKNOWN = 0;
// Other (unspecified but known) type of material.
//
MATERIAL_OTHER = 1;
// Wooden structure.
//
MATERIAL_WOOD = 2;
// Plastic structure.
//
MATERIAL_PLASTIC = 3;
// Concrete structure.
//
MATERIAL_CONCRETE = 4;
// Metal structure.
//
MATERIAL_METAL = 5;
// Natural stone structure.
//
MATERIAL_STONE = 6;
// Glas structure.
//
MATERIAL_GLAS = 7;
// Mud structure.
//
MATERIAL_MUD = 8;
}
// Definition of material density types.
//
enum Density
{
// Type of the material density is unknown (must not be used in
// ground truth).
//
DENSITY_UNKNOWN = 0;
// Other (unspecified but known) type of material density.
//
DENSITY_OTHER = 1;
// No perforation - solid;
//
DENSITY_SOLID = 2;
// Perforation max. ]0; 100] mm
//
DENSITY_SMALL_MESH = 3;
// Perforation max. ]100; 500] mm
//
DENSITY_MEDIAN_MESH = 4;
// Perforation max. ]500; 5000] mm
//
DENSITY_LARGE_MESH = 5;
// Perforation max. ]5000; infinity[ mm
//
DENSITY_OPEN = 6;
}
// Definition of colors for structures.
//
enum Color
{
// Color is unknown (must not be used in ground truth).
//
COLOR_UNKNOWN = 0;
// Other (unspecified but known) color.
//
COLOR_OTHER = 1;
// Yellow.
//
COLOR_YELLOW = 2;
// Green.
//
COLOR_GREEN = 3;
// Blue.
//
COLOR_BLUE = 4;
// Violet.
//
COLOR_VIOLET = 5;
// Red.
//
COLOR_RED = 6;
// Orange.
//
COLOR_ORANGE = 7;
// Black.
//
COLOR_BLACK = 8;
// GREY.
//
COLOR_GREY = 9;
// White.
//
COLOR_WHITE = 10;
}
}
}
//
// \brief A simulated object that is either a vehicle or another
// moving object (animal, pedestrian, etc), but not a stationary
// object (\c TrafficLight, \c TrafficSign, or \c StationaryObject).
//
// \image html OSI_MovingObject.svg
//
// \image html OSI_HostVehicle.svg
//
// \note The field \c MovingObject::vehicle_extension has to be
// filled if the \c MovingObject::Type is a vehicle.
//
message MovingObject
{
// The ID of the object.
//
// \rules
// is_globally_unique
// \endrules
//
optional Identifier id = 1;
// The base parameters of the vehicle.
//
// \note The bounding box does NOT includes mirrors for vehicles.
//
optional BaseMoving base = 2;
// The type of the object.
//
optional Type type = 3;
// The IDs of the lanes that this object is assigned to.
//
// \note Might be multiple if the object is switching lanes or moving from
// one lane into another following lane.
//
// \note OSI uses singular instead of plural for repeated field names.
//
repeated Identifier assigned_lane_id = 4;
// Specific information about the vehicle.
//
// \note This field is mandatory if the \c #type is
// #TYPE_VEHICLE .
//
// \rules
// check_if this.type is_equal_to 2 else do_check is_set
// \endrules
//
optional VehicleAttributes vehicle_attributes = 5;
// Specific information about the classification of the vehicle.
//
//
// \note This field is mandatory if the \c #type is
// #TYPE_VEHICLE .
//
// \rules
// check_if this.type is_equal_to 2 else do_check is_set
// \endrules
//
optional VehicleClassification vehicle_classification = 6;
// Opaque reference of an associated 3D model of the moving object.
//
// \note It is implementation-specific how model_references are resolved to
// 3d models.
//
optional string model_reference = 7;
// Definition of object types.
//
enum Type
{
// Type of the object is unknown (must not be used in ground truth).
//
TYPE_UNKNOWN = 0;
// Other (unspecified but known) type of moving object.
//
TYPE_OTHER = 1;
// Object is a vehicle.
//
TYPE_VEHICLE = 2;
// Object is a pedestrian.
//
TYPE_PEDESTRIAN = 3;
// Object is an animal.
//
TYPE_ANIMAL = 4;
}
//
// \brief The vehicle attributes for \c MovingObject (host or other).
//
// This is an extension to the \c MovingObject with additional attributes,
// such as type and lights. The origin of the rear (front) axis coordinate
// system in world coordinates is calculated as:
// \c MovingObject::base . \c BaseMoving::position + R * \c
// MovingObject::VehicleAttributes::bbcenter_to_rear (front) for the host
// vehicle (R rotates from vehicle to world frame, i.e. inverse orientation
// of \c MovingObject::base . \c BaseMoving::orientation).
//
// For all vehicles, including host vehicles, the position given in
// \c MovingObject::base . \c BaseMoving::position points to the center of
// the vehicle's bounding box.
//
// The vehicle object coordinates are defined as x-axis is the direction
// from rear to front of the vehicle, y-axis corresponds to rear axle and
// z-axis points to vehicle ceiling [1]. The coordinate system is
// right-handed. Therefore the positive y-axis points to the left of the
// vehicle.
//
// \par Reference:
// [1] DIN Deutsches Institut fuer Normung e. V. (2013). <em>DIN ISO 8855 Strassenfahrzeuge - Fahrzeugdynamik und Fahrverhalten - Begriffe</em>. (DIN ISO 8855:2013-11). Berlin, Germany.
//
message VehicleAttributes
{
// The ID of the driver of the (host) vehicle.
//
// \note Field need not be set if host_vehicle is set to false or use
// value for non valid id.
//
optional Identifier driver_id = 1;
// Median radius of the wheels measured from a center of the wheel
// including tire.
//
// Unit: m
//
// \rules
// is_greater_than_or_equal_to: 0
// \endrules
//
optional double radius_wheel = 2;
// Number of independent wheels.
//
// \rules
// is_greater_than_or_equal_to: 1
// \endrules
//
optional uint32 number_wheels = 3;
// The vector pointing from the bounding box center point (\c
// MovingObject::base . \c BaseMoving::position) to the middle (in x, y
// and z) of the rear axle under neutral load conditions. In object
// coordinates.
//
optional Vector3d bbcenter_to_rear = 4;
// The vector pointing from the bounding box center point (\c
// MovingObject::base . \c BaseMoving::position) to the middle (in x, y
// and z) of the front axle under neutral load conditions. In object
// coordinates.
//
optional Vector3d bbcenter_to_front = 5;
// Static minimal distance in m of under-body plane to ground
// surface plane (i.e. disregarding driving dynamic effects or road
// surface effects) under neutral load conditions. Can be useful to
// approximate the clear area under a vehicle that a sensor can see
// through.
//
optional double ground_clearance = 6;
}
//
// \brief Information for the classification of vehicles regarding
// \c MovingObject (host or other).
//
message VehicleClassification
{
// The type of the vehicle.
//
optional Type type = 1;
// The light state of the vehicle.
//
optional LightState light_state = 2;
// Flag defining whether the vehicle has an attached trailer.
//
optional bool has_trailer = 3;
// Id of the attached trailer.
//
// \note Field need not be set if has_Trailer is set to false or use
// value for non valid id.
//
// \rules
// check_if this.has_trailer is_equal_to true else do_check is_set
// \endrules
//
optional Identifier trailer_id = 4;
// Definition of vehicle types.
//
enum Type
{
// Type of vehicle is unknown (must not be used in ground truth).
//
TYPE_UNKNOWN = 0;
// Other (unspecified but known) type of vehicle.
//
TYPE_OTHER = 1;
// Vehicle is a small car.
//
// Definition: Hatchback car with maximum length 4 m.
//
TYPE_SMALL_CAR = 2;
// Vehicle is a compact car.
//
// Definition: Hatchback car with length between 4 and 4.5 m.
//
TYPE_COMPACT_CAR = 3;
// Vehicle is a medium car.
//
// Definition: Hatchback or sedan with lenght between 4.5 and 5 m.
//
TYPE_MEDIUM_CAR = 4;
// Vehicle is a luxury car.
//
// Definition: Sedan or coupe that is longer then 5 m.
//
TYPE_LUXURY_CAR = 5;
// Vehicle is a delivery van.
//
// Definition: A delivery van.
//
TYPE_DELIVERY_VAN = 6;
// Vehicle is a heavy truck.
//
TYPE_HEAVY_TRUCK = 7;
// Vehicle is a truck with semitrailer.
//
TYPE_SEMITRAILER = 8;
// Vehicle is a trailer (possibly attached to another vehicle).
//
TYPE_TRAILER = 9;
// Vehicle is a motorbike or moped.
//
TYPE_MOTORBIKE = 10;
// Vehicle is a bicycle (without motor and specific lights).
//
TYPE_BICYCLE = 11;
// Vehicle is a bus.
//
TYPE_BUS = 12;
// Vehicle is a tram.
//
TYPE_TRAM = 13;
// Vehicle is a train.
//
TYPE_TRAIN = 14;
// Vehicle is a wheelchair.
//
TYPE_WHEELCHAIR = 15;
}
//
// \brief The state of the lights of a vehicle.
//
message LightState
{
// State of the object's indicators.
//
optional IndicatorState indicator_state = 1;
// State of the front fog light.
//
optional GenericLightState front_fog_light = 2;
// State of the rear fog light.
//
optional GenericLightState rear_fog_light = 3;
// State of the head lights.
//
optional GenericLightState head_light = 4;
// State of the high beam.
//
optional GenericLightState high_beam = 5;
// State of the reversing light.
//
optional GenericLightState reversing_light = 6;
// State of the brake lights.
//
optional BrakeLightState brake_light_state = 7;
// State of the (rear) license plate illumination.
//
optional GenericLightState license_plate_illumination_rear = 8;
// Lighting of emergency vehicles (ambulance, fire engine, police
// car, etc.). Must be set only if a vehicle is allowed to use this
// illumination type.
//
optional GenericLightState emergency_vehicle_illumination = 9;
// Lighting of service vehicles (snow removal, garbage truck, towing
// vehicle, slow or wide vehicle, etc.). Must be set only if a
// vehicle is allowed to use this illumination type.
//
optional GenericLightState service_vehicle_illumination = 10;
// Definition of indicator states.
//
enum IndicatorState
{
// Indicator state is unknown (must not be used in ground
// truth).
//
INDICATOR_STATE_UNKNOWN = 0;
// Other (unspecified but known) state of indicator.
//
INDICATOR_STATE_OTHER = 1;
// Indicators are off.
//
INDICATOR_STATE_OFF = 2;
// Left indicator is on.
//
INDICATOR_STATE_LEFT = 3;
// Right indicator is on.
//
INDICATOR_STATE_RIGHT = 4;
// Hazard/warning light, i.e. both indicators, are on.
//
INDICATOR_STATE_WARNING = 5;
}
// Definition of generic light states for light that may be on or
// off.
//
enum GenericLightState
{
// Light state is unknown (must not be used in ground truth).
//
GENERIC_LIGHT_STATE_UNKNOWN = 0;
// Other (unspecified but known) state of light.
//
GENERIC_LIGHT_STATE_OTHER = 1;
// Light is off.
//
GENERIC_LIGHT_STATE_OFF = 2;
// Light is on.
//
GENERIC_LIGHT_STATE_ON = 3;
// Light is flashing blue.
// To be used for emergency vehicles.
//
GENERIC_LIGHT_STATE_FLASHING_BLUE = 4;
// Light is flashing blue and red.
// To be used for emergency vehicles.
//
GENERIC_LIGHT_STATE_FLASHING_BLUE_AND_RED = 5;
// Light is flashing amber.
// To be used for service vehicles.
//
GENERIC_LIGHT_STATE_FLASHING_AMBER = 6;
}
// Definition of brake light states.
//
enum BrakeLightState
{
// Brake light state is unknown (must not be used in ground
// truth).
//
BRAKE_LIGHT_STATE_UNKNOWN = 0;
// Other (unspecified but known) state of brake light.
//
BRAKE_LIGHT_STATE_OTHER = 1;
// Brake lights are off.
//
BRAKE_LIGHT_STATE_OFF = 2;
// Brake lights are on with normal intensity.
//
BRAKE_LIGHT_STATE_NORMAL = 3;
// Brake lights are on with extra bright intensity (indicating
// stronger braking).
BRAKE_LIGHT_STATE_STRONG = 4;
}
}
}
}