ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Multiple or Conditional Configuration Parameters

asked 2011-03-24 05:02:40 -0500

Enrique gravatar image

updated 2011-04-22 04:19:34 -0500

joq gravatar image


First of all, I must say that I'm not sure how to organize/design this. So, I'm going to explain it with an example:

I have an application that detects features using OpenCV features detectors. I've allowed to dynamically reconfigure the feature detector (one of: SURF, SIFT, GFTT, ...), coding a cfg file as explained here.

Now I want to do the same for the parameters of each feature detectors, but I'm not sure what can I do with ROS support.

  1. Could I make the parameters of each feature detector to appear (in reconfiguregui) conditionally, depending on the current feature detector selected?

  2. If not, is it possible (appropiate) to have serveral cfg files in a single package? I think, this way I could run several instances of reconfiguregui, one for a feature detector.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-04-22 04:27:16 -0500

joq gravatar image

updated 2011-04-22 16:06:10 -0500

  1. Dynamic reconfigure currently does not support hiding parameters based on other settings. That would be wonderful to have. There is an enhancement ticket requesting it.

  2. It is possible for a package to contain several cfg files. And, it must also be possible to access them somehow from within a single node, since nodelets can do that. I don't know exactly how to do it, but would suggest experimenting with defining each callback in a separate subordinate namespace.

edit flag offensive delete link more


Each callback in a separate subordinate namespace works, even with a single-threaded spinner. Thanks!
Enrique gravatar image Enrique  ( 2011-04-25 23:30:38 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2011-03-24 05:02:40 -0500

Seen: 406 times

Last updated: Apr 22 '11