Apollo 11.0
自动驾驶开放平台
apollo::perception::lidar::PointCloudMapROIComponent类 参考final

#include <pointcloud_map_based_roi_component.h>

类 apollo::perception::lidar::PointCloudMapROIComponent 继承关系图:
apollo::perception::lidar::PointCloudMapROIComponent 的协作图:

Public 成员函数

 PointCloudMapROIComponent ()=default
 Construct a new Point Cloud Map ROI Component object
 
virtual ~PointCloudMapROIComponent ()=default
 Destroy the Point Cloud Map ROI Component object
 
bool Init () override
 Init of Point Cloud Map ROI Component object
 
bool Proc (const std::shared_ptr< LidarFrameMessage > &message) override
 Process of Point Cloud Map ROI Component object
 
- Public 成员函数 继承自 apollo::cyber::Component< LidarFrameMessage >
 Component ()
 
 ~Component () override
 
bool Initialize (const ComponentConfig &config) override
 init the component by protobuf object.
 
bool Process (const std::shared_ptr< LidarFrameMessage > &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_
 

详细描述

在文件 pointcloud_map_based_roi_component.h38 行定义.

构造及析构函数说明

◆ PointCloudMapROIComponent()

apollo::perception::lidar::PointCloudMapROIComponent::PointCloudMapROIComponent ( )
default

Construct a new Point Cloud Map ROI Component object

◆ ~PointCloudMapROIComponent()

virtual apollo::perception::lidar::PointCloudMapROIComponent::~PointCloudMapROIComponent ( )
virtualdefault

Destroy the Point Cloud Map ROI Component object

成员函数说明

◆ Init()

bool apollo::perception::lidar::PointCloudMapROIComponent::Init ( )
overridevirtual

Init of Point Cloud Map ROI Component object

返回
true
false

实现了 apollo::cyber::ComponentBase.

在文件 pointcloud_map_based_roi_component.cc26 行定义.

26 {
27 PointCloudMapROIComponentConfig comp_config;
28 if (!GetProtoConfig(&comp_config)) {
29 AERROR << "Get PointCloudMapROIComponentConfig file failed";
30 return false;
31 }
32 AINFO << "PointCloud map based roi Component Configs: "
33 << comp_config.DebugString();
34 // writer
35 output_channel_name_ = comp_config.output_channel_name();
36 writer_ = node_->CreateWriter<LidarFrameMessage>(output_channel_name_);
37
38 // Scene manager
40
41 // map manager init
42 use_map_manager_ =
43 comp_config.use_map_manager() && comp_config.enable_hdmap();
44 if (use_map_manager_) {
45 MapManagerInitOptions map_manager_init_options;
46 map_manager_init_options.config_path =
47 comp_config.map_manager_config_path();
48 map_manager_init_options.config_file =
49 comp_config.map_manager_config_file();
50 if (!map_manager_.Init(map_manager_init_options)) {
51 AINFO << "Failed to init map manager.";
52 use_map_manager_ = false;
53 }
54 }
55
56 // init roi filter
57 auto& plugin = comp_config.plugin_param();
59 ->CreateInstance<BaseROIFilter>(
60 ConfigUtil::GetFullClassName(plugin.name()));
61
62 CHECK_NOTNULL(roi_filter_);
63 ROIFilterInitOptions roi_filter_init_options;
64 roi_filter_init_options.config_path = plugin.config_path();
65 roi_filter_init_options.config_file = plugin.config_file();
66 ACHECK(roi_filter_->Init(roi_filter_init_options))
67 << "Failed to init roi filter.";
68
69 return true;
70}
bool GetProtoConfig(T *config) const
std::shared_ptr< Node > node_
static PluginManager * Instance()
get singleton instance of PluginManager
std::shared_ptr< Base > CreateInstance(const std::string &derived_class)
create plugin instance of derived class based on Base
static std::string GetFullClassName(const std::string &class_name)
Given the class name of perception module, combine the namespace "apollo::perception::lidar::" with i...
bool Init(const MapManagerInitOptions &options=MapManagerInitOptions())
Init of Map Manager
bool Init() override
Init of Point Cloud Map ROI Component object
#define ACHECK(cond)
Definition log.h:80
#define AERROR
Definition log.h:44
#define AINFO
Definition log.h:42

◆ Proc()

bool apollo::perception::lidar::PointCloudMapROIComponent::Proc ( const std::shared_ptr< LidarFrameMessage > &  message)
override

Process of Point Cloud Map ROI Component object

参数
messagelidar frame message
返回
true
false

在文件 pointcloud_map_based_roi_component.cc72 行定义.

73 {
75 // internal proc
76 bool status = InternalProc(message);
77 if (status) {
78 writer_->Write(message);
79 AINFO << "Send pointcloud map based roi output message.";
80 }
81 return status;
82}
#define PERF_FUNCTION(...)
Definition profiler.h:54

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