|
Nav2 Navigation Stack - lyrical
lyrical
ROS 2 Navigation Stack
|
Goal Checker plugin that only checks XY position, ignoring orientation. More...
#include <nav2_controller/include/nav2_controller/plugins/position_goal_checker.hpp>


Public Member Functions | |
| PositionGoalChecker () | |
| Construct a new Position Goal Checker object. | |
| ~PositionGoalChecker () | |
| Destroy the Position 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 XY position, ignoring orientation.
Definition at line 33 of file position_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 134 of file position_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 53 of file position_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 90 of file position_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 97 of file position_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 191 of file position_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 166 of file position_goal_checker.cpp.
Referenced by initialize().
