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

dynamic_reconfigure and catkin - is tutorial correct?

asked 2013-02-19 04:37:05 -0500

TommyP gravatar image

I tried to follow:

this tuturial

the catkin version but following these instructions give:

tompe@heyer:~/lrs_ws/src/lrs_firefly_usb$ cfg/ffcam.cfg
Traceback (most recent call last):
  File "cfg/ffcam.cfg", line 10, in <module>
    gen = ParameterGenerator()
  File "/opt/ros/groovy/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py", line 234, in __init__
    self.dynconfpath = sys.argv[1]  # FIXME this is awful
IndexError: list index out of range

if I just try to run the script and it does not work at all in catkin (no files generated). Replacing

from dynamic_reconfigure.parameter_generator_catkin import *

with

from dynamic_reconfigure.parameter_generator import *

works better since it at least generates the files. So is this a bug or not?

edit retag flag offensive close merge delete

Comments

I am having problems catkinizing a dynamic_reconfigure server, too. But, in my case I only get the files generated with parameter_generator_catkin().

joq gravatar image joq  ( 2013-02-20 10:57:22 -0500 )edit
1

There is something strange going on here, and we need to get to the bottom of it.

joq gravatar image joq  ( 2013-02-22 03:49:45 -0500 )edit

I'm having the same problem. Removing _catkin does work via python script but does not solve the catkin_make-error.

Luke_ROS gravatar image Luke_ROS  ( 2014-07-29 09:20:45 -0500 )edit

Are there any updates for this problem?

bajo gravatar image bajo  ( 2014-11-11 04:44:30 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-07-31 13:35:53 -0500

esteve gravatar image

updated 2014-07-31 13:36:26 -0500

Generator scripts can't be called directly, you'll need make sure your CMakeLists.txt file contains the following line:

generate_dynamic_reconfigure_options(cfg/ffcam.cfg)

However, ParameterGenerator should output a more helpful message, I filed a ticket at https://github.com/ros/dynamic_reconf...

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-02-19 04:37:05 -0500

Seen: 1,215 times

Last updated: Nov 11 '14