15 #ifndef NAV2_BEHAVIOR_TREE__PLUGINS__CONDITION__TRANSFORM_AVAILABLE_CONDITION_HPP_
16 #define NAV2_BEHAVIOR_TREE__PLUGINS__CONDITION__TRANSFORM_AVAILABLE_CONDITION_HPP_
22 #include "rclcpp/rclcpp.hpp"
23 #include "behaviortree_cpp/condition_node.h"
24 #include "tf2_ros/buffer.h"
26 namespace nav2_behavior_tree
47 const std::string & condition_name,
48 const BT::NodeConfiguration & conf);
61 BT::NodeStatus
tick()
override;
75 BT::InputPort<std::string>(
"child",
"",
"Child frame for transform"),
76 BT::InputPort<std::string>(
"parent",
"",
"parent frame for transform")
81 rclcpp::Node::SharedPtr node_;
82 std::shared_ptr<tf2_ros::Buffer> tf_;
84 std::atomic<bool> was_found_;
86 std::string child_frame_;
87 std::string parent_frame_;