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

Automatic installation of dependencies

asked 2011-04-15 03:25:46 -0500

updated 2013-01-17 00:49:28 -0500

Benoit Larochelle gravatar image

Hi all,

my package depends on the openni_kinect stack, which can be installed either from source or with apt.

I would like to write instructions for users, so that they can download and build my package and openni_kinect is automatically installed if necessary. So I added openni_kinect (I also tried with openni_camera) to my package's manifest.xml. I tried rosdep install <pkg-name>, which says:

Failed to find stack for package [openni_kinect]
Failed to load rosdep.yaml for package [openni_kinect]:Cannot locate installation of package openni_kinect: [rospack] couldn't find package [openni_kinect]. ROS_ROOT[/opt/ros/diamondback/ros] ROS_PACKAGE_PATH[/home/endres/Phd/rospacks:/opt/ros/diamondback/stacks]

The same happens for openni_camera and accordingly rosmake --rosdep-install fails, in either case too. Also rosdep.yaml files seem to be meant for external libraries, not ros packages. rosinstall in contrast seems to be for source distributions. Is there something I am missing, or do you have to install ros-dependencies explicitly?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2011-04-15 04:54:20 -0500

AHornung gravatar image

rosdeps are indeed for system dependencies (libraries), while the <depend package=.../> tags in the manifest are for ROS dependencies. Unfortunately, they do not automatically get resolved to Debian packages if you installed ROS through apt (though that would be nice to have).

Once your package / stack is released its stack dependencies will get mapped to dependencies on ROS Debian packages, so that if you install it all stacks it depends on will get installed as well.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-04-15 03:25:46 -0500

Seen: 1,966 times

Last updated: Apr 15 '11