Struct TrafficLight¶
Defined in File osi_trafficlight.proto
Struct Documentation¶
-
struct
TrafficLight¶ A traffic light.
One traffic light message defines a single ‘bulb’ and not a box of several bulbs, e.g. red, yellow, green are three separate traffic lights.
Public Members
-
optional Identifier osi3::TrafficLight::id = 1 The ID of the traffic light.
-
optional BaseStationary osi3::TrafficLight::base = 2 The base parameters of the traffic light.
BaseStationary::orientationx-axis is view normal of the traffic light’s icon.
-
optional Classification osi3::TrafficLight::classification = 3 The classification data for the traffic light.
-
struct
Classification¶ Classificationdata for a traffic light.Public Types
-
enum
Color¶ Definition of colors for traffic lights.
Values:
-
COLOR_UNKNOWN= 0¶ Color is unknown (must not be used in ground truth).
-
COLOR_OTHER= 1¶ Other (unspecified but known) color.
-
COLOR_RED= 2¶ Red light.
-
COLOR_YELLOW= 3¶ Orange-yellow light.
-
COLOR_GREEN= 4¶ Green light.
-
COLOR_BLUE= 5¶ Blue light.
-
COLOR_WHITE= 6¶ White light.
-
-
enum
Icon¶ Definition of traffic light bulb icon.
Values:
-
ICON_UNKNOWN= 0¶ Unknown icon of traffic light (must not be used in ground truth).
-
ICON_OTHER= 1¶ Other (unspecified but known) icon of traffic light.
-
ICON_NONE= 2¶ This is a normal traffic light without specification of e.g. direction.
-
ICON_ARROW_STRAIGHT_AHEAD= 3¶ This traffic light applies to the lane straight ahead.
-
ICON_ARROW_LEFT= 4¶ This traffic light applies to left turns.
-
ICON_ARROW_DIAG_LEFT= 5¶ This traffic light applies to diagonal left turns.
-
ICON_ARROW_STRAIGHT_AHEAD_LEFT= 6¶ This traffic light applies to a lane allowing to drive straight ahead or to turn left.
-
ICON_ARROW_RIGHT= 7¶ This traffic light applies to right turns.
-
ICON_ARROW_DIAG_RIGHT= 8¶ This traffic light applies to diagonal right turns.
-
ICON_ARROW_STRAIGHT_AHEAD_RIGHT= 9¶ This traffic light applies to a lane allowing to drive straight ahead or to turn right.
-
ICON_ARROW_LEFT_RIGHT= 10¶ This traffic light applies to a lane allowing to turn left or right.
-
ICON_ARROW_DOWN= 11¶ This traffic light indicates that the assigned lane is open for driving.
-
ICON_ARROW_DOWN_LEFT= 12¶ This traffic light indicates a necessary lane change to the left ahead.
-
ICON_ARROW_DOWN_RIGHT= 13¶ This traffic light indicates a necessary lane change to the right ahead.
-
ICON_ARROW_CROSS= 14¶ This traffic light indicates that the assigned lane is not open for driving.
-
ICON_PEDESTRIAN= 15¶ This traffic light is valid for pedestrians.
-
ICON_WALK= 16¶ This traffic light is valid for pedestrians with letters ‘walk’.
-
ICON_DONT_WALK= 17¶ This traffic light is valid for pedestrians with letters ‘don’t walk’.
-
ICON_BICYCLE= 18¶ This traffic light is valid for bicyclists.
-
ICON_PEDESTRIAN_AND_BICYCLE= 19¶ This traffic light is valid for pedestrians and bicyclists.
-
ICON_COUNTDOWN_SECONDS= 20¶ This traffic light counter in second.
-
ICON_COUNTDOWN_PERCENT= 21¶ This traffic light counter in percent.
-
ICON_TRAM= 22¶ This traffic light is valid for trams.
- Note
There is no detailed traffic light specification for trams and buses at the moment.
-
ICON_BUS= 23¶ This traffic light is valid for buses.
- Note
There is no detailed traffic light specification for trams and buses at the moment.
-
ICON_BUS_AND_TRAM= 24¶ This traffic light is valid for buses and trams.
- Note
There is no detailed traffic light specification for trams and buses at the moment.
-
-
enum
Mode¶ Definition of light modes for traffic lights.
Values:
-
MODE_UNKNOWN= 0¶ Mode is unknown (must not be used in ground truth).
-
MODE_OTHER= 1¶ Other (unspecified but known) mode.
-
MODE_OFF= 2¶ Traffic light is off.
-
MODE_CONSTANT= 3¶ Light is on and not flashing.
-
MODE_FLASHING= 4¶ Light is flashing.
-
MODE_COUNTING= 5¶ Light is counting.
-
Public Members
-
optional Color osi3::TrafficLight::Classification::color = 1 The color of the traffic light.
-
optional Icon osi3::TrafficLight::Classification::icon = 2 The icon of the traffic light.
-
optional Mode osi3::TrafficLight::Classification::mode = 3 The operating mode of the traffic light.
-
optional double osi3::TrafficLight::Classification::counter = 4 The value of the countdown counter. Unit: [%] or [s]
- Note
Set value only if traffic light bulb is a countdown counter.
-
repeated Identifier osi3::TrafficLight::Classification::assigned_lane_id = 5 The IDs of the lanes that the traffic light is assigned to. Might be multiple if the traffic light is valid for multiple driving lanes.
- Note
OSI uses singular instead of plural for repeated field names.
-
optional bool osi3::TrafficLight::Classification::is_out_of_service = 6 Boolean flag to indicate that the traffic light is taken out of service. This can be achieved by visibly crossing the light, covering it completely or swiching the traffic light off.
-
enum
-