15 #ifndef NAV2_BEHAVIOR_TREE__PLUGINS__CONDITION__GOAL_UPDATED_CONDITION_HPP_
16 #define NAV2_BEHAVIOR_TREE__PLUGINS__CONDITION__GOAL_UPDATED_CONDITION_HPP_
21 #include "behaviortree_cpp/condition_node.h"
22 #include "behaviortree_cpp/json_export.h"
23 #include "nav_msgs/msg/goals.hpp"
24 #include "nav2_behavior_tree/bt_utils.hpp"
25 #include "nav2_behavior_tree/json_utils.hpp"
28 namespace nav2_behavior_tree
46 const std::string & condition_name,
47 const BT::NodeConfiguration & conf);
55 BT::NodeStatus
tick()
override;
64 BT::RegisterJsonDefinition<geometry_msgs::msg::PoseStamped>();
65 BT::RegisterJsonDefinition<nav_msgs::msg::Goals>();
68 BT::InputPort<nav_msgs::msg::Goals>(
69 "goals",
"Vector of navigation goals"),
70 BT::InputPort<geometry_msgs::msg::PoseStamped>(
71 "goal",
"Navigation goal"),
76 geometry_msgs::msg::PoseStamped goal_;
77 nav_msgs::msg::Goals goals_;
A BT::ConditionNode that returns SUCCESS when goal is updated on the blackboard and FAILURE otherwise...
BT::NodeStatus tick() override
The main override required by a BT action.
static BT::PortsList providedPorts()
Creates list of BT ports.