Functions | Variables
t01_build_your_first_tree.cpp File Reference
#include "behaviortree_cpp/bt_factory.h"
Include dependency graph for t01_build_your_first_tree.cpp:

Go to the source code of this file.

Functions

int main ()
 

Variables

static const char * xml_text
 

Function Documentation

◆ main()

int main ( )

Definition at line 39 of file t01_build_your_first_tree.cpp.

Variable Documentation

◆ xml_text

const char* xml_text
static
Initial value:
= R"(
<root BTCPP_format="4" >
<BehaviorTree ID="MainTree">
<Sequence name="root_sequence">
<CheckBattery name="battery_ok"/>
<OpenGripper name="open_gripper"/>
<ApproachObject name="approach_object"/>
<CloseGripper name="close_gripper"/>
</Sequence>
</BehaviorTree>
</root>
)"

Behavior Tree are used to create a logic to decide what to "do" and when. For this reason, our main building blocks are Actions and Conditions.

In this tutorial, we will learn how to create custom ActionNodes. It is important to remember that NodeTree are just a way to invoke callbacks (called tick() ). These callbacks are implemented by the user.

Definition at line 21 of file t01_build_your_first_tree.cpp.



behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Dec 13 2024 03:19:18