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

How to make rosbuild package depend on catkin package?

asked 2013-11-26 22:14:47 -0500

updated 2013-12-02 06:59:03 -0500

In my rosbuild package I have a dependency one of my catkin packages:

<depend package="myCatkinPackage"/>

Calling rosmake myRosbuildPackage generates an error since the catkin package was not found. I can roscd to both catkin and rosbuild packages. I tried overlaying my rosbuild ws on top of my catkin ws:

$ cd ~/path/to/rosbuild_ws
$ rosws init . ~/path/to/catkin_ws/devel
$ source

Now it does not find any rosbuild packages (only the catkin_ws is in the ROS_PACKAGE_PATH). What is the correct way of depending on catkin packages from rosbuild?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-11-27 03:30:10 -0500

I figured out a way to get it to work without involving rosws and setupfiles. I just added the following line to bashrc:

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:~/path/to/catkin_ws/devel/lib/pkgconfig
edit flag offensive delete link more


This looks like a hack. The principle of what you were trying is correct: Overlay the catkin_ws from the rosbuild one.

dornhege gravatar image dornhege  ( 2013-11-27 05:54:18 -0500 )edit

This is basically what does (but it does not add it to bashrc of course). On top of that, the setup file also changes ROS_PACKAGE_PATH to point only on catkin_ws (but not rosbuild_ws), which is kind of counterproductive. The best thing with my solution is that it works ;-)

Ola Ringdahl gravatar image Ola Ringdahl  ( 2013-11-27 06:25:12 -0500 )edit

It just seems to me that should do everything you need (e.g. correct ROS_PACKAGE_PATH) and if it doesn't the setup is somewhat wrong, which might get you into trouble later.

dornhege gravatar image dornhege  ( 2013-11-27 22:42:55 -0500 )edit

Question Tools

1 follower


Asked: 2013-11-26 22:14:47 -0500

Seen: 371 times

Last updated: Nov 27 '13