Functions | Variables
t01_build_your_first_tree.cpp File Reference
#include "behaviortree_cpp_v3/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

int main ( )

Definition at line 39 of file t01_build_your_first_tree.cpp.

Variable Documentation

const char* xml_text
static
Initial value:
= R"(
<root main_tree_to_execute = "MainTree" >
<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.



behaviotree_cpp_v3
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Tue May 4 2021 02:56:25