18 #include "std_msgs/msg/string.hpp"
20 #include "nav2_behavior_tree/plugins/action/spin_cancel_node.hpp"
22 namespace nav2_behavior_tree
26 const std::string & xml_tag_name,
27 const std::string & action_name,
28 const BT::NodeConfiguration & conf)
35 #include "behaviortree_cpp_v3/bt_factory.h"
36 BT_REGISTER_NODES(factory)
38 BT::NodeBuilder builder =
39 [](
const std::string & name,
const BT::NodeConfiguration & config)
41 return std::make_unique<nav2_behavior_tree::SpinCancel>(
42 name,
"spin", config);
46 "CancelSpin", builder);
Abstract class representing an action for cancelling BT node.
A nav2_behavior_tree::BtActionNode class that wraps nav2_msgs::action::Wait.
SpinCancel(const std::string &xml_tag_name, const std::string &action_name, const BT::NodeConfiguration &conf)
A constructor for nav2_behavior_tree::WaitAction.