Skip to content

Commit a7f6ab2

Browse files
committed
Feedback from review
Signed-off-by: Caspar de Haes <caspar.dehaes@five.ai>
1 parent aeba490 commit a7f6ab2

File tree

3 files changed

+25
-19
lines changed

3 files changed

+25
-19
lines changed

osi_common.proto

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -885,3 +885,21 @@ message GeodeticPosition
885885
//
886886
optional double altitude = 3;
887887
}
888+
889+
890+
//
891+
// \brief Generic key-value pair structure
892+
//
893+
// A generic key-value pair structure which can be used to capture information
894+
// which is opaque to the general OSI interface.
895+
//
896+
message KeyValuePair
897+
{
898+
// A generic string key.
899+
//
900+
optional string key = 1;
901+
902+
// A generic string value.
903+
//
904+
optional string value = 2;
905+
}

osi_hostvehicledata.proto

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

78-
// What driver assistance is active.
78+
// State of driver assistance systems.
7979
//
8080
// This can include:
8181
// - information presented to the driver, for example, parking sensors
@@ -323,7 +323,7 @@ message HostVehicleData
323323
// be about settings which would influence evaluation, such as
324324
// sensitivity settings.
325325
//
326-
repeated CustomDetail custom_detail = 5;
326+
repeated KeyValuePair custom_detail = 5;
327327

328328
// ADAS feature that is raising the notification.
329329
//
@@ -463,22 +463,5 @@ message HostVehicleData
463463
//
464464
ACTIVATION_STATE_ACTIVE_DRIVER_OVERRIDE = 6;
465465
}
466-
467-
//
468-
// \brief Custom detail message
469-
//
470-
// To contain driver-assist related information that is too function
471-
// specific to be captured in a generic way.
472-
//
473-
message CustomDetail
474-
{
475-
// A generic string key to identify the information.
476-
//
477-
optional string key = 1;
478-
479-
// A generic string value to capture the information.
480-
//
481-
optional string value = 2;
482-
}
483466
}
484467
}

osi_trafficupdate.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ message TrafficUpdate
5656

5757
// Internal state for each vehicle.
5858
//
59+
// This is an optional field as internal state may not be known or relevant,
60+
// for example, a trailer is not going to have any internal state.
61+
// It is also allowed to only specify internal_state for a subset of the
62+
// objects referenced in the update.
63+
//
5964
// \note This covers any information which cannot be externally perceived
6065
// and therefore cannot be included in messages available in ground truth.
6166
//

0 commit comments

Comments
 (0)