koide3 / hdl_localization

Real-time 3D localization using a (velodyne) 3D LIDAR
BSD 2-Clause "Simplified" License
775 stars 309 forks source link

catkin_make error #71

Open TCoder24 opened 3 years ago

TCoder24 commented 3 years ago

/hdl_localization/apps/hdl_localization_nodelet.cpp:529:8: error: ‘atomic_bool’ in namespace ‘std’ does not name a type std::atomic_bool relocalizing;

when I run catkin_make I met this error

Oyssster commented 3 years ago

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. Is there somebody can tell me how to solve the problem?

Oyssster commented 3 years ago

/hdl_localization/apps/hdl_localization_nodelet.cpp:529:8: error: ‘atomic_bool’ in namespace ‘std’ does not name a type std::atomic_bool relocalizing;

when I run catkin_make I met this error

Hi Jed-t, you can try to add the follow code in the CMakeList.txt in the hdl_localization package. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")

TCoder24 commented 3 years ago

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. Is there somebody can tell me how to solve the problem?

TCoder24 commented 3 years ago

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. Is there somebody can tell me how to solve the problem?

i have tried before,and i also met the same problem as yours,,,,,,don't know how to solve it.

Oyssster commented 3 years ago

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. Is there somebody can tell me how to solve the problem?

i have tried before,and i also met the same problem as yours,,,,,,don't know how to solve it.

@Jed-t Do you compile in ubuntu16.04 and ros-kinetic?

TCoder24 commented 3 years ago

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. Is there somebody can tell me how to solve the problem?

i have tried before,and i also met the same problem as yours,,,,,,don't know how to solve it.

@Jed-t Do you compile in ubuntu16.04 and ros-kinetic?

yes,does it work on 20.04?

Oyssster commented 3 years ago

does it work on 20.04?

I'm don't know whether it works on 20.04. I use 16.04.[doge]

narutojxl commented 3 years ago

@Jed-t, hope this help.

TCoder24 commented 3 years ago

@Jed-t, hope this help.

ok,thanks a lot !