#include <traffic_light_recognition_component.h>
◆ TrafficLightRecognComponent()
| apollo::perception::trafficlight::TrafficLightRecognComponent::TrafficLightRecognComponent |
( |
| ) |
|
|
default |
Construct a new traffic light recogn component object.
◆ ~TrafficLightRecognComponent()
| apollo::perception::trafficlight::TrafficLightRecognComponent::~TrafficLightRecognComponent |
( |
| ) |
|
|
default |
Destroy the traffic light recogn component object.
◆ Init()
| bool apollo::perception::trafficlight::TrafficLightRecognComponent::Init |
( |
| ) |
|
|
overridevirtual |
Initialize configuration files, algorithm plug-ins.
- 返回
- true
-
false
实现了 apollo::cyber::ComponentBase.
在文件 traffic_light_recognition_component.cc 第 28 行定义.
28 {
29
31 AERROR <<
"TrafficLightRecognComponent InitConfig failed.";
32 return false;
33 }
34
36 AERROR <<
"TrafficLightRecognComponent InitAlgorithmPlugin failed.";
37 return false;
38 }
39 AINFO <<
"Successfully init traffic light recognition component.";
40 return true;
41}
◆ Proc()
| bool apollo::perception::trafficlight::TrafficLightRecognComponent::Proc |
( |
const std::shared_ptr< TrafficDetectMessage > & |
message | ) |
|
|
override |
Trigger the recognition process based on the traffic detect message.
- 参数
-
- 返回
- true
-
false
在文件 traffic_light_recognition_component.cc 第 43 行定义.
43 {
45 auto time_imags =
std::to_string(message->timestamp_);
46 AINFO << "Enter recognition component, message timestamp: " << time_imags;
47
48 bool status = InternalProc(message);
49 if (status) {
50 writer_->Write(message);
51 AINFO <<
"Send trafficlight recognition output message.";
52 }
53 return status;
54}
#define PERF_FUNCTION(...)
该类的文档由以下文件生成: