Ask Your Question
0

I can't run the gmapping node

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

moutinoir gravatar image

Hi,

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:// wiki.ros.org/ 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:// wiki.ros.org/ 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
1

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

Comments

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 imagemoutinoir ( 2013-10-26 06:35:23 -0600 )edit
0

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:// wiki.ros.org/ catkin/
Tutorials/ using_rosbuild_with_catkin

Here are the command I executed :

$ cd ~/rosbuild_ws
$ wstool set gmapping --git https:// github.com/ 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

Comments

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 imageTirjen ( 2013-10-24 00:42:10 -0600 )edit

How do I check that ?

moutinoir gravatar imagemoutinoir ( 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 imageTirjen ( 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 imagemoutinoir ( 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 imageTirjen ( 2013-10-24 04:33:45 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 2,439 times

Last updated: Oct 24 '13