Go to the documentation of this file.
40 :
SyncActionNode(name, config), _arg1(arg_int), _arg2(arg_str), _nc(nc)
45 std::cout << name() <<
": " << _arg1 <<
" / " << _arg2 <<
" / " << _nc.value()
77 std::cout << name() <<
": " << _arg1 <<
" / " << _arg2 << std::endl;
93 <root BTCPP_format="4">
113 std::ref(non_copyable));
121 if(
auto action_B_node =
dynamic_cast<Action_B*
>(node))
123 action_B_node->
initialize(69,
"interesting_value");
127 tree.applyVisitor(visitor);
129 tree.tickWhileRunning();
NodeStatus tick() override
Method to be implemented by the user.
static const char * xml_text
Abstract base class for Behavior Tree Nodes.
Action_A(const std::string &name, const NodeConfig &config, int arg_int, std::string arg_str, NoCopyObj &nc)
std::unordered_map< std::string, PortInfo > PortsList
static PortsList providedPorts()
void registerNodeType(const std::string &ID, const PortsList &ports, ExtraArgs... args)
Tree createTreeFromText(const std::string &text, Blackboard::Ptr blackboard=Blackboard::create())
createTreeFromText will parse the XML directly from string. The XML needs to contain either a single ...
NodeStatus tick() override
Method to be implemented by the user.
static PortsList providedPorts()
The BehaviorTreeFactory is used to create instances of a TreeNode at run-time.
Action_B(const std::string &name, const NodeConfig &config)
void initialize(int arg_int, std::string arg_str)
The SyncActionNode is an ActionNode that explicitly prevents the status RUNNING and doesn't require a...