Traffic Lights¶
- class py123d.datatypes.detections.TrafficLightDetectionWrapper[source]¶
The TrafficLightDetectionWrapper is a container for multiple traffic light detections. It provides methods to access individual detections as well as to retrieve a detection by lane id. The wrapper is is used in to read and write traffic light detections from/to logs.
Public Data Attributes:
traffic_light_detectionsList of individual
TrafficLightDetection.Public Methods:
get_detection_by_lane_id(lane_id)Retrieve a traffic light detection by its lane id.
- property traffic_light_detections: List[TrafficLightDetection]¶
List of individual
TrafficLightDetection.
- class py123d.datatypes.detections.TrafficLightDetection[source]¶
Single traffic light detection if a lane, that includes the lane id, status (green, yellow, red, off, unknown), and optional timepoint of the detection.
Public Data Attributes:
lane_idThe lane id associated with the traffic light detection.
statusThe
TrafficLightStatusof the traffic light detection.timepointThe optional
TimePointof the traffic light detection.
- property status: TrafficLightStatus¶
The
TrafficLightStatusof the traffic light detection.