ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

gmapping error

asked 2023-04-24 07:56:16 -0600

Kostas Tzias gravatar image

so i get this error when i roslaunch the launch file from the gmapping pkg

ERROR: cannot launch node of type [gmapping/slam_gmapping]: Cannot locate node of type [slam_gmapping] in package [gmapping]. Make sure file exists in package path and permission is set to executable (chmod +x)
  1. I gave the (+ x ) permission but the problem still appears
  2. i do source devel/setup.bash

Can anyone help me with this problem ?

edit retag flag offensive close merge delete


Did you build the package yourself, or install it from apt?

The apt package ros-noetic-gmapping works just fine in noetic (I ran it this week.)

P.S. The packages ros-noetic-slam-gmapping and ros-noetic-gmapping from apt install the same files. The two names must be some historical thing.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2023-06-28 08:02:39 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2023-06-27 22:30:11 -0600

It seems that the slam_gmapping node can not be located. check whether the slam_gmapping node exists:

(1) If you install gmapping package in deb, run this command and see whether "slam_gmapping" in the outputs:

cd /opt/ros/<your_distro>/lib/gmapping/ && ls

(2) If you install gmapping package in source (build in catkin workspace), run this command instead:

cd /<path_to_your_workspace>/devel/lib/gmapping/ && ls

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2023-04-24 07:56:16 -0600

Seen: 93 times

Last updated: Jun 27 '23