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

Go to the source code of this file.

Functions

void Assert (bool condition)
 
int main ()
 

Variables

static const char * xml_text_reactive
 
static const char * xml_text_sequence
 

Function Documentation

void Assert ( bool  condition)

Definition at line 54 of file t04_reactive_sequence.cpp.

int main ( )

Definition at line 60 of file t04_reactive_sequence.cpp.

Variable Documentation

const char* xml_text_reactive
static
Initial value:
= R"(
<root main_tree_to_execute = "MainTree" >
<BehaviorTree ID="MainTree">
<ReactiveSequence name="root">
<BatteryOK/>
<Sequence>
<SaySomething message="mission started..." />
<MoveBase goal="1;2;3"/>
<SaySomething message="mission completed!" />
</Sequence>
</ReactiveSequence>
</BehaviorTree>
</root>
)"

Definition at line 34 of file t04_reactive_sequence.cpp.

const char* xml_text_sequence
static
Initial value:
= R"(
<root main_tree_to_execute = "MainTree" >
<BehaviorTree ID="MainTree">
<Sequence name="root">
<BatteryOK/>
<SaySomething message="mission started..." />
<MoveBase goal="1;2;3"/>
<SaySomething message="mission completed!" />
</Sequence>
</BehaviorTree>
</root>
)"

This tutorial will teach you:

  • The difference between Sequence and SequenceStar
  • How to create an asynchronous ActionNode (an action that is execute in its own thread).

Definition at line 18 of file t04_reactive_sequence.cpp.



behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sat Jun 8 2019 18:04:05