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

How to install packages under ROS

asked 2014-11-05 02:33:00 -0600

berry0511 gravatar image

I want to install packages from the URL: but failed for many times. I don't know how to use the apt-get to install a package from that web.

edit retag flag offensive close merge delete


which package you want to install, first get source by git clone and then build it.

bvbdort gravatar image bvbdort  ( 2014-11-05 02:51:05 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-11-05 03:44:03 -0600

Mehdi. gravatar image

updated 2014-11-05 19:31:07 -0600

For released packages you just type:

sudo apt-get install ros-"your ros distro"-"package-name"

If you use ROS indigo and want to install the package image-view you just do

sudo apt-get install ros-indigo-image-view

If the package is not released then you will need to install it from source code, click on the name of the package on the package's list page and find out where the code is hosted (mostly github), clone the package's repository in your workspace. then catkin_make. This is explained in detail in beginner's tutorials.

Now the problem with installing from source code is that you have to take care of the dependencies by yourself. whenever you see "Could not find a configuration file for package xxxxx" it means this package is missing and is needed for compiling your code. You could also try using rosdep which will automatically try to find all the dependencies of your package and install them.

edit flag offensive delete link more


Thanks very much! I have tried it before ( ) , there's some problems when i tried to catkin_make. I don't know how to solve it.

berry0511 gravatar image berry0511  ( 2014-11-05 04:32:11 -0600 )edit

I edited my answer.

Mehdi. gravatar image Mehdi.  ( 2014-11-05 19:31:18 -0600 )edit

thx a lot ! i solved that error, I think I used to download the wrong package!

berry0511 gravatar image berry0511  ( 2014-11-06 04:44:05 -0600 )edit

Question Tools

1 follower


Asked: 2014-11-05 02:33:00 -0600

Seen: 9,918 times

Last updated: Nov 05 '14