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

Dynamic param patterns #4971

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

Nils-ChristianIseke
Copy link
Contributor

@Nils-ChristianIseke Nils-ChristianIseke commented Mar 7, 2025


Basic Info

Info Please fill out this column
Ticket(s) this addresses #4907
Primary OS tested on Ubuntu
Robotic platform tested on None
Does this PR contain AI generated software? No

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:

  • Check that any new parameters added are updated in docs.nav2.org
  • Check that any significant change is added to the migration guide
  • Check that any new features OR changes to existing behaviors are reflected in the tuning guide
  • Check that any new functions have Doxygen added
  • Check that any new features have test coverage
  • Check that any new plugins is added to the plugins page
  • If BT Node, Additionally: add to BT's XML index of nodes for groot, BT package's readme table, and BT library lists

@SteveMacenski I hope I understood the ticket correctly. I will continue to work on the rest of the codebase if these changes are the expected ones :).

Copy link

codecov bot commented Mar 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
...ated_pure_pursuit_controller/parameter_handler.hpp 100.00% <ø> (ø)
..._pure_pursuit_controller/src/parameter_handler.cpp 94.66% <100.00%> (+0.30%) ⬆️

... and 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@SteveMacenski SteveMacenski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise, looks good to me! It might be valuable as part of this work to also add in other parameter validations while we're making these changes and auditing dynamic parameters. For example:

  • Are all parameters set as dynamic parameters? If not, should those missing ones be dynamic?
  • Are there other range checks that should be made for parameters?

It might be worth adding to the ticket a checklist of all the nodes that need updating and we can have that discussion for each to make sure we fill any obvious gaps currently missing due to updates over time where parameters were mistakenly not added or some validation checks that might be good to have

Signed-off-by: Nils-ChristianIseke <[email protected]>
Copy link
Member

@SteveMacenski SteveMacenski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise, this is a good template to use for other future ports!


rcl_interfaces::msg::SetParametersResult
ParameterHandler::dynamicParametersCallback(
// Follow up on this example: https://github.com/ros2/demos/blob/rolling/demo_nodes_cpp/src/parameters/set_parameters_callback.cpp
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove comment

Signed-off-by: Nils-ChristianIseke <[email protected]>
@Nils-ChristianIseke
Copy link
Contributor Author

@SteveMacenski i am not sure if i like the approach of 589474c. What is your opinion on it?

This reverts commit 589474c.

Signed-off-by: Nils-ChristianIseke <[email protected]>
Signed-off-by: Nils-ChristianIseke <[email protected]>
Copy link
Contributor

mergify bot commented Mar 13, 2025

@Nils-ChristianIseke, your PR has failed to build. Please check CI outputs and resolve issues.
You may need to rebase or pull in main due to API changes (or your contribution genuinely fails).

Copy link
Contributor

mergify bot commented Mar 13, 2025

@Nils-ChristianIseke, your PR has failed to build. Please check CI outputs and resolve issues.
You may need to rebase or pull in main due to API changes (or your contribution genuinely fails).

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

Successfully merging this pull request may close these issues.

2 participants