ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

How do I install a missing ROS package?

asked 2011-02-24 18:33:33 -0500

sam gravatar image

updated 2011-02-25 08:15:56 -0500

joq gravatar image

hello, How do I install packages that I can't use roscd to find?

I try to type something like rosdep install pr2_2dnav_gazebo, and I got:

sam@sam-desktop:~/code/ros$ rosdep install pr2_2dnav_gazebo
executing this script:
 set -o errexit
#No Packages to install

Then I try to open another try to use roscd but failed again... How I install any package I missed like pr2_2dnav_gazebo? Or how I install all packages on thank you~

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2011-02-24 22:59:24 -0500

joq gravatar image

updated 2011-02-24 23:03:03 -0500

ROS packages may have two kinds of dependencies: (1) system dependencies, and (2) other ROS packages. The rosdep command is for system dependencies.

When you need a ROS package that is not currently available on your system:

  • See what stack contains the package you need:

    • Stacks are the basic unit of release and installation in ROS. Installing individual packages often works, but I do not recommend it.
    • For this example, find pr2_2dnav_gazebo in the ROS wiki.
    • The containing stack is wg_robots_gazebo.
  • Check whether that stack has a released binary package for your system (if it's a supported Ubuntu distribution).

  • If so, apt-get the corresponding Debian package name:

    $ sudo apt-get install ros-diamondback-wg-robots-gazebo

  • If not, download the stack from its source repository:

    $ rosmake pr2_2dnav_gazebo --rosdep-install

edit flag offensive delete link more


In addition to the wiki page, you can also type "roslocate info stack_name", which will tell you the full version control information for it.
kwc gravatar image kwc  ( 2011-02-25 03:38:12 -0500 )edit
When I use apt-get dist-upgrade,I found that 'sudo apt-get install ros-diamondback-wg-robots-gazebo' says wg-robots-gazebo can't be found. What's the new stack for wg-robots-gazebo?
sam gravatar image sam  ( 2011-08-26 15:13:07 -0500 )edit
wg-robots-gazebo is currently not available in Diamondback due to compatibility issues.
kwc gravatar image kwc  ( 2011-08-27 11:13:41 -0500 )edit
So is there any replacement stacks? Or just losing these kind of useful functions?
sam gravatar image sam  ( 2011-08-27 14:47:41 -0500 )edit
It needs to be fixed; you could potentially install from source, but, in general, the wg_robots_gazebo stack is not a stable set of software that you should depend on.
kwc gravatar image kwc  ( 2011-08-28 06:38:14 -0500 )edit
Thank you~And I have a simple question: what's the word 'unstable' means? I have tried the example slam work correctly. It hasn't output any error or crashed.
sam gravatar image sam  ( 2011-08-28 14:03:40 -0500 )edit
unstable means you shouldn't expect the code to keep working, nor have a consistent API you can build on.
kwc gravatar image kwc  ( 2011-08-28 14:07:16 -0500 )edit

answered 2011-02-25 17:33:57 -0500

sam gravatar image

Thank you very much, It is very good way to install other stack by type "sudo apt-get install ros-cturtle-wg-robots-gazebo" or svn co xxx. And can you give me an simplest example when I should use rosdep? What I known is when my package need a dependency, I will change manifest.xml that <rosdep name="wxpython"/>

but I found that rosdep webpage says : "For example, what packages do you need in order to get the OpenGL headers on Ubuntu? (answer: libgl1-mesa-dev and libglu1-mesa-dev)."

So I summarized that to be two questions: 1. What is the main purpose to use rosdep? 2. If I want to use OpenGL, how to use rosdep to get OpenGL dependencies?

thank you~

edit flag offensive delete link more


Thank you for this information: "roslocate info stack_name",and what I found is "roslocate describe wg_robots_gazebo"
sam gravatar image sam  ( 2011-02-25 17:36:22 -0500 )edit
@sam, please ask this in a new question.
tfoote gravatar image tfoote  ( 2011-02-26 13:20:58 -0500 )edit
I don't understand...why I need to ask this? Because it's not a question, maybe it's just a typo error,and I provide the information of that. Thank you for reply.
sam gravatar image sam  ( 2011-02-27 02:07:49 -0500 )edit
@sam, (like stackoverflow and similar) attempts to organize questions and answers cleanly such that each question is separate, and more or less has only one "accepted" answer. Therefore responses are intended for comment fields, and follow on questions should be submitted separately.
Asomerville gravatar image Asomerville  ( 2011-04-28 11:15:13 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2011-02-24 18:33:33 -0500

Seen: 80,998 times

Last updated: Feb 25 '11