Ask Your Question

slam_gmapping installation

asked 2016-01-19 11:16:50 -0500

Randerson gravatar image

Hello all, I am doing the tutorial How to Build a Map Using Logged Data which requires the use of gmapping. Well, I do not know how to install it. I found an installation option via apt-get but I would like to install from the git repository. The gmapping ROS package is called slam_gmapping and from its web page the git repository address available is .

Someone can give me instructions on how to install slam_gmapping package via clonning the its repository?


edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2016-01-19 13:04:32 -0500

mgruhler gravatar image

First of all: do you mean "install" that the end result should be the same as as with apt-get? I.e. slam_gmapping is installed in /opt/ros? Then I would go for the apt-get version, even though it is possible with catkin directly.

If you "just" want to have it in you workspace, I'd suggest you go through the catkin Tutorials so that you understand what actually happens. In short, the required steps are:

  1. create a catkin workspace:

    mkdir -p catkin_ws/src
    cd catkin_ws/src
    source /opt/ros/<DISTRO>/setup.bash
  2. clone the repository:

    git clone
  3. compile the workspace

    cd ..
  4. source the workspace

    source devel/setup.bash
edit flag offensive delete link more


Could not find a package configuration file provided by "openslam_gmapping" with any of the following names: openslam_gmappingConfig.cmake openslam_gmapping-config.cmake I got this error after doing catkin_make following your commands. How can I fix this problem thanks a lot

Oakafka gravatar image Oakafka  ( 2016-05-28 08:04:47 -0500 )edit

You also Need to satisfy all dependencies. You can do that by either also cloning all relevant repositories (openslam_gmapping can be found here) or by installing the provided binaries (sudo apt-get install ros-kinetic-openslam-gmapping). ...

mgruhler gravatar image mgruhler  ( 2018-06-04 01:23:51 -0500 )edit

I'd highly recommend to use the apt-get Approach here, because openslam_gmapping does not fit easily into the ROS Workspace layout (afair), and would really overcomplicate things.

mgruhler gravatar image mgruhler  ( 2018-06-04 01:24:43 -0500 )edit

answered 2018-05-29 15:10:57 -0500 gravatar image

sudo apt install ros-kinetic-gmapping Substitute whatever ROS distro you have if its not kinetic.

edit flag offensive delete link more

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


Asked: 2016-01-19 11:16:50 -0500

Seen: 17,261 times

Last updated: May 29 '18