找到octree_base_node.hpp:文件将children_[i] == false改成!children_[i]
接着编译又报错
/home/a/pcl-pcl-1.7.2/registration/include/pcl/registration/correspondence_estimation_backprojection.h:188:41: error: return-statement with a value, in function returning 'void' [-fpermissive]
getKSearch () const { return (k_); }
解决:找到correspondence_estimation_backprojection.h文件将返回值void改称int
博客内容涉及PCL库的源码修改,具体为在octree_base_node.hpp文件中将children_[i]==false条件改为!children_[i],然后在correspondence_estimation_backprojection.h文件中解决了返回类型不匹配的问题,将void改为int。这些改动解决了编译时遇到的错误。
1833





