#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 行定义.
44 {
46 auto time_imags =
std::to_string(message->timestamp_);
47 AINFO << "Enter recognition component, message timestamp: " << time_imags;
48
49 bool status = InternalProc(message);
50 if (status) {
51 writer_->Write(message);
52 AINFO <<
"Send trafficlight recognition output message.";
53 }
54 return status;
55}
#define PERF_FUNCTION(...)
该类的文档由以下文件生成: