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

How can I list the dependency tree of a catkin package?

asked 2013-02-10 12:19:47 -0500

Dereck gravatar image

I am installing ROS from source on a raspberry pi, which has worked well so far.

I have ros_comm built and can launch roscore, which is wonderful. I want to build joystick_drivers next and here lies the problem: Is there a way to automatically download the source for the unmet ROS package dependency tree for the package I'm trying to install. Is this even possible? Or do I need to keep hitting catkin_make and fix build errors one at a time?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-02-10 15:29:31 -0500

kalectro gravatar image

Dereck,

You can have the dependency generated online

cd catkin_ws/src
wstool merge http://packages.ros.org/web/rosinstall/generate/raw/groovy/joystick_drivers

You can replace joystick_drivers with any ROS package. It will resolve the full tree but will only merge the missing packages into your source folder. Do no forget to

wstool update

once you merged all packages

Kai

edit flag offensive delete link more

Comments

Perhaps I'm not setting up my workspace correctly, because that command pulled in every dependency including things I already built. I built and installed ros_comm and it's dependencies in '/opt/ros/groovy' and then created a new workspace with 'wstool init ~/ws/src /opt/ros/groovy'

Dereck gravatar image Dereck  ( 2013-02-11 02:01:23 -0500 )edit

there is no need to create a new workspace. Go to the src folder where all the ros core packages are in and wstool merge the new ones. That should only pull the new packages

kalectro gravatar image kalectro  ( 2013-02-11 05:23:15 -0500 )edit

Thanks for updating the wiki, I'm giving it a rundown on an rpi right now. BTW, is it possible to use overlays with your method? I would like to avoid rebuilding everything each time I add a package to my system.

Dereck gravatar image Dereck  ( 2013-02-11 11:03:02 -0500 )edit

If you want to use overlays, you do not need to merge the new sources, just initialize wstool with the link: wstool init src http://packages.ros.org/web/rosinstall/generate/raw/groovy/joystick_drivers

kalectro gravatar image kalectro  ( 2013-02-11 11:44:23 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2013-02-10 12:19:47 -0500

Seen: 1,838 times

Last updated: Feb 10 '13