slam_gmapping
Q&A
Closed
WSLでGazebo, Rvizでシミュレーションするためにslam_gmappingを正しく入手したい
catkin_wsでbuildをするとエラーが発生してしまいます。
試行錯誤した結果、おそらくslam_gmappingが悪さをしていそうですが、
削除→再度git cloneで入手しても事態が改善しません。
どのように解決したらよろしいでしょうか。
発生している問題・エラー
/opt/ros/melodic/lib/libtf.so: undefined reference to `tf2_ros::TransformListener::TransformListener(tf2::BufferCore&, ros::NodeHandle const&, bool)'
collect2: error: ld returned 1 exit status
slam_gmapping/gmapping/CMakeFiles/slam_gmapping.dir/build.make:166: recipe for target '/home/kabira/catkin_ws/devel/lib/gmapping/slam_gmapping' failed
make[2]: *** [/home/kabira/catkin_ws/devel/lib/gmapping/slam_gmapping] Error 1
CMakeFiles/Makefile2:11081: recipe for target 'slam_gmapping/gmapping/CMakeFiles/slam_gmapping.dir/all' failed
make[1]: *** [slam_gmapping/gmapping/CMakeFiles/slam_gmapping.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 87%] Built target slam_gmapping_nodelet
/opt/ros/melodic/lib/libtf.so: undefined reference to `tf2_ros::TransformListener::TransformListener(tf2::BufferCore&, ros::NodeHandle const&, bool)'
collect2: error: ld returned 1 exit status
slam_gmapping/gmapping/CMakeFiles/slam_gmapping_replay.dir/build.make:166: recipe for target '/home/kabira/catkin_ws/devel/lib/gmapping/slam_gmapping_replay' failed
make[2]: *** [/home/kabira/catkin_ws/devel/lib/gmapping/slam_gmapping_replay] Error 1
CMakeFiles/Makefile2:11228: recipe for target 'slam_gmapping/gmapping/CMakeFiles/slam_gmapping_replay.dir/all' failed
make[1]: *** [slam_gmapping/gmapping/CMakeFiles/slam_gmapping_replay.dir/all] Error 2
自分で試したこと
catkin_ws/srcにあるslam_gmappingを削除するとbuildは正常に実行できますが、
gazebo, rvizが起動しません。
0