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

Default value and group reconfigurable variable #172

Open
Teusner opened this issue Mar 25, 2021 · 1 comment
Open

Default value and group reconfigurable variable #172

Teusner opened this issue Mar 25, 2021 · 1 comment

Comments

@Teusner
Copy link

Teusner commented Mar 25, 2021

Hi,

I recently had an issue with using default values of variables in groups.

The problem is visible in the shell below. When we want to set a default value for a parameter belonging to a group, the initialization of this parameter is not possible if we try to access the default value with:

config.groups.my_group.double_param

But it is quite possible to access this default value via:

config.double_param
$> rosrun dynamic_reconfigure_group_issue dynamic_reconfigure_server
[ INFO] [1616676590.655748709]: Reconfigure Request: 3.200000
[ INFO] [1616676590.656599822]: Reconfigure Request via groups: 0.000000
[ INFO] [1616676590.657117207]: Spinning node
[ INFO] [1616676614.801760980]: Reconfigure Request: 4.000000
[ INFO] [1616676614.801850468]: Reconfigure Request via groups: 4.000000

This inconsistency is only present at initialization because we notice that once the value to be reconfigured has been modified, both methods provide the same (and good) value.

I propose a minimal functional example presenting the problem encountered on a repository on my Github

@YoushaaMurhij
Copy link

same here!

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

2 participants