13 <root main_tree_to_execute = "MainTree" > 14 <BehaviorTree ID="MainTree"> 15 <Repeat num_cycles="3"> 16 <ManualSelector repeat_last_selection="0"> 17 <SaySomething name="Option1" message="Option1" /> 18 <SaySomething name="Option2" message="Option2" /> 19 <SaySomething name="Option3" message="Option3" /> 20 <SaySomething name="Option4" message="Option4" /> 21 <ManualSelector name="YouChoose" /> 35 auto ret = tree.tickRoot();
37 std::cout <<
"Result: " << ret << std::endl;
void registerNodeType(const std::string &ID)
The BehaviorTreeFactory is used to create instances of a TreeNode at run-time.
Tree createTreeFromText(const std::string &text, Blackboard::Ptr blackboard=Blackboard::create())
static const char * xml_text