35 #ifndef NAV2_CORE__GOAL_CHECKER_HPP_
36 #define NAV2_CORE__GOAL_CHECKER_HPP_
41 #include "geometry_msgs/msg/pose.hpp"
42 #include "geometry_msgs/msg/twist.hpp"
43 #include "nav2_ros_common/lifecycle_node.hpp"
45 #include "nav2_costmap_2d/costmap_2d_ros.hpp"
63 typedef std::shared_ptr<nav2_core::GoalChecker> Ptr;
72 const nav2::LifecycleNode::WeakPtr & parent,
73 const std::string & plugin_name,
74 const std::shared_ptr<nav2_costmap_2d::Costmap2DROS> costmap_ros) = 0;
76 virtual void reset() = 0;
86 const geometry_msgs::msg::Pose & query_pose,
const geometry_msgs::msg::Pose & goal_pose,
87 const geometry_msgs::msg::Twist & velocity) = 0;
100 geometry_msgs::msg::Pose & pose_tolerance,
101 geometry_msgs::msg::Twist & vel_tolerance) = 0;
Function-object for checking whether a goal has been reached.
virtual bool isGoalReached(const geometry_msgs::msg::Pose &query_pose, const geometry_msgs::msg::Pose &goal_pose, const geometry_msgs::msg::Twist &velocity)=0
Check whether the goal should be considered reached.
virtual bool getTolerances(geometry_msgs::msg::Pose &pose_tolerance, geometry_msgs::msg::Twist &vel_tolerance)=0
Get the maximum possible tolerances used for goal checking in the major types. Any field without a va...
virtual void initialize(const nav2::LifecycleNode::WeakPtr &parent, const std::string &plugin_name, const std::shared_ptr< nav2_costmap_2d::Costmap2DROS > costmap_ros)=0
Initialize any parameters from the NodeHandle.