[ros-users] Dynamic reconfigure not compiling

Blaise Gassend blaise at willowgarage.com
Thu Dec 16 17:17:57 UTC 2010


Hi Koen,

> Where can I find the ParameterGenerator API that is loaded in the cfg files?

Currently there isn't one. Test.cfg contains all the basic invocations
that are relevant, so it should be easy to work by example.

> However it doesn't build, if someone has a hint:

It appears that the dependency generator is failing, because it cannot
find the roslib.msgs module. Strangely, it is an import of rospy that
is ultimately leading to the failure.

You gendeps can run it manually like this:
{{{
blaise at bnl: /opt/ros/cturtle/stacks/driver_common/dynamic_reconfigure
$ rosrun dynamic_reconfigure gendeps cfg/Test.cfg
Finding dependencies for cfg/Test.cfg
/usr/lib/python2.6/random.py
/usr/lib/python2.6/subprocess.py
....
}}}

Does running Test.cfg work?
rosrun dynamic_reconfigure Test.cfg

Can you do that import for rospython?
{{{
blaise at bnl: /opt/ros/cturtle/stacks/driver_common/dynamic_reconfigure
$ rospython
>>> import roslib.msgs
>>>
}}}

Which version of ROS are you running? I see that you seem to be
running ROS from unstable svn. Are you sure that that version is
entirely working?

Does the src/msgs directory actually exist in your roscore package?

Blaise

> ~/ros_unstable_svn/driver_common/dynamic_reconfigure $ rosmake --pre-clean
>
>  MSG: gencfg_cpp on:Test.cfg
>  Finding dependencies for
> /home/koen/ros_unstable_svn/driver_common/dynamic_reconfigure/cfg/Test.cfg
>  ***********************************************************************************
>  load_module did not return. Unable to determine dependencies for
> file listed above.
>  ***********************************************************************************
>  Traceback (most recent call last):
>    File "/home/koen/ros_unstable_svn/driver_common/dynamic_reconfigure/cmake/gendeps",
> line 64, in <module>
>      imp.load_module("__main__", f, srcfile, ('.cfg', 'U', 1))
>    File "/home/koen/ros_unstable_svn/driver_common/dynamic_reconfigure/cfg/Test.cfg",
> line 38, in <module>
>      from dynamic_reconfigure.parameter_generator import *
>    File "/home/koen/ros_unstable_svn/driver_common/dynamic_reconfigure/src/dynamic_reconfigure/__init__.py",
> line 39, in <module>
>      import rospy
>    File "/home/koen/ros_unstable_svn/ros_comm/clients/rospy/src/rospy/__init__.py",
> line 51, in <module>
>      from .client import spin, myargv, init_node, \
>    File "/home/koen/ros_unstable_svn/ros_comm/clients/rospy/src/rospy/client.py",
> line 50, in <module>
>      import roslib.msg
>  ImportError: No module named msg
>  CMake Error at cmake/cfgbuild.cmake:65 (string):
>    string sub-command REPLACE requires at least four arguments.
>  Call Stack (most recent call first):
>    cmake/cfgbuild.cmake:83 (gencfg_cpp)
>    CMakeLists.txt:12 (include)
>  -- Configuring incomplete, errors occurred!
> -------------------------------------------------------------------------------}
> [ rosmake ] Output from build of package dynamic_reconfigure written to:
> [ rosmake ]    /home/koen/.ros/rosmake/rosmake_output-20101216-135608/dynamic_reconfigure/build_output.log
> [rosmake-1] Finished <<< dynamic_reconfigure [FAIL] [ 3.66 seconds ]
> [ rosmake ] Halting due to failure in package dynamic_reconfigure.
> [ rosmake ] Waiting for other threads to complete.
> [ rosmake ] Results:
> [ rosmake ] Cleaned 26 packages.
> [ rosmake ] Built 27 packages with 1 failures.
> [ rosmake ] Summary output to directory
> [ rosmake ] /home/koen/.ros/rosmake/rosmake_output-20101216-135608
>
>
> $ svn info
> Path: .
> URL: https://code.ros.org/svn/ros-pkg/stacks/driver_common/tags/unstable/dynamic_reconfigure
> Repository Root: https://code.ros.org/svn/ros-pkg
> Repository UUID: eb33c2ac-9c88-4c90-87e0-44a10359b0c3
> Revision: 34791
> Node Kind: directory
> Schedule: normal
> Last Changed Author: blaise
> Last Changed Rev: 33791
> Last Changed Date: 2010-11-09 22:37:21 +0100 (Tue, 09 Nov 2010)
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>



More information about the ros-users mailing list