Ask Your Question

Catkin migration dynamic reconfigure

asked 2013-10-10 13:51:51 -0500

Rob gravatar image

updated 2013-10-11 00:05:08 -0500

felix k gravatar image


I'm migrating a project from rosbuild to catkin, and I'm having some problems with the files using dynamic reconfigure. Currently I'm trying to make the package "controller" which contains a configuration file called dynconfig.cfg.

I followed the migration tutorial to adapt my files, so here's what I did:

  • Removed import roslib;roslib.load_manifest(PACKAGE) in the .cfg file
  • Changed from dynamic_reconfigure.parameter_generator import * to from dynamic_reconfigure.parameter_generator_catkin import * in the .cfg file
  • Added generate_dynamic_reconfigure_options(cfg/dynconfig.cfg) to my CMakeLists.txt
  • Added the dynamic_reconfigure dependencies (as run_depend and build_depend in the package.xml as well as in find_package and catkin_package in the CMakeLists)
  • Added add_dependencies(controller controller_controller) in the CMakeLists. I'm not quite sure if this is right. I have an executable called controller in the package controller. However, I don't think that's where the error comes from.

Here's the error I get:

> make[2]: *** No rule to make target `/home/bic039/catkin_ws/src/controller/cfg/dynconfig.cfg', needed by `/home/bic039/catkin_ws/devel/include/controller/dynconfigConfig.h'.  Stop.

Does anybody have an idea where this error might come from? I've been stuck on this issue for quite a while.

Cheers, Rob

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-10-10 17:18:59 -0500

joq gravatar image

Did you remember this?

find_package(catkin REQUIRED COMPONENTS dynamic_reconfigure)

Assuming your node is named "controller", the dependencies should look more like:

add_dependencies(controller ${${PROJECT_NAME}_EXPORTED_TARGETS})

See the catkin dynamic reconfigure how-to for details.

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-10-10 13:51:51 -0500

Seen: 1,075 times

Last updated: Oct 11 '13