osi3::TrafficLight::Classification Struct Reference

Classification data for a traffic light. More...

Collaboration diagram for osi3::TrafficLight::Classification:

Public Types

enum  Color {
  COLOR_UNKNOWN = 0, COLOR_OTHER = 1, COLOR_RED = 2, COLOR_YELLOW = 3,
  COLOR_GREEN = 4, COLOR_BLUE = 5, COLOR_WHITE = 6
}
 Definition of semantic colors for traffic lights. More...
 
enum  Icon {
  ICON_UNKNOWN = 0, ICON_OTHER = 1, ICON_NONE = 2, ICON_ARROW_STRAIGHT_AHEAD = 3,
  ICON_ARROW_LEFT = 4, ICON_ARROW_DIAG_LEFT = 5, ICON_ARROW_STRAIGHT_AHEAD_LEFT = 6, ICON_ARROW_RIGHT = 7,
  ICON_ARROW_DIAG_RIGHT = 8, ICON_ARROW_STRAIGHT_AHEAD_RIGHT = 9, ICON_ARROW_LEFT_RIGHT = 10, ICON_ARROW_DOWN = 11,
  ICON_ARROW_DOWN_LEFT = 12, ICON_ARROW_DOWN_RIGHT = 13, ICON_ARROW_CROSS = 14, ICON_PEDESTRIAN = 15,
  ICON_WALK = 16, ICON_DONT_WALK = 17, ICON_BICYCLE = 18, ICON_PEDESTRIAN_AND_BICYCLE = 19,
  ICON_COUNTDOWN_SECONDS = 20, ICON_COUNTDOWN_PERCENT = 21, ICON_TRAM = 22, ICON_BUS = 23,
  ICON_BUS_AND_TRAM = 24
}
 Definition of traffic light bulb icon. More...
 
enum  Mode {
  MODE_UNKNOWN = 0, MODE_OTHER = 1, MODE_OFF = 2, MODE_CONSTANT = 3,
  MODE_FLASHING = 4, MODE_COUNTING = 5
}
 Definition of light modes for traffic lights. More...
 

Public Attributes

optional Color color = 1
 The semantic color of the traffic light. More...
 
optional Icon icon = 2
 The icon of the traffic light. More...
 
optional Mode mode = 3
 The operating mode of the traffic light. More...
 
optional double counter = 4
 The value of the countdown counter. More...
 
repeated Identifier assigned_lane_id = 5
 The IDs of the lanes that the traffic light is assigned to. More...
 
optional bool is_out_of_service = 6
 Boolean flag to indicate that the traffic light is taken out of service. More...
 
repeated LogicalLaneAssignment logical_lane_assignment = 7
 Assignment of this object to logical lanes. More...
 

Detailed Description

Classification data for a traffic light.

Member Enumeration Documentation

◆ Color

Definition of semantic colors for traffic lights.

Note
The color types represent the semantic classification of a traffic light only. They do not represent an actual visual appearance.
Enumerator
COLOR_UNKNOWN 

Color is unknown (must not be used in ground truth).

COLOR_OTHER 

Other (unspecified but known) color.

COLOR_RED 

Red light.

COLOR_YELLOW 

Orange-yellow light.

COLOR_GREEN 

Green light.

COLOR_BLUE 

Blue light.

COLOR_WHITE 

White light.

◆ Icon

Definition of traffic light bulb icon.

Enumerator
ICON_UNKNOWN 

Unknown icon of traffic light (must not be used in ground truth).

ICON_OTHER 

Other (unspecified but known) icon of traffic light.

ICON_NONE 

This is a normal traffic light without specification of e.g.

direction.

ICON_ARROW_STRAIGHT_AHEAD 

This traffic light applies to the lane straight ahead.

ICON_ARROW_LEFT 

This traffic light applies to left turns.

ICON_ARROW_DIAG_LEFT 

This traffic light applies to diagonal left turns.

ICON_ARROW_STRAIGHT_AHEAD_LEFT 

This traffic light applies to a lane allowing to drive straight ahead or to turn left.

ICON_ARROW_RIGHT 

This traffic light applies to right turns.

ICON_ARROW_DIAG_RIGHT 

This traffic light applies to diagonal right turns.

ICON_ARROW_STRAIGHT_AHEAD_RIGHT 

This traffic light applies to a lane allowing to drive straight ahead or to turn right.

ICON_ARROW_LEFT_RIGHT 

This traffic light applies to a lane allowing to turn left or right.

ICON_ARROW_DOWN 

This traffic light indicates that the assigned lane is open for driving.

ICON_ARROW_DOWN_LEFT 

This traffic light indicates a necessary lane change to the left ahead.

ICON_ARROW_DOWN_RIGHT 

This traffic light indicates a necessary lane change to the right ahead.

ICON_ARROW_CROSS 

This traffic light indicates that the assigned lane is not open for driving.

ICON_PEDESTRIAN 

This traffic light is valid for pedestrians.

ICON_WALK 

This traffic light is valid for pedestrians with letters 'walk'.

ICON_DONT_WALK 

This traffic light is valid for pedestrians with letters 'don't walk'.

ICON_BICYCLE 

This traffic light is valid for bicyclists.

ICON_PEDESTRIAN_AND_BICYCLE 

This traffic light is valid for pedestrians and bicyclists.

ICON_COUNTDOWN_SECONDS 

This traffic light counter in second.

ICON_COUNTDOWN_PERCENT 

This traffic light counter in percent.

ICON_TRAM 

This traffic light is valid for trams.

Note
There is no detailed traffic light specification for trams and buses at the moment.
ICON_BUS 

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 

This traffic light is valid for buses and trams.

Note
There is no detailed traffic light specification for trams and buses at the moment.

◆ Mode

Definition of light modes for traffic lights.

Enumerator
MODE_UNKNOWN 

Mode is unknown (must not be used in ground truth).

MODE_OTHER 

Other (unspecified but known) mode.

MODE_OFF 

Traffic light is off.

MODE_CONSTANT 

Light is on and not flashing.

MODE_FLASHING 

Light is flashing.

MODE_COUNTING 

Light is counting.

Member Data Documentation

◆ color

optional Color osi3::TrafficLight::Classification::color = 1

The semantic color of the traffic light.

Note
The color types represent the semantic color classification of a traffic light only. They do not represent an actual visual appearance.
If the color of the traffic light is known (from history or geometrical arrangement) and the state mode is MODE_OFF then color could remain unchanged. If traffic light displays images in different colors and traffic light is off ( mode = MODE_OFF), then color = COLOR_OTHER .

◆ icon

optional Icon osi3::TrafficLight::Classification::icon = 2

The icon of the traffic light.

◆ mode

optional Mode osi3::TrafficLight::Classification::mode = 3

The operating mode of the traffic light.

◆ counter

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.
Rules
is_greater_than_or_equal_to: 0

◆ assigned_lane_id

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.
Rules
refers_to: Lane

◆ is_out_of_service

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 switching the traffic light off.

◆ logical_lane_assignment

repeated LogicalLaneAssignment osi3::TrafficLight::Classification::logical_lane_assignment = 7

Assignment of this object to logical lanes.

Note
OSI uses singular instead of plural for repeated field names.

  • osi_trafficlight.proto