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

How to make rosbuild package depend on catkin package?

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

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

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 setup.sh

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
1

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

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

Comments

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 -0600 )edit

This is basically what setup.sh 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 -0600 )edit

It just seems to me that setup.sh 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 -0600 )edit

Question Tools

1 follower

Stats

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

Seen: 389 times

Last updated: Nov 27 '13