Open NJUSTzwh opened 2 years ago
I solved this problem by replacing _1, _2, _3 in [pandarGeneral_internal.cc] by boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3.
similary, replace boost::lambda_1, boost::lambda_2,_3 in main.cc by boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3.
And package dependency for image_transport and pcl_conversions in CMakeLists.txt. And modify find_package(Boost REQUIRED) to find_package(Boost REQUIRED COMPONENTS thread). And add Boost::thread to target_link_libraries.
Now you can go deal with it.
And launch the example by 'ros2 launch hesai_lidar hesai_lidar_launch.py', not 'roslaunch hesai_lidar hesai_lidar_launch.py'. It's a ROS1 launch style.
And if you are using ROS2 after Galactic, you should modify launch file. just remove 'node_' in Node() arguments.
I want to know the author's cmake version