|
Nav2 Navigation Stack - lyrical
lyrical
ROS 2 Navigation Stack
|
Goal Checker plugin that only checks the position difference. More...
#include <nav2_controller/include/nav2_controller/plugins/simple_goal_checker.hpp>


Public Member Functions | |
| SimpleGoalChecker () | |
| Construct a new Simple Goal Checker object. | |
| ~SimpleGoalChecker () | |
| Destroy the Simple 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 only checks the position difference.
This class can be stateful if the stateful parameter is set to true (which it is by default). This means that the goal checker will not check if the xy position matches again once it is found to be true.
Definition at line 57 of file simple_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.
Reimplemented in nav2_controller::StoppedGoalChecker.
Definition at line 182 of file simple_goal_checker.cpp.
Referenced by nav2_controller::StoppedGoalChecker::getTolerances().

|
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.
Reimplemented in nav2_controller::StoppedGoalChecker.
Definition at line 78 of file simple_goal_checker.cpp.
References updateParametersCallback(), and validateParameterUpdatesCallback().
Referenced by nav2_controller::StoppedGoalChecker::initialize().


|
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.
Reimplemented in nav2_controller::StoppedGoalChecker.
Definition at line 118 of file simple_goal_checker.cpp.
References isGoalXYReached().
Referenced by nav2_controller::StoppedGoalChecker::isGoalReached().


|
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.
Reimplemented in nav2_controller::StoppedGoalChecker.
Definition at line 146 of file simple_goal_checker.cpp.
Referenced by isGoalReached(), and nav2_controller::StoppedGoalChecker::isGoalXYReached().

|
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 235 of file simple_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 210 of file simple_goal_checker.cpp.
Referenced by initialize().
