ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

how to install ros packages?

asked 2016-02-01 06:58:47 -0600

yoneyama1027 gravatar image

hi guys.

i'm beginner about ros. i wanna use some ros packages. for example i wanna use hector slam. but i don't know how to install its source file from github.

or i don't know how to install hector slam expect for using github.

please help me for solving this problem.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2016-02-01 07:08:13 -0600

BennyRe gravatar image

The easiest and preferred way of installing packages is via

$ sudo apt-get install ros-<your distro>-<package name>

like e.g.

sudo apt-get install ros-indigo-hector-slam

If there is no debian build or you need the source version for some reason you clone the Github repo to the src folder of your catkin workspace.

edit flag offensive delete link more


thanks a lot! i try it soon!

yoneyama1027 gravatar image yoneyama1027  ( 2016-02-01 07:18:58 -0600 )edit

If the debian binary package is available, you should follow BennyRe's answer, else you should follow RoSPlebb's answer. One thing to be careful while using the git clone command is to specify the branch if required.

skr_robo gravatar image skr_robo  ( 2016-07-19 15:37:23 -0600 )edit

answered 2016-07-19 14:22:32 -0600

RoSPlebb gravatar image

You can also type in catkin_ws/src:


cd ..


edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-02-01 06:58:47 -0600

Seen: 4,471 times

Last updated: Jul 19 '16