Skip to content

Commit b606326

Browse files
committed
Make the structure more generic to all automated driving
Signed-off-by: Caspar de Haes <caspar.dehaes@five.ai>
1 parent a7f6ab2 commit b606326

File tree

1 file changed

+71
-46
lines changed

1 file changed

+71
-46
lines changed

osi_hostvehicledata.proto

Lines changed: 71 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,17 @@ message HostVehicleData
7575
//
7676
optional VehicleLocalization vehicle_localization = 8;
7777

78-
// State of driver assistance systems.
78+
// State of any automated driving functions.
7979
//
8080
// This can include:
8181
// - information presented to the driver, for example, parking sensors
8282
// - warnings raised by the vehicle, for example, forward collision warning
8383
// - corrective action taken by the vehicle, for example, auto emergency braking
84+
// - full level 4 self driving systems
8485
//
85-
repeated DriverAssistState driver_assist_state = 12;
86+
// \note OSI uses singular instead of plural for repeated field names.
87+
//
88+
repeated VehicleAutomatedDrivingFunction automated_driving_function = 12;
8689

8790
//
8891
// \brief The absolute base parameters of the vehicle.
@@ -286,24 +289,23 @@ message HostVehicleData
286289
}
287290

288291
//
289-
// \brief The driver assist state specifically relating to recognised
290-
// Advanced Driver Assistance Systems.
292+
// \brief State of one automated driving function on the host vehicle.
291293
//
292-
message DriverAssistState
294+
message VehicleAutomatedDrivingFunction
293295
{
294-
// The particular feature being reported about.
296+
// The particular function being reported about.
295297
//
296-
optional AssistFeature assist_feature = 1;
298+
optional FunctionName function_name = 1;
297299

298-
// Custom feature name.
300+
// Custom function name.
299301
//
300-
// Only used if assist_feature is set to ASSIST_FEATURE_OTHER.
302+
// Only used if function_name is set to FUNCTION_NAME_OTHER.
301303
//
302304
optional string custom_name = 2;
303305

304-
// The activation state of the feature.
306+
// The activation state of the function.
305307
//
306-
// This is whether the feature has actually been triggered, for
308+
// This is whether the function has actually been triggered, for
307309
// example, a warning has been raised, or additional braking is
308310
// in effect.
309311
//
@@ -325,101 +327,120 @@ message HostVehicleData
325327
//
326328
repeated KeyValuePair custom_detail = 5;
327329

328-
// ADAS feature that is raising the notification.
330+
// A list of possible automated driving features.
331+
//
332+
// \note This can span (in theory) from Level 0 all the way to Level 5.
329333
//
330-
// \note The naming convention is taken from the SAE guidance on ADAS
331-
// nomenclature:
332-
// https://www.sae.org/binaries/content/assets/cm/content/miscellaneous/adas-nomenclature.pdf
334+
// References:
335+
// - https://www.sae.org/binaries/content/assets/cm/content/miscellaneous/adas-nomenclature.pdf
336+
// - https://www.vda.de/en/topics/innovation-and-technology/automated-driving/automated-driving
333337
//
334-
enum AssistFeature
338+
enum FunctionName
335339
{
336340
// Unknown feature, should not be used.
337341
//
338-
ASSIST_FEATURE_UNKNOWN = 0;
342+
FUNCTION_NAME_UNKNOWN = 0;
339343

340344
// Custom feature, see custom_name.
341345
//
342-
ASSIST_FEATURE_OTHER = 1;
346+
FUNCTION_NAME_OTHER = 1;
343347

344348
// Blind spot warning.
345349
//
346-
ASSIST_FEATURE_BLIND_SPOT_WARNING = 2;
350+
FUNCTION_NAME_BLIND_SPOT_WARNING = 2;
347351

348352
// Forward collision warning.
349353
//
350-
ASSIST_FEATURE_FORWARD_COLLISION_WARNING = 3;
354+
FUNCTION_NAME_FORWARD_COLLISION_WARNING = 3;
351355

352356
// Lane departure warning.
353357
//
354-
ASSIST_FEATURE_LANE_DEPARTURE_WARNING = 4;
358+
FUNCTION_NAME_LANE_DEPARTURE_WARNING = 4;
355359

356360
// Parking collision warning.
357361
//
358-
ASSIST_FEATURE_PARKING_COLLISION_WARNING = 5;
362+
FUNCTION_NAME_PARKING_COLLISION_WARNING = 5;
359363

360364
// Rear cross-traffic warning
361365
//
362-
ASSIST_FEATURE_REAR_CROSS_TRAFFIC_WARNING = 6;
366+
FUNCTION_NAME_REAR_CROSS_TRAFFIC_WARNING = 6;
363367

364368
// Automatic emergency braking
365369
//
366-
ASSIST_FEATURE_AUTOMATIC_EMERGENCY_BRAKING = 7;
370+
FUNCTION_NAME_AUTOMATIC_EMERGENCY_BRAKING = 7;
367371

368372
// Emergency steering
369373
//
370-
ASSIST_FEATURE_AUTOMATIC_EMERGENCY_STEERING = 8;
374+
FUNCTION_NAME_AUTOMATIC_EMERGENCY_STEERING = 8;
371375

372376
// Reverse automatic emergency braking
373377
//
374-
ASSIST_FEATURE_REVERSE_AUTOMATIC_EMERGENCY_BRAKING = 9;
378+
FUNCTION_NAME_REVERSE_AUTOMATIC_EMERGENCY_BRAKING = 9;
375379

376380
// Adaptive cruise control
377381
//
378-
ASSIST_FEATURE_ADAPTIVE_CRUISE_CONTROL = 10;
382+
FUNCTION_NAME_ADAPTIVE_CRUISE_CONTROL = 10;
379383

380384
// Lane keeping assist
381385
//
382-
ASSIST_FEATURE_LANE_KEEPING_ASSIST = 11;
386+
FUNCTION_NAME_LANE_KEEPING_ASSIST = 11;
383387

384388
// Active driving assistance
385389
//
386-
ASSIST_FEATURE_ACTIVE_DRIVING_ASSISTANCE = 12;
390+
FUNCTION_NAME_ACTIVE_DRIVING_ASSISTANCE = 12;
387391

388392
// Backup camera
389393
//
390-
ASSIST_FEATURE_BACKUP_CAMERA = 13;
394+
FUNCTION_NAME_BACKUP_CAMERA = 13;
391395

392396
// Surround view camera
393397
//
394-
ASSIST_FEATURE_SURROUND_VIEW_CAMERA = 14;
398+
FUNCTION_NAME_SURROUND_VIEW_CAMERA = 14;
395399

396400
// Active parking assistance
397401
//
398-
ASSIST_FEATURE_ACTIVE_PARKING_ASSISTANCE = 15;
402+
FUNCTION_NAME_ACTIVE_PARKING_ASSISTANCE = 15;
399403

400404
// Remote parking assistance
401405
//
402-
ASSIST_FEATURE_REMOTE_PARKING_ASSISTANCE = 16;
406+
FUNCTION_NAME_REMOTE_PARKING_ASSISTANCE = 16;
403407

404408
// Trailer assistance
405409
//
406-
ASSIST_FEATURE_TRAILER_ASSISTANCE = 17;
410+
FUNCTION_NAME_TRAILER_ASSISTANCE = 17;
407411

408412
// Automatic high beams
409413
//
410-
ASSIST_FEATURE_AUTOMATIC_HIGH_BEAMS = 18;
414+
FUNCTION_NAME_AUTOMATIC_HIGH_BEAMS = 18;
411415

412416
// Driver monitoring
413417
//
414-
ASSIST_FEATURE_DRIVER_MONITORING = 19;
418+
FUNCTION_NAME_DRIVER_MONITORING = 19;
415419

416420
// Head up display
417421
//
418-
ASSIST_FEATURE_HEAD_UP_DISPLAY = 20;
422+
FUNCTION_NAME_HEAD_UP_DISPLAY = 20;
419423

420424
// Night vision
421425
//
422-
ASSIST_FEATURE_NIGHT_VISION = 21;
426+
FUNCTION_NAME_NIGHT_VISION = 21;
427+
428+
// Urban driving
429+
//
430+
FUNCTION_NAME_URBAN_DRIVING = 22;
431+
432+
// Highway autopilot.
433+
//
434+
FUNCTION_NAME_HIGHWAY_AUTOPILOT = 23;
435+
436+
// Cruise control.
437+
//
438+
FUNCTION_NAME_CRUISE_CONTROL = 24;
439+
440+
// Speed limit control
441+
//
442+
FUNCTION_NAME_SPEED_LIMIT_CONTROL = 25;
443+
423444
}
424445

425446
// The activation state of a feature.
@@ -439,29 +460,33 @@ message HostVehicleData
439460
//
440461
ACTIVATION_STATE_OTHER = 1;
441462

442-
// The feature has been disabled.
463+
// The function has been disabled.
443464
//
444465
ACTIVATION_STATE_TURNED_OFF = 2;
445466

446-
// The feature has errored in some way that renders it ineffective.
467+
// The function has errored in some way that renders it ineffective.
447468
//
448469
ACTIVATION_STATE_ERRORED = 3;
449470

450-
// The feature is enabled but conditions have not caused it to be
471+
// The function is initialized but not ready to start.
472+
//
473+
ACTIVATION_STATE_UNAVAILABLE = 4;
474+
475+
// The function is enabled but conditions have not caused it to be
451476
// triggered, for example, no vehicles in front to trigger a FCW.
452477
//
453-
ACTIVATION_STATE_STANDBY = 4;
478+
ACTIVATION_STATE_STANDBY = 5;
454479

455-
// The feature is currently active, for example, a warning is being
480+
// The function is currently active, for example, a warning is being
456481
// shown to the driver, or emergency braking is being applied/
457482
//
458-
ACTIVATION_STATE_ACTIVE = 5;
483+
ACTIVATION_STATE_ACTIVE = 6;
459484

460-
// The feature would be ACTIVE, but the user has show sufficient
485+
// The function would be ACTIVE, but the user has show sufficient
461486
// input to override, for example, by applying throttle or steering
462487
// input.
463488
//
464-
ACTIVATION_STATE_ACTIVE_DRIVER_OVERRIDE = 6;
489+
ACTIVATION_STATE_ACTIVE_DRIVER_OVERRIDE = 7;
465490
}
466491
}
467492
}

0 commit comments

Comments
 (0)