Skip to content

Commit e37d571

Browse files
Add new Roles and extend enum description
1 parent d539f20 commit e37d571

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

osi_object.proto

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,17 @@ message MovingObject
955955
}
956956
}
957957

958-
// Definition of vehicle roles.
958+
// Definition of vehicle roles.
959+
//
960+
// The role specifies the perceived role of a vehicle. Therfore, a
961+
// civil police car is set to ROLE_CIVIL as long as it cannot be
962+
// perceived as a ROLE_POLICE.
963+
// The normal use case will consist of 99% ROLE_CIVIL, as this role is
964+
// used for normal vehicles.
965+
// To check whether a role is "active" (e.g. blue flashing light of an
966+
// ambulance or an amber flashing light of a sweeper) can be looked up
967+
// in message LightState.
968+
//
959969
//
960970
enum Role
961971
{
@@ -994,6 +1004,14 @@ message MovingObject
9941004
// The vehicle role is roadside assistance, e.g. tow truck.
9951005
//
9961006
ROLE_ROAD_ASSISTANCE = 8;
1007+
1008+
// The vehicle role is garbage collection, e.g. a garbage truck or sweeper.
1009+
//
1010+
ROLE_GARBAGE_COLLECTION = 9;
1011+
1012+
// The vehicle role is road construction, e.g. a excavator or tipper truck.
1013+
//
1014+
ROLE_ROAD_CONSTRUCTION = 10;
9971015
}
9981016
}
9991017
}

0 commit comments

Comments
 (0)