Ask Your Question

Include header files in Catkin

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

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 -0500

Dirk Thomas gravatar image

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

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

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


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

Seen: 838 times

Last updated: Jul 01 '13