1 #ifndef PCLOBJECTDETECTOR_HPP_
2 #define PCLOBJECTDETECTOR_HPP_
5 #include <pcl/point_types.h>
6 #include <pcl/filters/passthrough.h>
7 #include <pcl/ModelCoefficients.h>
8 #include <pcl/io/pcd_io.h>
9 #include <pcl/point_types.h>
10 #include <pcl/sample_consensus/method_types.h>
11 #include <pcl/sample_consensus/model_types.h>
12 #include <pcl/segmentation/sac_segmentation.h>
13 #include <pcl/surface/convex_hull.h>
14 #include <pcl/filters/extract_indices.h>
15 #include <pcl/filters/voxel_grid.h>
16 #include <pcl/segmentation/extract_clusters.h>
17 #include <pcl/common/impl/centroid.hpp>
18 #include <pcl/common/common.h>
23 using pclType = pcl::PointCloud<pcl::PointXYZ>;
41 if(p_pclPtr ==
nullptr) {
54 virtual std::shared_ptr<std::vector<pcl::PointCloud<pcl::PointXYZ>::Ptr>>
cluster_data(
pclPtrType p_pclPtr, std::vector<Object>& p_objectsVecRef,
float clusterTolerance,
int minClusterSize,
int maxClusterSize)
const = 0;
64 m_name =
"euclidean detector";
78 std::shared_ptr<std::vector<pcl::PointCloud<pcl::PointXYZ>::Ptr>>
cluster_data(
pclPtrType p_pclPtr, std::vector<Object>& p_objectsVecRef,
float clusterTolerance,
int minClusterSize,
int maxClusterSize)
const;