|
Nav2 Navigation Stack - lyrical
lyrical
ROS 2 Navigation Stack
|
Goal Checker plugin that checks progress along the axis defined by the last segment of the path to the goal. More...
#include <nav2_controller/include/nav2_controller/plugins/axis_goal_checker.hpp>


Public Member Functions | |
| AxisGoalChecker () | |
| Construct a new Axis Goal Checker object. | |
| ~AxisGoalChecker () | |
| Destroy the Axis Goal Checker object. | |
| void | initialize (const nav2::LifecycleNode::WeakPtr &parent, const std::string &plugin_name, const std::shared_ptr< nav2_costmap_2d::Costmap2DROS > costmap_ros) override |
| Initialize the goal checker. More... | |
| void | reset () override |
| Reset the goal checker state. | |
| bool | isGoalReached (const geometry_msgs::msg::Pose &query_pose, const geometry_msgs::msg::Pose &goal_pose, const geometry_msgs::msg::Twist &velocity, const nav_msgs::msg::Path &transformed_global_plan) override |
| Check if the goal is reached. More... | |
| bool | getTolerances (geometry_msgs::msg::Pose &pose_tolerance, geometry_msgs::msg::Twist &vel_tolerance, double &path_length_tolerance) override |
| Get the position and velocity tolerances. More... | |
| bool | isGoalXYReached (const geometry_msgs::msg::Pose &query_pose, const geometry_msgs::msg::Pose &goal_pose, const geometry_msgs::msg::Twist &velocity, const nav_msgs::msg::Path &transformed_global_plan) override |
| Check if XY goal position has been reached (without considering yaw) More... | |
Protected Member Functions | |
| rcl_interfaces::msg::SetParametersResult | validateParameterUpdatesCallback (const std::vector< rclcpp::Parameter > ¶meters) |
| Validate incoming parameter updates before applying them. This callback is triggered when one or more parameters are about to be updated. It checks the validity of parameter values and rejects updates that would lead to invalid or inconsistent configurations. More... | |
| void | updateParametersCallback (const std::vector< rclcpp::Parameter > ¶meters) |
| Apply parameter updates after validation This callback is executed when parameters have been successfully updated. It updates the internal configuration of the node with the new parameter values. More... | |
Additional Inherited Members | |
Public Types inherited from nav2_core::GoalChecker | |
| typedef std::shared_ptr< nav2_core::GoalChecker > | Ptr |
Goal Checker plugin that checks progress along the axis defined by the last segment of the path to the goal.
This class can be configured to allow overshoot past the goal if the is_overshoot_valid parameter is set to true (which is false by default).
Definition at line 38 of file axis_goal_checker.hpp.
|
overridevirtual |
Get the position and velocity tolerances.
| pose_tolerance | Output parameter for pose tolerance |
| vel_tolerance | Output parameter for velocity tolerance |
| path_length_tolerance | Output parameter for path length tolerance |
Implements nav2_core::GoalChecker.
Definition at line 178 of file axis_goal_checker.cpp.
|
overridevirtual |
Initialize the goal checker.
| parent | Weak pointer to the lifecycle node |
| plugin_name | Name of the plugin |
| costmap_ros | Shared pointer to the costmap |
Implements nav2_core::GoalChecker.
Definition at line 51 of file axis_goal_checker.cpp.
References updateParametersCallback(), and validateParameterUpdatesCallback().

|
overridevirtual |
Check if the goal is reached.
| query_pose | Current pose of the robot |
| goal_pose | Target goal pose |
| velocity | Current velocity of the robot |
| transformed_global_plan | The transformed global plan |
Implements nav2_core::GoalChecker.
Definition at line 85 of file axis_goal_checker.cpp.
References isGoalXYReached().

|
overridevirtual |
Check if XY goal position has been reached (without considering yaw)
| query_pose | The pose to check |
| goal_pose | The pose to check against |
| velocity | The robot's current velocity |
| transformed_global_plan | The global plan after being processed by the path handler |
Implements nav2_core::GoalChecker.
Definition at line 95 of file axis_goal_checker.cpp.
Referenced by isGoalReached().

|
protected |
Apply parameter updates after validation This callback is executed when parameters have been successfully updated. It updates the internal configuration of the node with the new parameter values.
| parameters | List of parameters that have been updated. |
Definition at line 231 of file axis_goal_checker.cpp.
Referenced by initialize().

|
protected |
Validate incoming parameter updates before applying them. This callback is triggered when one or more parameters are about to be updated. It checks the validity of parameter values and rejects updates that would lead to invalid or inconsistent configurations.
| parameters | List of parameters that are being updated. |
Definition at line 206 of file axis_goal_checker.cpp.
Referenced by initialize().
