Ask Your Question

Revision history [back]

Below is one of multiple options. This is assuming you have a default hydro setup running, with "source /opt/ros/hydro/setup.bash" in your .bashrc file. It will also use the catkin version of hector_slam from source. If you don´t absolutely require installation from source " sudo apt-get install ros-hydro-hector-slam" should also work.

Create a folder somewhere:

mkdir hector_slam_test

Enter folder, init workspace:

cd hector_slam_test
rosws init

Copy the following lines to a file named "hector_slam_catkin.rosinstall":

- git:
    uri: https://github.com/tu-darmstadt-ros-pkg/hector_slam.git
    local-name: src/hector_slam
    version: catkin

Merge the contents of this rosinstall file into your workspace:

wstool merge hector_slam_catkin.rosinstall

Update workspace (this updates/pulls all repos belonging to the workspace):

wstool update

Build contents of workspace:

catkin_make

Source the setup file in the workspace´s devel folder:

source devel/setup.bash

You should now be able to use hector_slam as expected. For example

 roslaunch hector_slam_launch tutorial.launch

should start without errors.

Below is one of multiple options. This is assuming you have a default hydro setup running, with "source /opt/ros/hydro/setup.bash" in your .bashrc file. It will also use the catkin version of hector_slam from source. source as it appears you want to use catkin (?). If you don´t absolutely require installation from source " sudo "sudo apt-get install ros-hydro-hector-slam" should also work.

Create a folder somewhere:

mkdir hector_slam_test

Enter folder, init workspace:

cd hector_slam_test
rosws init

Copy the following lines to a file named "hector_slam_catkin.rosinstall":

- git:
    uri: https://github.com/tu-darmstadt-ros-pkg/hector_slam.git
    local-name: src/hector_slam
    version: catkin

Merge the contents of this rosinstall file into your workspace:

wstool merge hector_slam_catkin.rosinstall

Update workspace (this updates/pulls all repos belonging to the workspace):

wstool update

Build contents of workspace:

catkin_make

Source the setup file in the workspace´s devel folder:

source devel/setup.bash

You should now be able to use hector_slam as expected. For example

 roslaunch hector_slam_launch tutorial.launch

should start without errors.

Below is one of multiple options. This is assuming you have a default hydro setup running, with "source /opt/ros/hydro/setup.bash" in your .bashrc file. It will also use the catkin version of hector_slam from source as it appears you want to use catkin (?). If you don´t absolutely require installation from source "sudo apt-get install ros-hydro-hector-slam" should also work.

Create a folder somewhere:

mkdir hector_slam_test

Enter folder, init workspace:

cd hector_slam_test
rosws wstool init

Copy the following lines to a file named "hector_slam_catkin.rosinstall":

- git:
    uri: https://github.com/tu-darmstadt-ros-pkg/hector_slam.git
    local-name: src/hector_slam
    version: catkin

Merge the contents of this rosinstall file into your workspace:

wstool merge hector_slam_catkin.rosinstall

Update workspace (this updates/pulls all repos belonging to the workspace):

wstool update

Build contents of workspace:

catkin_make

Source the setup file in the workspace´s devel folder:

source devel/setup.bash

You should now be able to use hector_slam as expected. For example

 roslaunch hector_slam_launch tutorial.launch

should start without errors.

Below is one of multiple options. This is assuming you have a default hydro setup running, with "source /opt/ros/hydro/setup.bash" in your .bashrc file. It will also use the catkin version of hector_slam from source as it appears you want to use catkin (?). If you don´t absolutely require installation from source "sudo apt-get install ros-hydro-hector-slam" should also work.

Create a folder somewhere:

mkdir hector_slam_test

Enter folder, init workspace:

cd hector_slam_test
wstool init

Copy the following lines to a file named "hector_slam_catkin.rosinstall":

- git:
    uri: https://github.com/tu-darmstadt-ros-pkg/hector_slam.git
    local-name: src/hector_slam
    version: catkin

/edit: It appears the link gets screwed up by ROS Answers. You can see the correct formatting here: http://answers.ros.org/answers/115386/revisions/

Merge the contents of this rosinstall file into your workspace:

wstool merge hector_slam_catkin.rosinstall

Update workspace (this updates/pulls all repos belonging to the workspace):

wstool update

Build contents of workspace:

catkin_make

Source the setup file in the workspace´s devel folder:

source devel/setup.bash

You should now be able to use hector_slam as expected. For example

 roslaunch hector_slam_launch tutorial.launch

should start without errors.