15 #ifndef NAV2_BEHAVIOR_TREE__PLUGINS__DECORATOR__GOAL_UPDATED_CONTROLLER_HPP_
16 #define NAV2_BEHAVIOR_TREE__PLUGINS__DECORATOR__GOAL_UPDATED_CONTROLLER_HPP_
22 #include "behaviortree_cpp/decorator_node.h"
23 #include "behaviortree_cpp/json_export.h"
24 #include "geometry_msgs/msg/pose_stamped.hpp"
25 #include "nav2_behavior_tree/bt_utils.hpp"
26 #include "nav2_behavior_tree/json_utils.hpp"
27 #include "rclcpp/rclcpp.hpp"
30 namespace nav2_behavior_tree
47 const std::string & name,
48 const BT::NodeConfiguration & conf);
57 BT::RegisterJsonDefinition<geometry_msgs::msg::PoseStamped>();
58 BT::RegisterJsonDefinition<nav_msgs::msg::Goals>();
61 BT::InputPort<nav_msgs::msg::Goals>(
62 "goals",
"Vector of navigation goals"),
63 BT::InputPort<geometry_msgs::msg::PoseStamped>(
64 "goal",
"Navigation goal"),
73 BT::NodeStatus tick()
override;
75 bool goal_was_updated_;
76 geometry_msgs::msg::PoseStamped goal_;
77 nav_msgs::msg::Goals goals_;
A BT::DecoratorNode that ticks its child if the goal was updated.
GoalUpdatedController(const std::string &name, const BT::NodeConfiguration &conf)
A constructor for nav2_behavior_tree::GoalUpdatedController.
static BT::PortsList providedPorts()
Creates list of BT ports.