ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

catkin and dynamic_reconfigure: Could not run dynamic reconfigure file [closed]

asked 2013-07-29 02:47:25 -0500

Miquel Massot gravatar image

updated 2014-01-28 17:17:27 -0500

ngrennan gravatar image

Hi everyone!

I'm currently migrating package per package all the nodes and stacks we've created and I'm having some trouble with catkin and dynamic reconfigure in package camera1394stereo. I've re-followed the dynamic_reconfigure tutorials in catkin mode in ros.org, but they did not help.

I have a node and a nodelet inside a package, with its corresponding "cfg" folder in it. In the CMakeLists I have

generate_dynamic_reconfigure_options(cfg/Camera1394Stereo.cfg)

before the 'catkin_package()' line, as well as the dynamic_reconfigure dependencies in both CMakeLists and package.xml.

In my machine and in the other machines we have here at work, this package compiles and works. However, when I send my package to the build farm using bloom, this is the error I get:

CMake Error at /opt/ros/groovy/share/dynamic_reconfigure/cmake/extras.cmake:47 (message):
  Could not run dynamic reconfigure file 'cfg/Camera1394Stereo.cfg': the
  rosdep view is empty: call 'sudo rosdep init' and 'rosdep update'
Call Stack (most recent call first):
CMakeLists.txt:31 (generate_dynamic_reconfigure_options)

The output of the buildfarm is here

http://jenkins.willowgarage.com:8080/job/ros-groovy-camera1394stereo_sourcedeb/

I have already made some changes in the cfg file, such as removing the roslib dependecies, and I have re-checked the CMakeLists.txt, but I could not solve this. Has anyone faced this problem?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Miquel Massot
close date 2015-03-24 05:10:52.247539

Comments

@Dirk Thomas is this a missing dependency?

William gravatar image William  ( 2013-07-29 07:23:33 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-07-29 07:37:57 -0500

Dirk Thomas gravatar image

The file in the repo (https://github.com/srv/camera1394stereo/blob/groovy/cfg/Camera1394Stereo.cfg#L36) indicates that it imports the old version of dynamic reconfigure intended to be used only with rosbuild:

from dynamic_reconfigure.parameter_generator import *

Please take a look at the tutorial http://www.ros.org/wiki/dynamic_reconfigure/Tutorials/HowToWriteYourFirstCfgFile describing how to write the cfg file (watch out to select catkin at the top, not rosbuild). For catkin based packages the import line is subtly different:

from dynamic_reconfigure.parameter_generator_catkin import *
edit flag offensive delete link more

Comments

Thank you! I did not notice the '_catkin' end. I've now sent a pull request with this change. It was finally built!

Miquel Massot gravatar image Miquel Massot  ( 2013-07-29 20:14:00 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2013-07-29 02:47:25 -0500

Seen: 2,288 times

Last updated: Jul 29 '13