Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong parameter value (configurable) loaded in python node #69

Open
RiccardoGiubilato opened this issue Nov 25, 2020 · 0 comments
Open

Comments

@RiccardoGiubilato
Copy link

I have a parameter defined like this in the .param file:

gen.add("heightMapGridResolution", description="...",  paramtype="double", default=0.1, configurable=True)

If I load the parameters in a C++ node, everything works as expected: the parameter is loaded either as the default or as the one specified in the .yaml file

If I load the parameter in a python node however, the parameter is loaded as:

'heightMapGridResolution': '-std::numeric_limits<double>::infinity()'

which corresponds to:

__min__.heightMapGridResolution = -std::numeric_limits<double>::infinity();

in the automatically generated paramConfig.h, instead of

__default__.heightMapGridResolution = 0.1;

any idea of what is happening there? Is that a rosparam_handler issue or a dynamic_reconfigure issue?

thanks!!

PS: This does not happen with configurable parameters of type std::string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant