15 #ifndef NAV2_BEHAVIOR_TREE__PLUGINS__ACTION__GET_POSE_FROM_PATH_ACTION_HPP_
16 #define NAV2_BEHAVIOR_TREE__PLUGINS__ACTION__GET_POSE_FROM_PATH_ACTION_HPP_
22 #include "geometry_msgs/msg/pose_stamped.hpp"
23 #include "nav2_util/geometry_utils.hpp"
24 #include "nav2_util/robot_utils.hpp"
25 #include "behaviortree_cpp/action_node.h"
26 #include "nav_msgs/msg/path.h"
28 namespace nav2_behavior_tree
35 const std::string & xml_tag_name,
36 const BT::NodeConfiguration & conf);
39 static BT::PortsList providedPorts()
42 BT::InputPort<nav_msgs::msg::Path>(
"path",
"Path to extract pose from"),
43 BT::OutputPort<geometry_msgs::msg::PoseStamped>(
"pose",
"Stamped Extracted Pose"),
44 BT::InputPort<int>(
"index", 0,
"Index of pose to extract from. -1 is end of list"),
49 void halt()
override {}
50 BT::NodeStatus tick()
override;