gmapping error
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)
- I gave the (+ x ) permission but the problem still appears
- i do source devel/setup.bash
Can anyone help me with this problem ?
Asked by Kostas Tzias on 2023-04-24 07:56:16 UTC
Answers
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
Asked by MichaelShuo on 2023-06-27 22:30:11 UTC
Comments
Did you build the package yourself, or install it from
apt
?The
apt
packageros-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.
Asked by Mike Scheutzow on 2023-06-28 08:02:39 UTC