Skip to content

Conversation

@csy100886
Copy link


Basic Info

Info Please fill out this column
Ticket(s) this addresses #5299
Primary OS tested on Ubuntu
Robotic platform tested on N/A
Does this PR contain AI generated software? No
Was this PR description generated by AI software? N/A

Description of contribution in a few bullet points

Update declare_parameter_if_not_declared and get_parameter fields to use the new declare_or_get_parameter API for nav2_waypoint_follower

Description of documentation updates required from your changes

N/A

Description of how this change was tested

Performed linting validation using pre-commit run --all or colcon test


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
  • Should this be backported to current distributions? If so, tag with backport-*.

Signed-off-by: csy100886 <csy100886@gmail.com>
@csy100886 csy100886 force-pushed the new_param_api-nav2_waypoint_follower branch from 497bdfc to 1a79cc1 Compare November 30, 2025 04:40
Copy link
Collaborator

@mini-1235 mini-1235 left a comment

Choose a reason for hiding this comment

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

@csy100886 Please address the following items :)

Signed-off-by: csy100886 <csy100886@gmail.com>
@csy100886 csy100886 force-pushed the new_param_api-nav2_waypoint_follower branch from abb2856 to ab28ec2 Compare December 1, 2025 14:06
Signed-off-by: csy100886 <csy100886@gmail.com>
@csy100886
Copy link
Author

Thank you so much for your review!
I’m sorry for bothering you again, but I’ve incorporated your feedback and made the changes. Could you please take a quick look and let me know if I’m on the right track? 🙏

rclcpp::ParameterValue(std::string("nav2_waypoint_follower::WaitAtWaypoint")));
}

} // namespace nav2_waypoint_follower
Copy link
Member

@SteveMacenski SteveMacenski Dec 1, 2025

Choose a reason for hiding this comment

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

Why are we moving namespaces?

loop_rate_ = get_parameter("loop_rate").as_int();
waypoint_task_executor_id_ = get_parameter("waypoint_task_executor_plugin").as_string();
global_frame_id_ = get_parameter("global_frame_id").as_string();
stop_on_failure_ = nav2::declare_or_get_parameter<bool>(
Copy link
Member

Choose a reason for hiding this comment

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

Use the node->declare_or_get_parameter version. You also shouldn't need to explicitly provide the template, it should be deduced by the default argument.

Please see other PRs which have implemented this already

global_frame_ = this->declare_or_get_parameter("global_frame", std::string("map"));

@SteveMacenski
Copy link
Member

@mini-1235
Copy link
Collaborator

mini-1235 commented Dec 5, 2025

@csy100886 any updates? Also, please pull in / rebase main

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.

3 participants