Ask Your Question
0

catkin_make install and dynamic_reconfigure issue

asked 2018-01-10 06:03:34 -0600

tanasis gravatar image

Hello, I am getting this weird behavior under ROS Indigo:

  • I am using dynamic_reconfigure: e.g. cfg/Node.cfg
  • In CMakelists I am calling generate_dynamic_reconfigure_options()
  • Files are generated nicely, e.g. NodeConfig.h
  • catkin_make works
  • Node works in general
  • However when I do: catkin_make install I get an error that the file NodeConfigConfig.h is missing. So for some reason it adds another Config string to the generated header and naturally it cannot find it. Weird.

Any ideas what can been happening? I not getting this in other packages. And I don't know how to debug this...

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
3

answered 2018-01-10 06:06:58 -0600

gvdhoorn gravatar image

See if #q203700 helps.

edit flag offensive delete link more

Comments

Yes this was it. Name file and .cfg parameter name missmatch. Nasty error! Thanks!

tanasis gravatar imagetanasis ( 2018-01-10 07:22:25 -0600 )edit
0

answered 2018-01-10 07:27:32 -0600

tanasis gravatar image

It is related to #q203700 (thanks to @gvdhoorn).

In short: The error was inside the .cfg:

# In this line here:
exit(gen.generate(PACKAGE, "<package_name>", "<name_of_cfg>"))

So the <name_of_cfg> should be exactly as the .cfg file name! E.g.:

# Filename: SomeConfiguration.cfg
exit(gen.generate(PACKAGE, "<package_name>", "SomeConfiguration"))
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

1 follower

Stats

Asked: 2018-01-10 06:03:34 -0600

Seen: 460 times

Last updated: Jan 10 '18