ethz-asl / segmap

A map representation based on 3D segments
BSD 3-Clause "New" or "Revised" License
1.05k stars 394 forks source link

Type definition mismatch in extract euclidean header with implementation #141

Closed brunoeducsantos closed 4 years ago

brunoeducsantos commented 5 years ago

Hi, Since MapPoint in segment implementation did not match the one in header, there was definition type error.

/home/bruno/segmap_ws/src/segmap/segmatch/include/segmatch/segmenters/segmenter.hpp:40:16: note: void segmatch::Segmenter::segment(const Poin tNormals&, const std::vector&, segmatch::Segmenter::ClusteredCloud&, segmatch::PointsNeighborsProvider&, segmatch::SegmentedCloud&, st d::vector&, std::vector<std::pair<long int, long int> >&) [with ClusteredPointT = pcl::PointXYZ; segmatch::PointNormals = pcl::PointCloud; seg match::Segmenter::ClusteredCloud = pcl::PointCloud] virtual void segment(const PointNormals& normals, const std::vector& is_point_modified, ^ /home/bruno/segmap_ws/src/segmap/segmenter/src/segmenter_tree.cpp:60:32: error: no matching function for call to ‘segmatch::EuclideanSegmenter::segmen t(segmatch::PointNormals&, std::vector&, pcl::PointCloud&, segmatch::KdTreePointsNeighborsProvider&, segmatch::SegmentedCloud&, s td::vector&, std::vector<std::pair<long int, long int> >&)’ renamed_segments); ^ In file included from /home/bruno/segmap_ws/src/segmap/segmenter/src/segmenter_tree.cpp:3:0: /home/bruno/segmap_ws/src/segmap/segmatch/include/segmatch/segmenters/impl/euclidean_segmenter.hpp:30:6: note: candidate: void segmatch::EuclideanSegmenter<Clustered PointT>::segment(const PointNormals&, const std::vector&, segmatch::EuclideanSegmenter::ClusteredCloud&, segmatch::PointsNeighborsProvider<_Se gMatch_PointExtended>&, segmatch::SegmentedCloud&, std::vector&, std::vector<std::pair<long int, long int> >&) [with ClusteredPointT = pcl::PointXYZ; segma tch::PointNormals = pcl::PointCloud; segmatch::EuclideanSegmenter::ClusteredCloud = pcl::PointCloud] void EuclideanSegmenter::segment( ^ /home/bruno/segmap_ws/src/segmap/segmatch/include/segmatch/segmenters/impl/euclidean_segmenter.hpp:30:6: note: no known conversion for argument 4 from ‘segmatch::K dTreePointsNeighborsProvider’ to ‘segmatch::PointsNeighborsProvider<_SegMatch_PointExtended>&’ make[2]: [CMakeFiles/segmenter.dir/src/segmenter_tree.cpp.o] Error 1 make[1]: [CMakeFiles/segmenter.dir/all] Error 2

Regards, Bruno