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

Why doesn't rospack list runtime dependencies?

asked 2019-09-21 21:38:14 -0600

nbro gravatar image

updated 2019-09-22 07:20:17 -0600

I have the following dependencies specified in the package.xml file






Then I issue catkin build inside my workspace. I also do rosdep install my_package. However, when I do rospack depends1 my_package, I only see message_filters, rosbag, rospy and tf. Why is that the case?

edit retag flag offensive close merge delete

1 Answer

Sort by ┬╗ oldest newest most voted

answered 2019-09-22 05:16:23 -0600

gvdhoorn gravatar image

updated 2019-09-22 05:16:45 -0600

Why doesn't rospack list runtime dependencies?

it does, but rospack only lists dependencies of your package that are ROS packages.

That's why you "only see message_filters, rosbag, rospy and tf" when you ran rospack depends1 my_package.

If you want to list system dependencies -- which your python-* keys are -- you'd need to run rosdep.

rospack does have a proxy for that, so you should get the output you are looking for by running:

rospack rosdep my_package

For roscpp, we get:

user@machine:/# rospack rosdep roscpp
name: apr
name: boost
name: cmake
name: google-mock
name: gtest
name: libconsole-bridge-dev
name: log4cxx
name: pkg-config
name: python-argparse
name: python-catkin-pkg
name: python-empy
name: python-mock
name: python-nose
name: python-yaml

while we get a different list with just rospack depends:


which are the ROS packages that roscpp depends on.

Please, do not tell me that I need to do pip install pandas, when there is this mentioned article!

Using pip is never something anyone should recommend, especially not on platforms with a proper package manager.

edit flag offensive delete link more


You did not answer my question about not being able to import pandas, even if I did rosdep install my_package.

nbro gravatar image nbro  ( 2019-09-22 06:49:08 -0600 )edit

The question title is:

Why doesn't rospack list runtime dependencies?

I explained what you observed.

gvdhoorn gravatar image gvdhoorn  ( 2019-09-22 07:09:58 -0600 )edit

Question Tools

1 follower


Asked: 2019-09-21 21:38:14 -0600

Seen: 133 times

Last updated: Sep 22 '19