File tree Expand file tree Collapse file tree 3 files changed +37
-1
lines changed Expand file tree Collapse file tree 3 files changed +37
-1
lines changed Original file line number Diff line number Diff line change @@ -916,6 +916,10 @@ message CameraDetection
916
916
//
917
917
enum Color
918
918
{
919
+ // Allow aliases in enum
920
+ //
921
+ option allow_alias = true ;
922
+
919
923
// Color of the shape is unknown (must not be used in ground
920
924
// truth).
921
925
//
@@ -931,6 +935,12 @@ message CameraDetection
931
935
932
936
// Shape with gray color.
933
937
//
938
+ COLOR_GRAY = 3 ;
939
+
940
+ // Shape with gray color.
941
+ //
942
+ // \note Deprecated variant spelling of COLOR_GRAY
943
+ //
934
944
COLOR_GREY = 3 ;
935
945
936
946
// Shape with white color.
Original file line number Diff line number Diff line change @@ -223,6 +223,10 @@ message StationaryObject
223
223
//
224
224
enum Material
225
225
{
226
+ // Allow aliases in enum
227
+ //
228
+ option allow_alias = true ;
229
+
226
230
// Type of the material is unknown (must not be used in ground
227
231
// truth).
228
232
//
@@ -254,6 +258,12 @@ message StationaryObject
254
258
255
259
// Glass structure.
256
260
//
261
+ MATERIAL_GLASS = 7 ;
262
+
263
+ // Glass structure.
264
+ //
265
+ // \note Deprecated variant spelling of MATERIAL_GLASS
266
+ //
257
267
MATERIAL_GLAS = 7 ;
258
268
259
269
// Mud structure.
@@ -303,6 +313,10 @@ message StationaryObject
303
313
//
304
314
enum Color
305
315
{
316
+ // Allow aliases in enum
317
+ //
318
+ option allow_alias = true ;
319
+
306
320
// Color is unknown (must not be used in ground truth).
307
321
//
308
322
COLOR_UNKNOWN = 0 ;
@@ -339,7 +353,13 @@ message StationaryObject
339
353
//
340
354
COLOR_BLACK = 8 ;
341
355
342
- // GREY.
356
+ // GRAY.
357
+ //
358
+ COLOR_GRAY = 9 ;
359
+
360
+ // GRAY.
361
+ //
362
+ // \note Deprecated variant spelling of COLOR_GRAY
343
363
//
344
364
COLOR_GREY = 9 ;
345
365
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ def test_correct_enum_name(self):
25
25
if matchComment is not None :
26
26
statement = line [: matchComment .start ()]
27
27
comment = line [matchComment .end () :]
28
+ elif re .search ("option allow_alias" , line ):
29
+ statement = ""
30
+ comment = ""
28
31
else :
29
32
statement = line
30
33
comment = ""
@@ -123,6 +126,9 @@ def test_invalid_enum(self):
123
126
if matchComment is not None :
124
127
statement = line [: matchComment .start ()]
125
128
comment = line [matchComment .end () :]
129
+ elif re .search ("option allow_alias" , line ):
130
+ statement = ""
131
+ comment = ""
126
132
else :
127
133
statement = line
128
134
comment = ""
You can’t perform that action at this time.
0 commit comments