#include <camera_detection_single_stage_component.h>
◆ CameraDetectionSingleStageComponent()
apollo::perception::camera::CameraDetectionSingleStageComponent::CameraDetectionSingleStageComponent |
( |
| ) |
|
|
inline |
◆ ~CameraDetectionSingleStageComponent()
apollo::perception::camera::CameraDetectionSingleStageComponent::~CameraDetectionSingleStageComponent |
( |
| ) |
|
|
default |
◆ Init()
bool apollo::perception::camera::CameraDetectionSingleStageComponent::Init |
( |
| ) |
|
|
overridevirtual |
Init for amera detection 3d compoment
- 返回
- true
-
false
实现了 apollo::cyber::ComponentBase.
在文件 camera_detection_single_stage_component.cc 第 92 行定义.
92 {
93 CameraDetectionSingleStage detection_param;
95 AERROR <<
"Load camera detection 3d component config failed!";
96 return false;
97 }
98
99 InitObstacleDetector(detection_param);
100
101 InitCameraFrame(detection_param);
102
103 InitTransformWrapper(detection_param);
104
105 writer_ =
node_->CreateWriter<onboard::CameraFrame>(
106 detection_param.channel().output_obstacles_channel_name());
107 return true;
108}
bool GetProtoConfig(T *config) const
std::shared_ptr< Node > node_
◆ Proc()
bool apollo::perception::camera::CameraDetectionSingleStageComponent::Proc |
( |
const std::shared_ptr< apollo::drivers::Image > & |
msg | ) |
|
|
override |
Process of camera detection 2d compoment
- 参数
-
- 返回
- true
-
false
在文件 camera_detection_single_stage_component.cc 第 137 行定义.
138 {
140 std::shared_ptr<onboard::CameraFrame> out_message(new (
std::nothrow)
141 onboard::CameraFrame);
142 bool status = InternalProc(msg, out_message);
143 if (status) {
144 writer_->Write(out_message);
145 AINFO <<
"Send camera detection 3d output message.";
146 }
147
148 return status;
149}
#define PERF_FUNCTION(...)
该类的文档由以下文件生成: