Ask Your Question
3

How to install dynamic_reconfigure generated header file

asked 2015-02-24 09:35:41 -0600

bgoldfai gravatar image

updated 2015-02-24 10:14:00 -0600

I am trying to add a dynamic_reconfigure server to my node. catkin_make is successful, including the generation of the .h file for my .cfg file, but catkin_make install generates the error:

file INSTALL cannot find "/devel/include/customConfigFile.h"

The customConfigFile.h is generated in my package, but is not ever moved over to devel/. I could not find anything relevant mentioned in the dynamic_reconfigure tutorials. How should I install the generated header file?

I'm running Indigo and Ubuntu 14.04.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
6

answered 2015-02-24 11:31:49 -0600

gvdhoorn gravatar image

I had the same issue some time ago.

Headers (and Python files) generated by dynamic_reconfigure have their install rules auto-generated as well (see dynamic_reconfigure-macros.cmake, lines 52 and 53).

The name for the files is set some lines earlier (just the cpp line here):

set(_output_cpp ${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_INCLUDE_DESTINATION}/${_cfgonly}Config.h)

If I remember correctly, I had an error in my .cfg file: the third parameter of the gen.generate(..) call did not match the filename of my .cfg. This led the CMake macro to generate a wrong filename (I had double ConfigConfig.h), causing the cannot find .. error upon installing.

You might want to make sure all the names you specified are consistent with actual and generated filenames.

edit flag offensive delete link more

Comments

Thanks I went through all the parameters in my .cfg file again and found a capitalization error in one. Successfully installs now.

bgoldfai gravatar imagebgoldfai ( 2015-02-24 14:34:14 -0600 )edit

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-02-24 09:35:41 -0600

Seen: 1,675 times

Last updated: Feb 24 '15