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

#include <camera_detection_occupancy_component.h>

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

Public 类型

using PerceptionObstacle = apollo::perception::PerceptionObstacle
 
using PerceptionObstacles = apollo::perception::PerceptionObstacles
 
- Public 类型 继承自 apollo::cyber::ComponentBase
template<typename M >
using Reader = cyber::Reader< M >
 

Public 成员函数

 CameraDetectionOccComponent ()
 
bool Init () override
 Init for camera detection 2d compoment
 
- Public 成员函数 继承自 apollo::cyber::Component< M0, M1, M2, M3 >
 Component ()
 
 ~Component () override
 
bool Initialize (const ComponentConfig &config) override
 init the component by protobuf object.
 
bool Process (const std::shared_ptr< M0 > &msg0, const std::shared_ptr< M1 > &msg1, const std::shared_ptr< M2 > &msg2, const std::shared_ptr< M3 > &msg3)
 
- Public 成员函数 继承自 apollo::cyber::ComponentBase
virtual ~ComponentBase ()
 
virtual bool Initialize (const TimerComponentConfig &config)
 
virtual void Shutdown ()
 
template<typename T >
bool GetProtoConfig (T *config) const
 

额外继承的成员函数

- 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_occupancy_component.h38 行定义.

成员类型定义说明

◆ PerceptionObstacle

◆ PerceptionObstacles

构造及析构函数说明

◆ CameraDetectionOccComponent()

apollo::perception::camera::CameraDetectionOccComponent::CameraDetectionOccComponent ( )
inline

在文件 camera_detection_occupancy_component.h44 行定义.

44: timestamp_offset_(0) {}

成员函数说明

◆ Init()

bool apollo::perception::camera::CameraDetectionOccComponent::Init ( )
overridevirtual

Init for camera detection 2d compoment

返回
true
false

实现了 apollo::cyber::ComponentBase.

在文件 camera_detection_occupancy_component.cc259 行定义.

259 {
260 CameraDetectionBEV detection_param;
261 if (!GetProtoConfig(&detection_param)) {
262 AERROR << "Load camera detection 3d component config failed!";
263 return false;
264 }
265
266 // Init tracker
267 auto tracker_plugin_param = detection_param.tracker_plugin_param();
268 BaseTracker *tracker =
269 BaseTrackerRegisterer::GetInstanceByName(tracker_plugin_param.name());
270 CHECK_NOTNULL(tracker);
271 tracker_.reset(tracker);
272
273 TrackerInitOptions tracker_init_options;
274 tracker_init_options.config_path = tracker_plugin_param.config_path();
275 tracker_init_options.config_file = tracker_plugin_param.config_file();
276 ACHECK(tracker_->Init(tracker_init_options)) << "camera tracker init error";
277
278 // segmentor init
279 // auto segmentor_plugin_param = detection_param.segmentor_plugin_param();
280 // BaseSegmentor *segmentor =
281 // BaseSegmentorRegisterer::GetInstanceByName(segmentor_plugin_param.name());
282 // CHECK_NOTNULL(segmentor);
283 // segmentor_.reset(segmentor);
284
285 // SegmentorInitOptions segmentr_init_options;
286 // segmentr_init_options.config_path = segmentor_plugin_param.config_path();
287 // segmentr_init_options.config_file = segmentor_plugin_param.config_file();
288 // ACHECK(segmentor_->Init(segmentr_init_options))
289 // << "lidar segmentor init error";
290
291 // todo(zero): need init image_height_\image_width_
292 InitDetector(detection_param);
293 InitCameraFrame(detection_param);
294 InitListeners(detection_param);
295 InitTransformWrapper(detection_param);
296
297 writer_ = node_->CreateWriter<PerceptionObstacles>(
298 detection_param.channel().output_obstacles_channel_name());
299 return true;
300}
bool GetProtoConfig(T *config) const
std::shared_ptr< Node > node_
#define ACHECK(cond)
Definition log.h:80
#define AERROR
Definition log.h:44

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