koide3 / hdl_graph_slam

3D LIDAR-based Graph SLAM
BSD 2-Clause "Simplified" License
1.97k stars 726 forks source link

Launch failed #68

Open JasminejmChen opened 5 years ago

JasminejmChen commented 5 years ago

NODES / floor_detection_nodelet (nodelet/nodelet) hdl_graph_slam_nodelet (nodelet/nodelet) lidar2base_publisher (tf/static_transform_publisher) map2odom_publisher (hdl_graph_slam/map2odom_publisher.py) prefiltering_nodelet (nodelet/nodelet) scan_matching_odometry_nodelet (nodelet/nodelet) velodyne_nodelet_manager (nodelet/nodelet)

ROS_MASTER_URI=http://localhost:11311

process[lidar2base_publisher-1]: started with pid [6639] process[velodyne_nodelet_manager-2]: started with pid [6640] process[prefiltering_nodelet-3]: started with pid [6647] process[scan_matching_odometry_nodelet-4]: started with pid [6659] process[floor_detection_nodelet-5]: started with pid [6665] process[hdl_graph_slam_nodelet-6]: started with pid [6680] process[map2odom_publisher-7]: started with pid [6700] [ INFO] [1565201195.604248314]: Initializing nodelet with 8 worker threads. [ERROR] [1565201195.721084640]: Failed to load nodelet [/floor_detection_nodelet] of type [hdl_graph_slam/FloorDetectionNodelet] even after refreshing the cache: Failed to load library /home/jasmine/slam_ws/devel/lib//libfloor_detection_nodelet.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/jasmine/slam_ws/devel/lib//libfloor_detection_nodelet.so: undefined symbol: _ZN3pcl25SampleConsensusModelPlaneINS_9PointXYZIEE24computeModelCoefficientsERKSt6vectorIiSaIiEERN5Eigen6MatrixIfLin1ELi1ELi0ELin1ELi1EEE) [ERROR] [1565201195.721115913]: The error before refreshing the cache was: Failed to load library /home/jasmine/slam_ws/devel/lib//libfloor_detection_nodelet.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/jasmine/slam_ws/devel/lib//libfloor_detection_nodelet.so: undefined symbol: _ZN3pcl25SampleConsensusModelPlaneINS_9PointXYZIEE24computeModelCoefficientsERKSt6vectorIiSaIiEERN5Eigen6MatrixIfLin1ELi1ELi0ELin1ELi1EEE) [FATAL] [1565201195.721214706]: Failed to load nodelet '/floor_detection_nodeletof typehdl_graph_slam/FloorDetectionNodeletto managervelodyne_nodelet_manager' construct solver...

Using CHOLMOD poseDim -1 landMarkDim -1 blockordering 0

done registration: NDT_OMP DIRECT7 1 (0 threads) [floor_detection_nodelet-5] process has died [pid 6665, exit code 255, cmd /opt/ros/kinetic/lib/nodelet/nodelet load hdl_graph_slam/FloorDetectionNodelet velodyne_nodelet_manager name:=floor_detection_nodelet log:=/home/jasmine/.ros/log/ff413fd2-b93a-11e9-a100-a0510b63a826/floor_detection_nodelet-5.log]. log file: /home/jasmine/.ros/log/ff413fd2-b93a-11e9-a100-a0510b63a826/floor_detection_nodelet-5*.log

After I launch the launchfile, this error occurs? Does anyone know why is that?

koide3 commented 5 years ago

Hi @Jiaminchen0 , Are you using pcl-ros package? Self-built pcl sometimes causes this kind of launch failures.