25 {
26 PointCloudSemanticComponentConfig comp_config;
28 AERROR <<
"Get PointCloudSemanticComponentConfig file failed";
29 return false;
30 }
31 AINFO <<
"PointCloud semantic Component Configs: " << comp_config.DebugString();
32
33
34 output_channel_name_ = comp_config.output_channel_name();
35 writer_ =
node_->CreateWriter<LidarFrameMessage>(output_channel_name_);
36
37
38 auto plugin_param = comp_config.plugin_param();
39 std::string parser_name = plugin_param.name();
40 BasePointCloudParser* parser = BasePointCloudParserRegisterer::GetInstanceByName(parser_name);
41 CHECK_NOTNULL(parser);
42 parser_.reset(parser);
43 PointCloudParserInitOptions init_options;
44 init_options.config_path = plugin_param.config_path();
45 init_options.config_file = plugin_param.config_file();
46 ACHECK(parser_->Init(init_options)) <<
"PointCloud parser init error";
47
48 AINFO <<
"Successfully init pointcloud parser component.";
49 return true;
50}
bool GetProtoConfig(T *config) const
std::shared_ptr< Node > node_