22 #include "modules/perception/camera/lib/traffic_light/tracker/proto/semantic.pb.h" 25 namespace perception {
34 double time_stamp = 0.0;
35 double last_bright_time_stamp = 0.0;
36 double last_dark_time_stamp = 0.0;
55 std::vector<base::TrafficLightPtr> *lights);
56 void ReviseByTimeSeries(
double time_stamp,
SemanticTable semantic_table,
57 std::vector<base::TrafficLightPtr> *lights);
59 std::vector<base::TrafficLightPtr> *lights,
60 std::vector<SemanticTable>::iterator *history);
61 void ReviseLights(std::vector<base::TrafficLightPtr> *lights,
64 std::string Name()
const override;
70 traffic_light::tracker::SemanticReviseParam semantic_param_;
71 float revise_time_s_ = 1.5f;
72 float blink_threshold_s_ = 0.4f;
73 float non_blink_threshold_s_ = 0.8f;
74 int hysteretic_threshold_ = 1;
75 std::vector<SemanticTable> history_semantic_;
base::TLColor color
Definition: semantic_decision.h:40
Definition: camera_frame.h:33
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
~SemanticReviser()
Definition: semantic_decision.h:47
Definition: base_traffic_light_tracker.h:31
Definition: semantic_decision.h:28
HystereticWindow hystertic_window
Definition: semantic_decision.h:41
base::TLColor hysteretic_color
Definition: semantic_decision.h:30
Definition: base_traffic_light_tracker.h:35
int hysteretic_count
Definition: semantic_decision.h:29
Definition: base_traffic_light_tracker.h:29
std::vector< int > light_ids
Definition: semantic_decision.h:39
Definition: semantic_decision.h:33
bool Init(const char *binary_name)
SemanticReviser()
Definition: semantic_decision.h:46
Definition: semantic_decision.h:44
TLColor
Definition: traffic_light.h:28
std::string semantic
Definition: semantic_decision.h:38