ERROR: cannot launch node of type [gmapping/slam_gmapping]: gmapping

在使用turtlebot3做仿真建图时无法运行SLAM启动文件,错误显示如下:

ERROR: cannot launch node of type [gmapping/slam_gmapping]: gmapping
ROS path [0]=/opt/ros/kinetic/share/ros
ROS path [1]=/home/peng/turtlebot3_ws/src
ROS path [2]=/home/peng/catkin_ws/src
ROS path [3]=/home/peng/study_ws/src
ROS path [4]=/opt/ros/kinetic/share

ERROR: cannot launch node of type [gmapping/slam_gmapping]: gmapping_第1张图片

这是因为gmapping包缺失

解决方法:

sudo apt-get install ros-kinetic-gmapping

安装完成以后重新运行即可

roslaunch turtlebot3_slam turtlebot3_slam.launch

ERROR: cannot launch node of type [gmapping/slam_gmapping]: gmapping_第2张图片

 

 

你可能感兴趣的:(问题,&,解决)