carlosmccosta / dynamic_robot_localization

Point cloud registration pipeline for robot localization and 3D perception
BSD 3-Clause "New" or "Revised" License
797 stars 195 forks source link

catkin_make error #5

Open zcb5216 opened 5 years ago

zcb5216 commented 5 years ago

Hi ,Carlos Miguel : I have a problem about the "catkin_make",below was the result: In file included from /home/zcb/drl/src/dynamic_robot_localization-kinetic-devel/src/cloud_filters/plane_segmentation.cpp:10:0: /home/zcb/drl/src/dynamic_robot_localization-kinetic-devel/include/dynamic_robot_localization/cloud_filters/impl/plane_segmentation.hpp: In instantiation of ‘void dynamic_robot_localization::PlaneSegmentation::filter(const typename pcl::PointCloud::Ptr&, typename pcl::PointCloud::Ptr&) [with PointT = pcl::PointXYZRGBNormal; typename pcl::PointCloud::Ptr = boost::shared_ptr<pcl::PointCloud >]’: /home/zcb/drl/src/dynamic_robot_localization-kinetic-devel/src/cloud_filters/plane_segmentation.cpp:19:1: required from here /home/zcb/drl/src/dynamic_robot_localization-kinetic-devel/include/dynamic_robot_localization/cloud_filters/impl/plane_segmentation.hpp:124:157: error: call of overloaded ‘transformPointCloudWithNormals(pcl::PointCloud&, pcl::PointCloud&, const Eigen::internal::inverse_impl<Eigen::Matrix<float, 4, 4> >)’ is ambiguous pcl::transformPointCloudWithNormals(convex_hull_for_projected_plane_inliers, convex_hull_for_projected_plane_inliers, centroid_matrix.inverse()); ^ /home/zcb/drl/src/dynamic_robot_localization-kinetic-devel/include/dynamic_robot_localization/cloud_filters/impl/plane_segmentation.hpp:124:157: note: candidates are: In file included from /home/zcb/drl/src/dynamic_robot_localization-kinetic-devel/include/dynamic_robot_localization/cloud_filters/plane_segmentation.h:26:0, from /home/zcb/drl/src/dynamic_robot_localization-kinetic-devel/include/dynamic_robot_localization/cloud_filters/impl/plane_segmentation.hpp:9, from /home/zcb/drl/src/dynamic_robot_localization-kinetic-devel/src/cloud_filters/plane_segmentation.cpp:10: /home/zcb/catkin_ws_drl/devel_release/include/pcl-1.8/pcl/common/transforms.h:145:3: note: void pcl::transformPointCloudWithNormals(const pcl::PointCloud&, pcl::PointCloud&, const Affine3f&, bool) [with PointT = pcl::PointXYZRGBNormal; Eigen::Affine3f = Eigen::Transform<float, 3, 2>] transformPointCloudWithNormals (const pcl::PointCloud &cloud_in, ^ In file included from /home/zcb/drl/src/dynamic_robot_localization-kinetic-devel/include/dynamic_robot_localization/cloud_filters/plane_segmentation.h:26:0, from /home/zcb/drl/src/dynamic_robot_localization-kinetic-devel/include/dynamic_robot_localization/cloud_filters/impl/plane_segmentation.hpp:9, from /home/zcb/drl/src/dynamic_robot_localization-kinetic-devel/src/cloud_filters/plane_segmentation.cpp:10: /home/zcb/catkin_ws_drl/devel_release/include/pcl-1.8/pcl/common/transforms.h:318:3: note: void pcl::transformPointCloudWithNormals(const pcl::PointCloud&, pcl::PointCloud&, const Matrix4f&, bool) [with PointT = pcl::PointXYZRGBNormal; Eigen::Matrix4f = Eigen::Matrix<float, 4, 4>] transformPointCloudWithNormals (const pcl::PointCloud &cloud_in, ^ make[2]: [dynamic_robot_localization-kinetic-devel/CMakeFiles/drl_cloud_filters.dir/src/cloud_filters/plane_segmentation.cpp.o] 错误 1 make[2]: 正在等待未完成的任务.... make[1]: [dynamic_robot_localization-kinetic-devel/CMakeFiles/drl_cloud_filters.dir/all] 错误 2 make: [all] 错误 2

carlosmccosta commented 5 years ago

Good night :)

Thank you for letting me know about your compilation problem. I recompiled drl with both catkin_tools (catkin build) and catkin_make_isolated, and did not get the error you mentioned above. But I am using an upgraded version of gcc in Ubuntu 16 (7.4). Please do git pull in the drl repository and let me know if the last commit solved the error you mentioned. https://github.com/carlosmccosta/dynamic_robot_localization/commit/681b82f81fbb23cd6aa855ddd6541633f4e644ad

Have a nice day :)