-
Notifications
You must be signed in to change notification settings - Fork 727
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
Add reconfigurable parameters to disparity node #490
Conversation
This change uncovered a bug. See #491 for a fix (it should resolve the CI failure). |
I can definitely live with this, but another option would be to have lambdas for the registered callbacks when you setup the on change parameter stuff. That would let you register unique lambdas for each to effect that parameter's client rather than the long If you prefer this way, I don't have an issue with it but I wanted to check that you intentionally chose this way for some reason you prefer. I generally avoid lambdas, but that particular use-case is compelling. |
@SteveMacenski I'm not sure I follow what you're suggesting. Any callback we register with |
The parameters are declared with descriptors containing constraints. A callback is used to update the matcher when a parameter is changed. Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
62fb9ab
to
7123901
Compare
Rebased on |
Also, I opted to not use |
Ok that’s fine, just wanted to highlight the option |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Follow-up to #486
The parameters are declared with descriptors containing constraints. A callback is used to update the matcher when a parameter is changed.
Also removed the old dynamic reconfigure config file.
The parameter names and defaults are the same as ROS 1, with the following exceptions:
fullDP
was renamed tofull_dp
disp12MaxDiff
was renamed todisp12_max_diff
both renamed for consistency with other parameter names.