29 std::string config_file =
36 AINFO <<
"PclDownSample plugin init success.";
42 pcl::PointCloud<pcl::PointXYZI>::Ptr pcl_cloud_ptr(
43 new pcl::PointCloud<pcl::PointXYZI>());
44 pcl::PointCloud<pcl::PointXYZI>::Ptr filtered_cloud_ptr(
45 new pcl::PointCloud<pcl::PointXYZI>());
49 downsample_voxel_size_x_, downsample_voxel_size_y_,
50 downsample_voxel_size_z_);
54 cloud_ptr = downsample_voxel_cloud_ptr;
bool Init(const DownSampleInitOptions &options=DownSampleInitOptions()) override
Init of PclDownSample object
bool Process(const DownSampleOptions &options, base::PointFCloudPtr &cloud_ptr) override
Down sample pointcloud
bool GetProtoFromFile(const std::string &file_name, google::protobuf::Message *message)
Parses the content of the file specified by the file_name as a representation of protobufs,...
std::shared_ptr< PointFCloud > PointFCloudPtr
void TransformToPCLXYZI(const base::AttributePointCloud< PointT > &org_cloud, const pcl::PointCloud< pcl::PointXYZI >::Ptr &out_cloud_ptr)
void DownSampleCloudByVoxelGrid(const pcl::PointCloud< pcl::PointXYZI >::Ptr &cloud_ptr, const pcl::PointCloud< pcl::PointXYZI >::Ptr &filtered_cloud_ptr, float lx=0.01f, float ly=0.01f, float lz=0.01f)
void TransformFromPCLXYZI(const pcl::PointCloud< pcl::PointXYZI >::Ptr &org_cloud_ptr, const base::PointFCloudPtr &out_cloud_ptr)
std::string GetConfigFile(const std::string &config_path, const std::string &config_file)
optional double downsample_voxel_size_y
optional double downsample_voxel_size_x
optional double downsample_voxel_size_z