Ask Your Question
2

dynamic_reconfigure headers re-generated

asked 2012-05-08 23:30:52 -0500

Bence Magyar gravatar image

updated 2012-05-09 22:49:55 -0500

Hello guys,

I'm experiencing a small but irritating problem with dynamic_reconfigure.

Every single time I run make or rosmake all the reconf header files get re-generated so it causes all my nodes that use them to be re-compiled even though I did not modify any of them.

At first I thought that the problem is with the end .cfg file:

exit(gen.generate(PACKAGE, "dynamic_tutorials", "Tutorials"))

So I made sure that they are all correct but they still get regenerated every single time.

I'm running on Ubuntu 10.04 and ROS Electric.

Anyone faced this problem before?

edit retag flag offensive close merge delete

Comments

Is this with Fuerte or Electric? What operating system?

joq gravatar image joq  ( 2012-05-09 03:36:25 -0500 )edit

I've had this problem in electric. I never did get around to figuring it out, or filing a bug.

Mac gravatar image Mac  ( 2012-05-09 05:44:14 -0500 )edit

Sorry for the trivial mistake, updated post with info.

Bence Magyar gravatar image Bence Magyar  ( 2012-05-09 22:51:47 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-07-02 00:12:04 -0500

christiank gravatar image

Hi,

I'm experiencing the same issue. I solved it by adding a guard to the beginning of the .cfg file, which checks whether the *Config.h file was generated after the last modification of the .cfg file. If this is the case the script is terminated without generating any files.

It looks like:

import os

me = os.path.realpath(__file__)
cpp_header = os.path.realpath(os.path.join(os.path.dirname(me), "cpp", "dynamic_tutorials", "TutorialsConfig.h"))

if os.path.exists(cpp_header) and os.path.getmtime(me) < os.path.getmtime(cpp_header):
  exit(0)
edit flag offensive delete link more

Comments

Please contact the authors so they can apply this patch to the next version of dynamic_reconfigure. http://www.ros.org/wiki/dynamic_reconfigure

Bence Magyar gravatar image Bence Magyar  ( 2012-07-04 01:17:36 -0500 )edit
1
christiank gravatar image christiank  ( 2012-07-05 01:12:33 -0500 )edit

Thanks for the ticket, this will be fixed in the upcoming release of dynamic_reconfigure, if you want you can get it now at https://kforge.ros.org/dynamicreconfig/hg

klapow gravatar image klapow  ( 2012-07-07 22:08:18 -0500 )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

Stats

Asked: 2012-05-08 23:30:52 -0500

Seen: 240 times

Last updated: Jul 02 '12