PointcloudProcessor.hpp
Go to the documentation of this file.
1 /*
2  * PointcloudProcessor.hpp
3  *
4  * Created on: Nov 21, 2019
5  * Author: Edo Jelavic
6  * Institute: ETH Zurich, Robotic Systems Lab
7  */
8 
9 #pragma once
10 
11 #include <string>
12 
14 #include "grid_map_pcl/helpers.hpp"
15 
16 namespace grid_map {
17 namespace grid_map_pcl {
18 
20  public:
22  virtual ~PointcloudProcessor() = default;
23 
28  void loadParameters(const std::string& filename);
29 
38  Pointcloud::Ptr removeOutliersFromInputCloud(Pointcloud::ConstPtr inputCloud) const;
39 
48  Pointcloud::Ptr downsampleInputCloud(Pointcloud::ConstPtr inputCloud) const;
49 
57  std::vector<pcl::PointIndices> extractClusterIndicesFromPointcloud(Pointcloud::ConstPtr inputCloud) const;
58 
66  std::vector<Pointcloud::Ptr> extractClusterCloudsFromPointcloud(Pointcloud::ConstPtr inputCloud) const;
67 
76  static Pointcloud::Ptr makeCloudFromIndices(const std::vector<int>& indices, Pointcloud::ConstPtr inputCloud);
77 
82  static void savePointCloudAsPcdFile(const std::string& filename, const Pointcloud& cloud);
83 
90  Pointcloud::Ptr applyRigidBodyTransformation(Pointcloud::ConstPtr inputCloud) const;
91 
92  protected:
93  // Parameters for the pcl filters.
94  std::unique_ptr<grid_map_pcl::PclLoaderParameters> params_;
95 };
96 
97 } /* namespace grid_map_pcl */
98 
99 } /* namespace grid_map*/
std::vector< Pointcloud::Ptr > extractClusterCloudsFromPointcloud(Pointcloud::ConstPtr inputCloud) const
filename
Pointcloud::Ptr applyRigidBodyTransformation(Pointcloud::ConstPtr inputCloud) const
static Pointcloud::Ptr makeCloudFromIndices(const std::vector< int > &indices, Pointcloud::ConstPtr inputCloud)
Pointcloud::Ptr downsampleInputCloud(Pointcloud::ConstPtr inputCloud) const
void loadParameters(const std::string &filename)
std::vector< pcl::PointIndices > extractClusterIndicesFromPointcloud(Pointcloud::ConstPtr inputCloud) const
static void savePointCloudAsPcdFile(const std::string &filename, const Pointcloud &cloud)
Pointcloud::Ptr removeOutliersFromInputCloud(Pointcloud::ConstPtr inputCloud) const
::pcl::PointCloud< Point > Pointcloud
Definition: helpers.hpp:44
std::unique_ptr< grid_map_pcl::PclLoaderParameters > params_


grid_map_pcl
Author(s): Dominic Jud , Edo Jelavic
autogenerated on Tue Jun 1 2021 02:13:43