Go to the documentation of this file.
12 <root BTCPP_format="4">
13 <BehaviorTree ID="MainTree">
15 <SaySomething message="starting MainTree" />
23 <root BTCPP_format="4">
24 <BehaviorTree ID="SubA">
25 <SaySomething message="Executing SubA" />
30 <root BTCPP_format="4">
31 <BehaviorTree ID="SubB">
32 <SaySomething message="Executing SubB" />
52 std::cout <<
"Registered BehaviorTrees:" << std::endl;
55 std::cout <<
" - " << bt_name << std::endl;
59 std::cout <<
"----- MainTree tick ----" << std::endl;
60 auto main_tree = factory.
createTree(
"MainTree");
64 std::cout <<
"----- SubA tick ----" << std::endl;
static const char * xml_text_main
std::vector< std::string > registeredBehaviorTrees() const
Tree createTree(const std::string &tree_name, Blackboard::Ptr blackboard=Blackboard::create())
static const char * xml_text_subA
static const char * xml_text_subB
NodeStatus tickWhileRunning(std::chrono::milliseconds sleep_time=std::chrono::milliseconds(10))
void registerNodeType(const std::string &ID, const PortsList &ports, ExtraArgs... args)
The BehaviorTreeFactory is used to create instances of a TreeNode at run-time.
void registerBehaviorTreeFromText(const std::string &xml_text)