Apollo 10.0
自动驾驶开放平台
apollo::perception::camera::CameraDetectionMultiStageComponent类 参考final

#include <camera_detection_multi_stage_component.h>

类 apollo::perception::camera::CameraDetectionMultiStageComponent 继承关系图:
apollo::perception::camera::CameraDetectionMultiStageComponent 的协作图:

Public 成员函数

 CameraDetectionMultiStageComponent ()=default
 
 ~CameraDetectionMultiStageComponent ()=default
 
bool Init () override
 Init for amera detection 2d compoment
 
bool Proc (const std::shared_ptr< drivers::Image > &msg) override
 Process of camera detection 2d compoment
 
- Public 成员函数 继承自 apollo::cyber::Component< drivers::Image >
 Component ()
 
 ~Component () override
 
bool Initialize (const ComponentConfig &config) override
 init the component by protobuf object.
 
bool Process (const std::shared_ptr< drivers::Image > &msg0, const std::shared_ptr< NullType > &msg1, const std::shared_ptr< NullType > &msg2, const std::shared_ptr< NullType > &msg3)
 
- Public 成员函数 继承自 apollo::cyber::ComponentBase
virtual ~ComponentBase ()
 
virtual bool Initialize (const TimerComponentConfig &config)
 
virtual void Shutdown ()
 
template<typename T >
bool GetProtoConfig (T *config) const
 

额外继承的成员函数

- Public 类型 继承自 apollo::cyber::ComponentBase
template<typename M >
using Reader = cyber::Reader< M >
 
- Protected 成员函数 继承自 apollo::cyber::ComponentBase
virtual void Clear ()
 
const std::string & ConfigFilePath () const
 
void LoadConfigFiles (const ComponentConfig &config)
 
void LoadConfigFiles (const TimerComponentConfig &config)
 
- Protected 属性 继承自 apollo::cyber::ComponentBase
std::atomic< bool > is_shutdown_ = {false}
 
std::shared_ptr< Nodenode_ = nullptr
 
std::string config_file_path_ = ""
 
std::vector< std::shared_ptr< ReaderBase > > readers_
 

详细描述

在文件 camera_detection_multi_stage_component.h33 行定义.

构造及析构函数说明

◆ 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.cc84 行定义.

84 {
85 CameraDetectionMultiStage detection_param;
86 if (!GetProtoConfig(&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_
#define AERROR
Definition log.h:44

◆ Proc()

bool apollo::perception::camera::CameraDetectionMultiStageComponent::Proc ( const std::shared_ptr< drivers::Image > &  msg)
override

Process of camera detection 2d compoment

参数
msgimage msg
返回
true
false

在文件 camera_detection_multi_stage_component.cc102 行定义.

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 AINFO
Definition log.h:42
Definition future.h:29
#define PERF_FUNCTION(...)
Definition profiler.h:54

该类的文档由以下文件生成: