Dynamic reconfigure default to infinity

asked 2015-06-02 04:05:11 -0600

Hi, I want to have a dynamic reconfigure server in my node, but I would like some of the parameters to default to infinity (instead of just a very large value). Is this possible?

Thanks!

edit retag flag offensive close merge delete

Comments

Nobody knows whether this is possible?

Javier V. Gómez gravatar imageJavier V. Gómez ( 2015-06-26 01:43:52 -0600 )edit

Well Python does support infinity (use float("inf")), but I'm not sure what that will do with dynamic_reconfigure if you configure it as the default for a field. Also: I'm not sure that is a valid value for sliders fi.

gvdhoorn gravatar imagegvdhoorn ( 2015-06-26 02:07:10 -0600 )edit

You mean to write in the .cfgfloat("inf")? That is my question about, what about sliders, and also upper and lower bounds. I think it is not possible but just wanted to be sure. Probably the only way of doing this is to set an additional flag as "inifinity_param1" or something like that.

Javier V. Gómez gravatar imageJavier V. Gómez ( 2015-06-26 02:36:16 -0600 )edit
1

You can try and see what happens. About a year ago I opened an issue for a rqt-reconfigure agnostic double editor that would be useful to many rqt plugins. So far no dev time has been spent on it.

Adolfo Rodriguez T gravatar imageAdolfo Rodriguez T ( 2015-06-29 02:12:03 -0600 )edit