Go to the documentation of this file.
26 <root BTCPP_format="4">
30 <input_port name="sub_in_value" default="42"/>
31 <input_port name="sub_in_name"/>
32 <output_port name="sub_out_result" default="{out_result}"/>
33 <output_port name="sub_out_state"/>
37 <BehaviorTree ID="MySub">
39 <ScriptCondition code="sub_in_value==42 && sub_in_name=='john'" />
40 <Script code="sub_out_result:=69; sub_out_state:='ACTIVE'" />
52 <root BTCPP_format="4">
54 <BehaviorTree ID="MainTree">
56 <Script code="in_name:= 'john' "/>
57 <SubTree ID="MySub" sub_in_name="{in_name}"
58 sub_out_state="{out_state}"/>
59 <ScriptCondition code=" out_result==69 && out_state=='ACTIVE' " />
76 tree.tickWhileRunning();
Tree createTree(const std::string &tree_name, Blackboard::Ptr blackboard=Blackboard::create())
static const char * xml_maintree
The BehaviorTreeFactory is used to create instances of a TreeNode at run-time.
static const char * xml_subtree
void registerBehaviorTreeFromText(const std::string &xml_text)
StdCoutLogger is a very simple logger that displays all the transitions on the console.