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

Dynamic reconfigure GUI improvements [closed]

asked 2014-03-06 21:05:30 -0600

Miquel Massot gravatar image

updated 2014-03-07 02:38:34 -0600

Hi all,

I'm currently working on a camera driver and I was wondering if any of the ideas I list here are even possible:

  • Group some dynamic_reconfigure parameters into groups or "boxes" so that the end user can see that those parameters are related. Ex: Acquisition params, Trigger params, White balance params...
  • Add tooltips or a info box whose content changes when the mouse hovers a particular parameter in the dynamic reconfigure gui.

And I've seen in the tutorials that it's possible to have more than one config file in one ROS package. If the package contains more than one node, then the relationship is easy: one cfg file for each, but could it be possible to have more than one cfg file in the same node? Therefore, could I "group" the parameters I want in different cfg files and show them as a tree in the dynamic reconfigure gui?

I tried groups (even with prosilica_camera example) in dynamic_reconfigure but whenever I open the GUI to see the params, reconfigure_gui crashes:

$ rosrun rqt_reconfigure rqt_reconfigure 
[INFO] [WallTime: 1394202876.542782] reconf loading #1/4 0.0 / 0.0sec node=/camera/image_raw/compressed
[INFO] [WallTime: 1394202876.546365] reconf loading #2/4 0.0 / 0.0sec node=/camera/image_raw/compressedDepth
[INFO] [WallTime: 1394202876.547479] reconf loading #3/4 0.0 / 0.0sec node=/camera/image_raw/theora
[INFO] [WallTime: 1394202876.551956] reconf loading #4/4 0.0 / 0.01sec node=/prosilica_driver
Traceback (most recent call last):
  File "/opt/ros/hydro/lib/python2.7/dist-packages/rqt_reconfigure/node_selector_widget.py", line 248, in _selection_changed_slot
    self._selection_selected(index_current, rosnode_name_selected)
  File "/opt/ros/hydro/lib/python2.7/dist-packages/rqt_reconfigure/node_selector_widget.py", line 198, in _selection_selected
    item_widget = item_child.get_dynreconf_widget()
  File "/opt/ros/hydro/lib/python2.7/dist-packages/rqt_reconfigure/treenode_qstditem.py", line 148, in get_dynreconf_widget
    self._param_name_raw)
  File "/opt/ros/hydro/lib/python2.7/dist-packages/rqt_reconfigure/dynreconf_client_widget.py", line 57, in __init__
    group_desc, node_name)
  File "/opt/ros/hydro/lib/python2.7/dist-packages/rqt_reconfigure/param_groups.py", line 152, in __init__
    self._create_node_widgets(config)
  File "/opt/ros/hydro/lib/python2.7/dist-packages/rqt_reconfigure/param_groups.py", line 198, in _create_node_widgets
    widget = eval(_GROUP_TYPES[group['type']])(self.updater, group)
  File "/opt/ros/hydro/lib/python2.7/dist-packages/rqt_reconfigure/param_groups.py", line 247, in __init__
    super(BoxGroup, self).__init__(updater, config)
TypeError: __init__() takes exactly 4 arguments (3 given)
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 2014-03-10 00:59:49

Comments

1

the tooltip / info box idea seems useful enough. Maybe you could open an issue on github for future reference.

demmeln gravatar image demmeln  ( 2014-03-07 14:08:39 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-03-07 04:23:21 -0600

Dirk Thomas gravatar image

The rqt_reconfigure GUI currently does not work very well with groups and there is an open ticket about it: https://github.com/ros-visualization/...

edit flag offensive delete link more

Comments

Thanks Dirk, that's clearly the reason. I'll close the question.

Miquel Massot gravatar image Miquel Massot  ( 2014-03-10 00:58:18 -0600 )edit
0

answered 2014-03-06 21:20:50 -0600

ahendrix gravatar image

dynamic_reconfigure has some support for this, but it's very poorly documented and a little quirky.

There's an overview of the API in the API review

For a more concrete example, I recently added experimental support for this to the prosilica driver

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-03-06 21:05:30 -0600

Seen: 1,149 times

Last updated: Mar 07 '14