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

I can't run the gmapping node

asked 2013-10-23 11:44:52 -0600

moutinoir gravatar image


I'm programming in c++ and I use catkin. I wanted to work with amcl node. But since it's not catkinised yet, I had to use the gmapping node. I followed the tutorial from here:

http:// catkin/ Tutorials/ using_rosbuild_with_catkin

to get this node. I did each step. Now I want to run the node with the command

$ rosrun gmapping slam_gmapping scan:=base_scan

but it doesn't work, see the error message :

[rosrun] Couldn't find executable named slam_gmapping below /home/pauline/ros_ws/gmapping/gmapping

(I found the command to run it in here http:// gmapping)

I don't understand because I did

$ rosmake gmapping

and it was successfull. Am I missing something here ??

Thanks for your help

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-10-23 20:45:11 -0600

Tirjen gravatar image

Which version of ROS are you running? I don't know if I understood well the question, but in Hydro there is the catkin version of both amcl and gmapping.

Where did you downloaded the package gmapping which you are trying to build with rosbuild?

edit flag offensive delete link more


thank you for your help, it worked by doing 'sudo apt-get install ros-groovy-slam-gmapping' instead of following the tutorial. (see the answer below for more details) :)

moutinoir gravatar image moutinoir  ( 2013-10-26 06:35:23 -0600 )edit

answered 2013-10-23 23:08:08 -0600

moutinoir gravatar image

updated 2013-10-24 08:07:03 -0600

William gravatar image

Thanks for your quick answer :)

I have ros groovy. To download the package I followed the instructions of the ros wiki tutorial at this address :

http:// catkin/
Tutorials/ using_rosbuild_with_catkin

Here are the command I executed :

$ cd ~/rosbuild_ws
$ wstool set gmapping --git https:// ros-perception/ slam_gmapping.git
$ rosws update gmapping
$ source setup.bash

Here you can see that the package sources are on github.

edit flag offensive delete link more


Honestly to intsall the gmapping in groovy I would have use 'sudo apt-get install ros-groovy-slam-gmapping'. Anyway the link you used brings to a hydro-devel version of the package gmapping, can you check if the package you downloaded is a catkin version or a rosbuild version?

Tirjen gravatar image Tirjen  ( 2013-10-24 00:42:10 -0600 )edit

How do I check that ?

moutinoir gravatar image moutinoir  ( 2013-10-24 02:38:20 -0600 )edit

You can see it from the file CMakeLists.txt inside your package, if in the first lines there is something similar to: include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake), then it's a rosbuild package, if you see something like: find_package(catkin REQUIRED), then it's a catkin package.

Tirjen gravatar image Tirjen  ( 2013-10-24 03:58:36 -0600 )edit

It's catkin, see the line : find_package(catkin REQUIRED nav_msgs openslam_gmapping roscpp rostest tf)

moutinoir gravatar image moutinoir  ( 2013-10-24 04:14:11 -0600 )edit

Ok then that's why 'rosmake gmapping' is successful but it does nothing! You could download the rosbuild package ros groovy, but I suggest you to delete the package you have downloaded and run the command 'sudo apt-get install ros-groovy-slam-gmapping'.

Tirjen gravatar image Tirjen  ( 2013-10-24 04:33:45 -0600 )edit

Question Tools

1 follower


Asked: 2013-10-23 11:44:52 -0600

Seen: 2,850 times

Last updated: Oct 24 '13