15 #ifndef NAV2_WAYPOINT_FOLLOWER__PLUGINS__WAIT_AT_WAYPOINT_HPP_
16 #define NAV2_WAYPOINT_FOLLOWER__PLUGINS__WAIT_AT_WAYPOINT_HPP_
21 #include "rclcpp/clock.hpp"
22 #include "rclcpp/logger.hpp"
23 #include "rclcpp_lifecycle/lifecycle_node.hpp"
24 #include "nav2_core/waypoint_task_executor.hpp"
26 namespace nav2_waypoint_follower
57 const nav2::LifecycleNode::WeakPtr & parent,
58 const std::string & plugin_name);
70 const geometry_msgs::msg::PoseStamped & curr_pose,
const int & curr_waypoint_index);
74 int waypoint_pause_duration_;
76 rclcpp::Logger logger_{rclcpp::get_logger(
"nav2_waypoint_follower")};
77 rclcpp::Clock::SharedPtr clock_;
Base class for creating a plugin in order to perform a specific task at waypoint arrivals.
Simple plugin based on WaypointTaskExecutor, let's robot to sleep for a specified amount of time at w...
WaitAtWaypoint()
Construct a new Wait At Waypoint Arrival object.
void initialize(const nav2::LifecycleNode::WeakPtr &parent, const std::string &plugin_name)
declares and loads parameters used (waypoint_pause_duration_)
~WaitAtWaypoint()
Destroy the Wait At Waypoint Arrival object.
bool processAtWaypoint(const geometry_msgs::msg::PoseStamped &curr_pose, const int &curr_waypoint_index)
Override this to define the body of your task that you would like to execute once the robot arrived t...