narutojxl / hdl_global_localization_noted

2 stars 0 forks source link

hdl localization cmake error #1

Open Oyssster opened 3 years ago

Oyssster commented 3 years ago

hello @narutojxl. no matching function for call to ‘transformPointCloud(std::__cxx11::string&, pcl::PointCloud<pcl::PointXYZI>&, pcl::PointCloud<pcl::PointXYZI>&, tf2_ros::Buffer&)’ if(!pcl_ros::transformPointCloud(odom_child_frame_id, *pcl_cloud, *cloud, this->tf_buffer)) when I run catkin_make to compile the file: hdl_localization_nodelet.cpp, I met this error. Can this code be compiled on kinetic?

narutojxl commented 3 years ago

Hi @Oyssster, I didn't compile this package successfully on kinetic(ubuntu16.04). I can't remember the specific detail errors, sorry for that. I guess the reason for this error maybe because pcl verison is 1.7.2 on ubuntu16.04(gedit /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfigVersion.cmake) . On ubuntu18.04 it is 1.8. Hdl_global_localization uses ros package pcl_ros in CMakeLists.txt#L8, which is prebuilt with pcl 1.7.2. Maybe we can uninstall this system installed package and build pcl_ros from source in our catkin_ws workspace, and then try to build hdl_global_localization, but I have not try this method. BTW, everything is OK on ubuntu18.04.

Oyssster commented 3 years ago

Hi @Oyssster, I didn't compile this package successfully on kinetic(ubuntu16.04). I can't remember the specific detail errors, sorry for that. I guess the reason for this error maybe because pcl verison is 1.7.2 on ubuntu16.04(gedit /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfigVersion.cmake) . On ubuntu18.04 it is 1.8. Hdl_global_localization uses ros package pcl_ros in CMakeLists.txt#L8, which is prebuilt with pcl 1.7.2. Maybe we can uninstall this system installed package and build pcl_ros from source in our catkin_ws workspace, and then try to build hdl_global_localization, but I have not try this method. BTW, everything is OK on ubuntu18.04.

Hi @narutojxl . Maybe not the PCL version. I compile the packages using PCL1.8.1 and it has the same error.[cry]

narutojxl commented 3 years ago

Did you compile pcl_ros using pcl1.8.1? I'm not sure whether melodic's pcl_ros api is different from kinetic's pcl_ros.

sihanh commented 3 years ago

Did you find out the solution to this error, I am also encountering this problem with 16.04 kinetic, looking for a solution

Oyssster commented 3 years ago

Did you find out the solution to this error, I am also encountering this problem with 16.04 kinetic, looking for a solution

Maybe there are some changes in the code, I can compile with 18.04. The former version can be compiled in 16.04, but the auther may delete the version.