18 #include "std_msgs/msg/string.hpp"
20 #include "nav2_behavior_tree/plugins/action/drive_on_heading_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)
29 :
BtCancelActionNode<nav2_msgs::action::DriveOnHeading>(xml_tag_name, action_name, conf)
35 #include "behaviortree_cpp/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::DriveOnHeadingCancel>(
42 name,
"drive_on_heading", config);
46 "CancelDriveOnHeading", builder);
Abstract class representing an action for cancelling BT node.
A nav2_behavior_tree::BtActionNode class that wraps nav2_msgs::action::DriveOnHeading.
DriveOnHeadingCancel(const std::string &xml_tag_name, const std::string &action_name, const BT::NodeConfiguration &conf)
A constructor for nav2_behavior_tree::DriveOnHeadingCancel.