Functions | Variables
t05_crossdoor.cpp File Reference
#include "crossdoor_nodes.h"
#include "behaviortree_cpp/bt_factory.h"
Include dependency graph for t05_crossdoor.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 42 of file t05_crossdoor.cpp.

Variable Documentation

◆ xml_text

const char* xml_text
static
Initial value:
= R"(
<root BTCPP_format="4">
<BehaviorTree ID="MainTree">
<Sequence>
<Fallback>
<Inverter>
<IsDoorClosed/>
</Inverter>
<SubTree ID="DoorClosed"/>
</Fallback>
<PassThroughDoor/>
</Sequence>
</BehaviorTree>
<BehaviorTree ID="DoorClosed">
<Fallback>
<OpenDoor/>
<RetryUntilSuccessful num_attempts="5">
<PickLock/>
</RetryUntilSuccessful>
<SmashDoor/>
</Fallback>
</BehaviorTree>
</root>
)"

This is a more complex example that uses Fallback, Decorators and Subtrees

For the sake of simplicity, we aren't focusing on ports remapping to the time being.

Definition at line 12 of file t05_crossdoor.cpp.



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