#include <camera_detection_multi_stage_component.h>
◆ CameraDetectionMultiStageComponent()
apollo::perception::camera::CameraDetectionMultiStageComponent::CameraDetectionMultiStageComponent |
( |
| ) |
|
|
default |
◆ ~CameraDetectionMultiStageComponent()
apollo::perception::camera::CameraDetectionMultiStageComponent::~CameraDetectionMultiStageComponent |
( |
| ) |
|
|
default |
◆ Init()
bool apollo::perception::camera::CameraDetectionMultiStageComponent::Init |
( |
| ) |
|
|
overridevirtual |
Init for amera detection 2d compoment
- 返回
- true
-
false
实现了 apollo::cyber::ComponentBase.
在文件 camera_detection_multi_stage_component.cc 第 84 行定义.
84 {
85 CameraDetectionMultiStage detection_param;
87 AERROR <<
"Load camera detection 3d component config failed!";
88 return false;
89 }
90
91 InitObstacleDetector(detection_param);
92
93 InitCameraFrame(detection_param);
94
95 InitTransformWrapper(detection_param);
96
97 writer_ =
node_->CreateWriter<onboard::CameraFrame>(
98 detection_param.channel().output_obstacles_channel_name());
99 return true;
100}
bool GetProtoConfig(T *config) const
std::shared_ptr< Node > node_
◆ Proc()
bool apollo::perception::camera::CameraDetectionMultiStageComponent::Proc |
( |
const std::shared_ptr< drivers::Image > & |
msg | ) |
|
|
override |
Process of camera detection 2d compoment
- 参数
-
- 返回
- true
-
false
在文件 camera_detection_multi_stage_component.cc 第 102 行定义.
103 {
105 std::shared_ptr<onboard::CameraFrame> out_message(new (
std::nothrow)
106 onboard::CameraFrame);
107 bool status = InternalProc(msg, out_message);
108 if (status) {
109 writer_->Write(out_message);
110 AINFO <<
"Send camera detection 2d output message.";
111 }
112
113 return status;
114}
#define PERF_FUNCTION(...)
该类的文档由以下文件生成: