#include <traffic_light_detection_component.h>
◆ TrafficLightDetectComponent()
| apollo::perception::trafficlight::TrafficLightDetectComponent::TrafficLightDetectComponent |
( |
| ) |
|
|
default |
Construct a new traffic light detect component object.
◆ ~TrafficLightDetectComponent()
| apollo::perception::trafficlight::TrafficLightDetectComponent::~TrafficLightDetectComponent |
( |
| ) |
|
|
default |
Destroy the traffic light detect component object.
◆ Init()
| bool apollo::perception::trafficlight::TrafficLightDetectComponent::Init |
( |
| ) |
|
|
overridevirtual |
◆ Proc()
| bool apollo::perception::trafficlight::TrafficLightDetectComponent::Proc |
( |
const std::shared_ptr< TrafficDetectMessage > & |
message | ) |
|
|
override |
Trigger the detection process based on the traffic detect message.
- 参数
-
- 返回
- true
-
false
在文件 traffic_light_detection_component.cc 第 44 行定义.
45 {
47 auto time_imags =
std::to_string(message->timestamp_);
48 AINFO << "Enter detection component, message timestamp: " << time_imags;
49
50 bool status = InternalProc(message);
51 if (status) {
52 writer_->Write(message);
53 AINFO <<
"Send trafficlight detect output message.";
54 }
55 return status;
56}
#define PERF_FUNCTION(...)
该类的文档由以下文件生成: