|
Nav2 Navigation Stack - lyrical
lyrical
ROS 2 Navigation Stack
|
This plugin is used to check the position of the robot to make sure that it is actually progressing towards a goal. More...
#include <nav2_controller/include/nav2_controller/plugins/simple_progress_checker.hpp>


Public Member Functions | |
| SimpleProgressChecker ()=default | |
| Construct a new Simple Progress Checker object. | |
| ~SimpleProgressChecker () | |
| Destroy the Simple Progress Checker object. | |
| void | initialize (const nav2::LifecycleNode::WeakPtr &parent, const std::string &plugin_name) override |
| Initialize the goal checker. More... | |
| bool | check (geometry_msgs::msg::PoseStamped ¤t_pose) override |
| Checks if the robot has moved compare to previous. More... | |
| void | reset () override |
| Reset the progress checker state. | |
Protected Member Functions | |
| bool | isRobotMovedEnough (const geometry_msgs::msg::Pose &pose) |
| Calculates robots movement from baseline pose. More... | |
| void | resetBaselinePose (const geometry_msgs::msg::Pose &pose) |
| Resets baseline pose with the current pose of the robot. More... | |
| 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... | |
Static Protected Member Functions | |
| static double | pose_distance (const geometry_msgs::msg::Pose &, const geometry_msgs::msg::Pose &) |
| Calculates distance between two poses. More... | |
Additional Inherited Members | |
Public Types inherited from nav2_core::ProgressChecker | |
| typedef std::shared_ptr< nav2_core::ProgressChecker > | Ptr |
This plugin is used to check the position of the robot to make sure that it is actually progressing towards a goal.
Definition at line 34 of file simple_progress_checker.hpp.
|
overridevirtual |
Checks if the robot has moved compare to previous.
| current_pose | Current pose of the robot |
Implements nav2_core::ProgressChecker.
Definition at line 70 of file simple_progress_checker.cpp.
References isRobotMovedEnough(), and resetBaselinePose().

|
overridevirtual |
Initialize the goal checker.
| parent | Weak pointer to the lifecycle node |
| plugin_name | Name of the plugin |
Implements nav2_core::ProgressChecker.
Definition at line 43 of file simple_progress_checker.cpp.
References updateParametersCallback(), and validateParameterUpdatesCallback().
Referenced by nav2_controller::PoseProgressChecker::initialize().


|
protected |
Calculates robots movement from baseline pose.
| pose | Current pose of the robot |
Definition at line 94 of file simple_progress_checker.cpp.
References pose_distance().
Referenced by check().


|
staticprotected |
Calculates distance between two poses.
| pose1 | First pose |
| pose2 | Second pose |
Definition at line 99 of file simple_progress_checker.cpp.
Referenced by nav2_controller::PoseProgressChecker::isRobotMovedEnough(), and isRobotMovedEnough().

|
protected |
Resets baseline pose with the current pose of the robot.
| pose | Current pose of the robot |
Definition at line 87 of file simple_progress_checker.cpp.
Referenced by nav2_controller::PoseProgressChecker::check(), and check().

|
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 135 of file simple_progress_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 110 of file simple_progress_checker.cpp.
Referenced by initialize().
