Dear all, I am a newbie of ROS, and I am searching for the answer to this simple question since this morning. I have a rosbuild package, that generates some custom messages (headers are generated accordingly) and another, catkin-based, package that should use them. How should I do? In particular, I need to know:
- how to make the catkin build system aware of the location of the message headers
- how to be sure that the catkin build system will link the messages to my node
Thanks,
Originally posted by madmage on ROS Answers with karma: 293 on 2014-02-13
Post score: 1
Original comments
Comment by dornhege on 2014-02-13:
As far as I know that's impossible as catkin packages can only depend on catkin packages and not rosbuild packages.
If that is correct, the simplest solution would be to convert the message package to catkin.
Comment by madmage on 2014-02-13:
Hi Christian, glad to see you here ;-)
I see what you say http://wiki.ros.org/catkin/migrating_from_rosbuild#Prerequisites , granted that the only solution is to convert the rosbuild package to catkin, how do I add this dependency to the first package, so that I can include/link to my nodes?
Comment by dornhege on 2014-02-13:
The other way around works: rosbuild packages can depend on catkin packages.
Comment by madmage on 2014-02-13:
Ok, I finally have things working by hacking the CMakeLists.txt (with something similar to find_package). I just expected that catkin, newest, was back-compatible, instead of being the oldest forward-compatible :-D. Thanks.
Comment by dornhege on 2014-02-14:
It's somewhat the other way around :) If you can add what you did as an answer that might be helpful for others that stumble upon this.