15 #ifndef NAV2_BEHAVIOR_TREE__PLUGINS__ACTION__GET_CURRENT_POSE_ACTION_HPP_
16 #define NAV2_BEHAVIOR_TREE__PLUGINS__ACTION__GET_CURRENT_POSE_ACTION_HPP_
22 #include "nav_msgs/msg/path.hpp"
23 #include "geometry_msgs/msg/pose_stamped.hpp"
24 #include "nav2_util/geometry_utils.hpp"
25 #include "nav2_util/robot_utils.hpp"
26 #include "nav2_behavior_tree/bt_utils.hpp"
27 #include "nav2_ros_common/lifecycle_node.hpp"
29 #include "behaviortree_cpp/action_node.h"
30 #include "nav2_ros_common/tf2_factories.hpp"
32 namespace nav2_behavior_tree
52 const std::string & xml_tag_name,
53 const BT::NodeConfiguration & conf);
62 BT::InputPort<std::string>(
"global_frame",
"Global reference frame"),
63 BT::InputPort<std::string>(
"robot_base_frame",
"robot base frame"),
64 BT::OutputPort<geometry_msgs::msg::PoseStamped>(
"current_pose",
"Current pose output"),
72 void halt()
override {}
78 BT::NodeStatus tick()
override;
80 std::string global_frame_, robot_base_frame_;
81 nav2::TransformBuffer::SharedPtr tf_;
82 double transform_tolerance_{0.1};
A BT::ActionNodeBase to shorten path by some distance.
static BT::PortsList providedPorts()
Creates list of BT ports.
GetCurrentPoseAction(const std::string &xml_tag_name, const BT::NodeConfiguration &conf)
A nav2_behavior_tree::GetCurrentPoseAction constructor.