前提・実現したいこと
ubuntu1804 ros melodic で
turtlebot3のSLAMノードを実行したら
下記のエラーがでます。
解決方法をご教授願います。
81%] Built target turtlebot3_drive
[ 83%] Built target gridfastslam
[ 84%] Built target costmap_2d
[ 84%] Built target scanmatch_test
Scanning dependencies of target slam_gmapping_nodelet
[ 85%] Built target icptest
Scanning dependencies of target slam_gmapping
[ 85%] Building CXX object slam_gmapping/gmapping/CMakeFiles/slam_gmapping_nodelet.dir/src/slam_gmapping.cpp.o
[ 85%] Building CXX object slam_gmapping/gmapping/CMakeFiles/slam_gmapping.dir/src/slam_gmapping.cpp.o
[ 85%] Building CXX object slam_gmapping/gmapping/CMakeFiles/slam_gmapping.dir/src/main.cpp.o
[ 86%] Building CXX object slam_gmapping/gmapping/CMakeFiles/slam_gmapping_nodelet.dir/src/nodelet.cpp.o
[ 86%] Linking CXX executable /home/yoshi/catkin_ws/devel/lib/gmapping/slam_gmapping
[ 86%] Linking CXX shared library /home/yoshi/catkin_ws/devel/lib/libslam_gmapping_nodelet.so
/opt/ros/melodic/lib/libtf.so: `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:165: recipe for target '/home/yoshi/catkin_ws/devel/lib/gmapping/slam_gmapping' failed
make[2]: *** [/home/yoshi/catkin_ws/devel/lib/gmapping/slam_gmapping] Error 1
CMakeFiles/Makefile2:12220: 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]: *** 未完了のジョブを待っています....
[ 86%] Built target slam_gmapping_nodelet
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j2 -l2" failed
あなたの回答
tips
プレビュー