Ask Your Question
0

Gmapping can't run

asked 2015-12-24 03:15:03 -0500

Terry Su gravatar image

updated 2015-12-24 08:00:06 -0500

Hello all of ROS users,

I want to use the gmapping to get the X,Y location data and track path data I followed the the website as follows to install it:http://wiki.ros.org/gmapping

But when I type the command "rosrun gmapping slam_gmapping scan:=base_scan" in the terminal, it shows

[rospack] Error: package 'gmapping' not found

Does anyone knows how to solve it? Thank you very much for your kindly help.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-12-24 07:40:06 -0500

sar1994 gravatar image

i think the problem is ros is not able to find the gmapping package . So, first build the gmapping package into your ros workspace.

edit flag offensive delete link more

Comments

or first check if it is available by the command $rospack find gmapping

sar1994 gravatar image sar1994  ( 2015-12-24 07:40:41 -0500 )edit

I use the command $rospack find gmapping in the terminal, the error is same as"[rospack] Error: package 'gmapping' not found", but I really have installed it.

Terry Su gravatar image Terry Su  ( 2015-12-24 07:59:23 -0500 )edit

where did u install the package. If its in your own workspace then source the setup.bash file

sar1994 gravatar image sar1994  ( 2015-12-24 08:19:10 -0500 )edit

I installed the package in the "home" folder which is default, and I resource the setup.bash by this command $ source /opt/ros/indigo/setup.bash , but it is not working,too.

Terry Su gravatar image Terry Su  ( 2015-12-24 09:09:52 -0500 )edit

here's the problem.. first of all the packages need to be built inside a ros workspace.. like /op/ros/indigo/share. This folder is the defualt workspace of ros. so u clone the git repo into the share folder and then build that . then u will be able to run the node.

sar1994 gravatar image sar1994  ( 2015-12-24 12:59:57 -0500 )edit

I have changed the directory and use "git clone" to installed the file in the rosworkspace successfully. But when I use the command "rosrun gmapping slam_gmapping scan:=base_scan", it shows "Couldn't find executable name slam_gmapping below /opt/ros/jade/share/slam_gmapping/gmapping"

Terry Su gravatar image Terry Su  ( 2015-12-25 00:23:55 -0500 )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: 2015-12-24 03:15:03 -0500

Seen: 1,382 times

Last updated: Dec 24 '15