Skip to content

crosswalk_traffic_light_estimator#

Purpose#

crosswalk_traffic_light_estimator is a module that estimates pedestrian traffic signals from HDMap and detected vehicle traffic signals.

Inputs / Outputs#

Input#

Name Type Description
~/input/vector_map autoware_auto_mapping_msgs::msg::HADMapBin vector map
~/input/route autoware_planning_msgs::msg::LaneletRoute route
~/input/classified/traffic_signals autoware_auto_perception_msgs::msg::TrafficSignalArray classified signals

Output#

Name Type Description
~/output/traffic_signals autoware_auto_perception_msgs::msg::TrafficSignalArray output that contains estimated pedestrian traffic signals

Parameters#

Name Type Description Default value
use_last_detect_color bool If this parameter is true, this module estimates pedestrian's traffic signal as RED not only when vehicle's traffic signal is detected as GREEN but also when detection results change GREEN to UNKNOWN. (If detection results change RED or AMBER to UNKNOWN, this module estimates pedestrian's traffic signal as UNKNOWN.) If this parameter is false, this module use only latest detection results for estimation. (Only when the detection result is GREEN, this module estimates pedestrian's traffic signal as RED.) true

Inner-workings / Algorithms#

uml diagram

If traffic between pedestrians and vehicles is controlled by traffic signals, the crosswalk traffic signal maybe RED in order to prevent pedestrian from crossing when the following conditions are satisfied.

Situation1#

  • crosswalk conflicts STRAIGHT lanelet
  • the lanelet refers GREEN traffic signal

Situation2#

  • crosswalk conflicts different turn direction lanelets (STRAIGHT and LEFT, LEFT and RIGHT, RIGHT and STRAIGHT)
  • the lanelets refer GREEN traffic signal

Assumptions / Known limits#

Future extensions / Unimplemented parts#