Go to the documentation of this file.
5 #ifdef MANUAL_STATIC_LINKING
23 <root BTCPP_format="4" >
25 <BehaviorTree ID="MainTree">
26 <Sequence name="root_sequence">
27 <CheckBattery name="battery_ok"/>
28 <OpenGripper name="open_gripper"/>
29 <ApproachObject name="approach_object"/>
30 <CloseGripper name="close_gripper"/>
49 #ifdef MANUAL_STATIC_LINKING
void registerFromPlugin(const std::string &file_path)
registerFromPlugin load a shared library and execute the function BT_REGISTER_NODES (see macro).
Abstract base class for Behavior Tree Nodes.
BT::NodeStatus CheckBattery()
NodeStatus tickWhileRunning(std::chrono::milliseconds sleep_time=std::chrono::milliseconds(10))
static const char * xml_text
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 ...
The BehaviorTreeFactory is used to create instances of a TreeNode at run-time.
void registerSimpleCondition(const std::string &ID, const SimpleConditionNode::TickFunctor &tick_functor, PortsList ports={})
registerSimpleCondition help you register nodes of type SimpleConditionNode.
void registerSimpleAction(const std::string &ID, const SimpleActionNode::TickFunctor &tick_functor, PortsList ports={})
registerSimpleAction help you register nodes of type SimpleActionNode.