-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Redesign AMCL dynamic parameters pattern #5621
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
Redesign AMCL dynamic parameters pattern #5621
Conversation
Signed-off-by: mini-1235 <[email protected]>
Signed-off-by: mini-1235 <[email protected]>
|
Otherwise LGTM |
|
I also noticed that it is better to put in the If these callbacks are added during Also, we are only checking the value and not the full parameter name here navigation2/nav2_graceful_controller/src/parameter_handler.cpp Lines 153 to 158 in 62ebc54
|
Isn't that already the case?
Because this should only be addressing the graceful parameters: navigation2/nav2_graceful_controller/src/parameter_handler.cpp Lines 149 to 151 in 62ebc54
That is fine as long as all double values cannot be negative. That is not generically true, but is for this particular controller's parameters. |
Codecov Report❌ Patch coverage is
... and 9 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Yes for AMCL, but not for RPP and Graceful, which is something I have overlooked in my last PR #5600, I fixed this in the latest commit
I have added the skip for Graceful, RPP and AMCL. Please take a look again
Let's say my config is: Then, Rotation shim and Graceful share the same namespace, so it's not skipped. This is not related to this PR, but something I noticed when refactoring rotation shim |
|
I cannot find the test directory for AMCL, do I need to increase the code coverage? |
Ah... anything we should do about that?
if you'd like to. Since it was missing in the first place, I would accept just testing it manually to make sure the dynamic parameter updates / rejections work. If you'd like to add a simple test to exercise it, I've be more than happy to have that :-) |
nav2_graceful_controller/include/nav2_graceful_controller/parameter_handler.hpp
Outdated
Show resolved
Hide resolved
Signed-off-by: mini-1235 <[email protected]>
Signed-off-by: mini-1235 <[email protected]>
I don’t have a clean solution in mind. If we check the full parameter name, it would likely solve the issue(assuming there are no overlapping parameters between the Rotation Shim and other controllers) but that would lead to code duplication. Alternatively, we could add a namespace for the primary controller, so the plugin_name would be FollowPath.primary_controller. Does that make sense to you? |
|
That would make sense. We could pass in the We'd just need to update the migration guide / configuration guide for the rotation shim controller to make this clear. Good idea :-) |
Ok, will do this week |
Basic Info
Description of contribution in a few bullet points
Description of documentation updates required from your changes
Description of how this change was tested
Future work that may be required in bullet points
For Maintainers:
backport-*.