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

Include header files in Catkin

asked 2013-07-01 00:23:34 -0600

dneuhold gravatar image


I am trying to include multiple header files with CATKIN. Therefore, I used include_directories in my CMakeList.txt as shown below:



Now, both includes have additional dependencies and therefore require other directories to be included. Since there is quite a number of directories to include, I need to get away of doing this per hand.

My question now: Is there a way to recursively search for other dependencies and automatically include them? I appreciate every hint and thank everybody for helping me!

Yours, sincerely


edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-07-01 07:24:07 -0600

Dirk Thomas gravatar image

updated 2013-07-01 07:26:28 -0600

A catkin package should not depend on rosbuild packages. This is not a supported use case.

edit flag offensive delete link more


That is it should not depend on rosbuild packages. (non-catkin could include system type dependencies)

William gravatar image William  ( 2013-07-01 07:25:02 -0600 )edit

What @Dirk Thomas is saying is that as long as navigation is not a catkin package, then to depend on it you will need to use rosbuild. Navigation will be catkinized in Hydro.

William gravatar image William  ( 2013-07-01 07:27:06 -0600 )edit

answered 2013-07-01 18:52:53 -0600

dneuhold gravatar image

OK, thank you both for this quick answer! So I will go on working with rosbuild.

Thank you!

edit flag offensive delete link more

Question Tools


Asked: 2013-07-01 00:23:34 -0600

Seen: 911 times

Last updated: Jul 01 '13