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 "behaviortree_cpp/action_node.h"
23 #include "behaviortree_cpp/json_export.h"
24 #include "geometry_msgs/msg/pose_stamped.hpp"
25 #include "nav_msgs/msg/path.h"
26 #include "nav2_behavior_tree/bt_utils.hpp"
27 #include "nav2_behavior_tree/json_utils.hpp"
28 #include "nav2_util/geometry_utils.hpp"
29 #include "nav2_util/robot_utils.hpp"
32 namespace nav2_behavior_tree
39 const std::string & xml_tag_name,
40 const BT::NodeConfiguration & conf);
43 static BT::PortsList providedPorts()
46 BT::RegisterJsonDefinition<geometry_msgs::msg::PoseStamped>();
47 BT::RegisterJsonDefinition<nav_msgs::msg::Path>();
50 BT::InputPort<nav_msgs::msg::Path>(
"path",
"Path to extract pose from"),
51 BT::OutputPort<geometry_msgs::msg::PoseStamped>(
"pose",
"Stamped Extracted Pose"),
52 BT::InputPort<int>(
"index", 0,
"Index of pose to extract from. -1 is end of list"),
57 void halt()
override {}
58 BT::NodeStatus tick()
override;