Go to the documentation of this file.
8 <root BTCPP_format="4">
11 <Script code=" msg:='hello world' " />
12 <Script code=" A:=THE_ANSWER; B:=3.14; color:=RED " />
13 <Precondition if="A>-B && color != BLUE" else="FAILURE">
15 <SaySomething message="{A}"/>
16 <SaySomething message="{B}"/>
17 <SaySomething message="{msg}"/>
18 <SaySomething message="{color}"/>
void registerScriptingEnum(StringView name, int value)
Add an Enum to the scripting language. For instance if you do:
NodeStatus tickWhileRunning(std::chrono::milliseconds sleep_time=std::chrono::milliseconds(10))
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 ...
static const char * xml_text
The BehaviorTreeFactory is used to create instances of a TreeNode at run-time.
void registerScriptingEnums()
registerScriptingEnums is syntactic sugar to automatically register multiple enums....