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