Skip to content

Commit b060570

Browse files
thomassedlmayerpmai
authored andcommitted
Relocate color description fields
Signed-off-by: Thomas Sedlmayer <tsedlmayer@pmsfit.de>
1 parent f7e81f4 commit b060570

8 files changed

+67
-29
lines changed

osi_detectedlane.proto

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ option optimize_for = SPEED;
44

55
import "osi_lane.proto";
66
import "osi_detectedobject.proto";
7+
import "osi_common.proto";
78

89
package osi3;
910

@@ -104,6 +105,14 @@ message DetectedLaneBoundary
104105
//
105106
repeated double boundary_line_confidences = 5;
106107

108+
// The visual color of the material of the lane boundary.
109+
//
110+
// \note This does not represent the semantic classification but the visual
111+
// appearance. For semantic classification of the lane boundary use the color
112+
// field in \c CandidateLaneBoundary::classification.
113+
//
114+
optional ColorDescription color_description = 6;
115+
107116
//
108117
// \brief A candidate for a detected lane boundary as estimated by the
109118
// sensor.

osi_detectedobject.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ message DetectedStationaryObject
120120
//
121121
repeated CandidateStationaryObject candidate = 4;
122122

123+
// The dominating color of the material of the structure.
124+
//
125+
optional ColorDescription color_description = 5;
126+
123127
//
124128
// \brief A candidate for a detected stationary object as estimated
125129
// by the sensor.
@@ -221,6 +225,10 @@ message DetectedMovingObject
221225
//
222226
repeated CandidateMovingObject candidate = 8;
223227

228+
// The dominating color of the material of the moving object.
229+
//
230+
optional ColorDescription color_description = 9;
231+
224232
// Additional data that is specific to radar sensors.
225233
//
226234
// \note Field needs not to be set if simulated sensor is not a radar

osi_detectedroadmarking.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ message DetectedRoadMarking
5959
//
6060
repeated CandidateRoadMarking candidate = 4;
6161

62+
// The visual color of the material of the road marking.
63+
//
64+
// \note This does not represent the semantic classification but the visual
65+
// appearance. For semantic classification of the road marking use the color
66+
// field in \c CandidateRoadMarking::classification.
67+
//
68+
optional ColorDescription color_description = 5;
69+
6270
//
6371
// \brief A candidate for a detected road marking as estimated by the
6472
// sensor.

osi_detectedtrafficlight.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ message DetectedTrafficLight
4343
//
4444
repeated CandidateTrafficLight candidate = 4;
4545

46+
// The visual color of the traffic light.
47+
//
48+
// \note This does not represent the semantic classification but the visual
49+
// appearance. For semantic classification of the traffic light use the color
50+
// field in \c CandidateTrafficLight::classification.
51+
//
52+
optional ColorDescription color_description = 5;
53+
4654
//
4755
// \brief A candidate for a detected traffic light as estimated by
4856
// the sensor.

osi_lane.proto

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,14 @@ message LaneBoundary
763763
//
764764
repeated ExternalReference source_reference = 4;
765765

766+
// The visual color of the material of the lane boundary.
767+
//
768+
// \note This does not represent the semantic classification but the visual
769+
// appearance. For semantic classification of the lane boundary use the color
770+
// field in \c Classification.
771+
//
772+
optional ColorDescription color_description = 5;
773+
766774
//
767775
// \brief A single point of a lane boundary.
768776
//
@@ -922,12 +930,6 @@ message LaneBoundary
922930
//
923931
repeated Identifier limiting_structure_id = 3;
924932

925-
//
926-
// The visual color of the material of the lane boundary. This does not
927-
// represent the semantic classification but the visual appearance.
928-
//
929-
optional ColorDescription color_description = 4;
930-
931933
// The lane boundary type.
932934
// There is no special representation for double lines, e.g. solid /
933935
// solid or dashed / solid. In such cases, each lane will define its own

osi_object.proto

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ message StationaryObject
7575
//
7676
repeated ExternalReference source_reference = 5;
7777

78+
// The dominating color of the material of the structure.
79+
//
80+
optional ColorDescription color_description = 6;
81+
7882
//
7983
// \brief Classification data for a stationary object.
8084
//
@@ -95,20 +99,15 @@ message StationaryObject
9599
// The dominating color of the material of the structure.
96100
//
97101
// \attention DEPRECATED: This color enum will be removed in version
98-
// 4.0.0. Use the field \c #color_description (\c ColorDescription)
99-
// instead.
102+
// 4.0.0. Use the field \c #color_description (\c ColorDescription) of
103+
// \c StationaryObject instead.
100104
//
101105
optional Color color = 4;
102106

103107
// The attributes of the emitting structure if stationary object is classified as such.
104108
//
105109
optional EmittingStructureAttribute emitting_structure_attribute = 5;
106110

107-
//
108-
// The dominating color of the material of the structure.
109-
//
110-
optional ColorDescription color_description = 6;
111-
112111
// Definition of object types.
113112
//
114113
enum Type
@@ -464,6 +463,10 @@ message MovingObject
464463
//
465464
repeated ExternalReference source_reference = 10;
466465

466+
// The dominating color of the material of the moving object.
467+
//
468+
optional ColorDescription color_description = 11;
469+
467470
// Definition of object types.
468471
//
469472
enum Type
@@ -679,10 +682,6 @@ message MovingObject
679682
//
680683
repeated double assigned_lane_percentage = 2;
681684

682-
//
683-
// The dominating color of the material of the moving object.
684-
//
685-
optional ColorDescription color_description = 3;
686685
}
687686

688687
//

osi_roadmarking.proto

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,14 @@ message RoadMarking
8282
//
8383
repeated ExternalReference source_reference = 4;
8484

85+
// The visual color of the material of the road marking.
86+
//
87+
// \note This does not represent the semantic classification but the visual
88+
// appearance. For semantic classification of the road marking use the color
89+
// field in \c Classification.
90+
//
91+
optional ColorDescription color_description = 5;
92+
8593
//
8694
// \brief \c Classification data for a road surface marking.
8795
//
@@ -248,12 +256,6 @@ message RoadMarking
248256
//
249257
optional string sub_code = 11;
250258

251-
//
252-
// The visual color of the material of the road marking. This does not
253-
// represent the semantic classification but the visual appearance.
254-
//
255-
optional ColorDescription color_description = 12;
256-
257259
// Definition of road marking types.
258260
//
259261
enum Type

osi_trafficlight.proto

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@ message TrafficLight
6363
//
6464
repeated ExternalReference source_reference = 5;
6565

66+
// The visual color of the traffic light.
67+
//
68+
// \note This does not represent the semantic classification but the visual
69+
// appearance. For semantic classification of the traffic light use the color
70+
// field in \c Classification.
71+
//
72+
optional ColorDescription color_description = 6;
73+
6674
//
6775
// \brief \c Classification data for a traffic light.
6876
//
@@ -119,12 +127,6 @@ message TrafficLight
119127
//
120128
optional bool is_out_of_service = 6;
121129

122-
//
123-
// The visual color of the traffic light. This does not represent the semantic
124-
// classification but the visual appearance.
125-
//
126-
optional ColorDescription color_description = 7;
127-
128130
// Definition of semantic colors for traffic lights.
129131
//
130132
// \note The color types represent the semantic classification of a traffic light

0 commit comments

Comments
 (0)