Ask Your Question
0

slam_gmapping installation

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

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 https://github.com/ros-perception/sla... .

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

Thanks

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

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

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
    catkin_init_workspace
    
  2. clone the repository:

    git clone https://github.com/ros-perception/slam_gmapping.git
    
  3. compile the workspace

    cd ..
    catkin_make
    
  4. source the workspace

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

Comments

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 imageOakafka ( 2016-05-28 08:04:47 -0600 )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 imagemgruhler ( 2018-06-04 01:23:51 -0600 )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 imagemgruhler ( 2018-06-04 01:24:43 -0600 )edit
0

answered 2018-05-29 15:10:57 -0600

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

Stats

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

Seen: 9,770 times

Last updated: May 29 '18