ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
After looking at the example package you provided (and fixing some issues with it, please make sure things compile on your own machine in the future), I believe the following is the problem (from #q69583 in fact):
from dynamic_reconfigure.parameter_generator import *
This is the line you would use for the old version of dynamic_reconfigure
, ie: the one for rosbuild
. For Catkin, the line should read:
from dynamic_reconfigure.parameter_generator_catkin import *
note the _catkin
suffix there.
I would suggest to take a look at the How to Write Your First .cfg File tutorial, just to see whether the .cfg
file contains some other rosbuild
-isms.
2 | No.2 Revision |
After looking at the example package you provided (and fixing some issues with it, please make sure things compile on your own machine in the future), I believe the following is the problem (from #q69583 in fact):
from dynamic_reconfigure.parameter_generator import *
This is the line you would use for the old version of dynamic_reconfigure
, ie: the one for rosbuild
. For Catkin, the line should read:
from dynamic_reconfigure.parameter_generator_catkin import *
note the _catkin
suffix there.
I would suggest to take a look at the How to Write Your First .cfg File tutorial, just to see whether the .cfg
file contains some other rosbuild
-isms.
Edit: changes to the pkg and files I had to make:
.cfg
file was not executableStart()
prototype in the .cpp
file did not agree with the one in the headerStop()
in the .cpp
file included an extra S
, prefixed to the class nameCMakeLists.txt
referenced Boost
twice without a find_package(Boost ..)
anywhereCMakeLists.txt
referenced a non-existing include
directoryIn addition, with the Catkin version of the dynamic_reconfigure
generator, the cfg/cpp
directory should not be on the include path any longer.