Struct RoadMarking¶
Defined in File osi_roadmarking.proto
Struct Documentation¶
-
struct
RoadMarking¶ A road surface marking.
The figure shows two STOP road markings. STOP
RoadMarking::Classification::type==RoadMarking::Classification::TYPE_TEXTUAL_TRAFFIC_SIGNis marked, STOPRoadMarking::Classification::type==RoadMarking::Classification::TYPE_SYMBOLIC_TRAFFIC_SIGNis not marked.All coordinates and orientations are relative to the global ground truth coordinate system.
Lane markings are excluded and defined as
LaneBoundarymessages as part ofLane.Public Members
-
optional Identifier osi3::RoadMarking::id = 1 The ID of the road marking.
-
optional BaseStationary osi3::RoadMarking::base = 2 The base parameters of the road marking.
The orientation of the bounding box
baseBaseStationary::orientationis defined as follows: The z-axis of theBaseStationary::orientationis the vector from the ‘bottom’ to the ‘top’ of the road marking’s (i.e. painted traffic sign) 2D image area. (Normally it is in the ground truth xy-plain.) The x-axis of theBaseStationary::orientationis the view normal of the road marking’s 2D image area. Normally this x-axis points to the sky.- Note
If a valid unidirectional road marking is assigned to the host vehicle’s current lane and the driving direction of the latter roughly matches the z-axis of the
baseBaseStationary::orientationthen the road marking is of relevance to (i.e. in effect for) the host vehicle.
-
optional Classification osi3::RoadMarking::classification = 3 The classification data for the road marking.
-
struct
Classification¶ Classificationdata for a road surface marking.Public Types
-
enum
Type¶ Definition of road marking types.
Values:
-
TYPE_UNKNOWN= 0¶ Type of road marking is unknown (must not be used in ground truth).
-
TYPE_OTHER= 1¶ Other (unspecified but known) type of road marking.
-
TYPE_PAINTED_TRAFFIC_SIGN= 2¶ Paint on the road surface indicating a color image of a traffic sign.
-
TYPE_SYMBOLIC_TRAFFIC_SIGN= 3¶ Paint on the road surface indicating a monochrome logical symbol of a traffic sign (e.g. digits 50 as start of speed limit 50 or stop line for stop sign).
-
TYPE_TEXTUAL_TRAFFIC_SIGN= 4¶ Paint on the road surface as a character string (e.g. BUS as bus only lane).
-
TYPE_GENERIC_SYMBOL= 5¶ Paint on the road surface indicating a generic symbol.
-
TYPE_GENERIC_LINE= 6¶ Paint on the road surface indicating a generic line.
-
TYPE_GENERIC_TEXT= 7¶ Paint on the road surface indicating a generic character string.
-
-
enum
Color¶ Definition of road marking colors
Values:
-
COLOR_UNKNOWN= 0¶ Color of road marking is unknown (must not be used in ground truth).
-
COLOR_OTHER= 1¶ Marking with another (unspecified but known) color.
-
COLOR_WHITE= 2¶ Marking with white color.
-
COLOR_YELLOW= 3¶ Marking with yellow / orange-yellow color.
-
COLOR_BLUE= 5¶ Marking with blue color.
-
COLOR_RED= 6¶ Marking with red color.
-
COLOR_GREEN= 7¶ Marking with green color.
-
COLOR_VIOLET= 8¶ Marking with violet color.
-
Public Members
-
optional Type osi3::RoadMarking::Classification::type = 1 The type of the road marking.
-
optional TrafficSign::MainSign::Classification::Type osi3::RoadMarking::Classification::traffic_main_sign_type = 2 Traffic sign as road marking (color image, monochrome image or character string).
- Note
Field is set if (
type==TYPE_PAINTED_TRAFFIC_SIGNorTYPE_SYMBOLIC_TRAFFIC_SIGNorTYPE_TEXTUAL_TRAFFIC_SIGN).- Note
Field need not be set (or set to
TYPE_OTHER) if road marking type (type) does not require it.
-
optional Color osi3::RoadMarking::Classification::monochrome_color = 3 The monochrome color of the road marking.
- Note
Field need not be set (or set to
COLOR_OTHER) if road marking type does not require it (e.g. fortype==TYPE_PAINTED_TRAFFIC_SIGN).
-
optional TrafficSignValue osi3::RoadMarking::Classification::value = 4 Additional value associated with the road marking, e.g. value of the speed limit.
- Note
Field need not be set if road marking type does not require it.
- Note
OSI 3 uses
value_textand notTrafficSignValuefor simple chars.
-
optional string osi3::RoadMarking::Classification::value_text = 5 Additional text value as road marking, e.g. BUS, TAXI etc.
- Note
Field need not be set if road marking type does not require it.
-
repeated Identifier osi3::RoadMarking::Classification::assigned_lane_id = 6 The ID(s) of the lane(s) that the road marking is assigned to. May be multiple if the road marking goes across multiple lanes.
- Note
OSI uses singular instead of plural for repeated field names.
-
optional bool osi3::RoadMarking::Classification::is_out_of_service = 7 Boolean flag to indicate that the road marking is taken out of service. This can be achieved by visibly crossing the road marking with stripes, or completly covering a road marking making it not visible.

-
enum
-