Classes | Functions | Variables
ex04_waypoints.cpp File Reference
#include "behaviortree_cpp_v3/bt_factory.h"
#include "behaviortree_cpp_v3/actions/pop_from_queue.hpp"
#include "behaviortree_cpp_v3/decorators/consume_queue.h"
#include <list>
Include dependency graph for ex04_waypoints.cpp:

Go to the source code of this file.

Classes

class  GenerateWaypoints
 Dummy action that generates a list of poses. More...
 
struct  Pose2D
 
class  UseWaypoint
 Simple Action that uses the output of PopFromQueue<Pose2D> or ConsumeQueue<Pose2D> More...
 
class  UseWaypointQueue
 

Functions

int main ()
 

Variables

static const char * xml_A
 
static const char * xml_B
 
static const char * xml_implicit
 

Function Documentation

◆ main()

int main ( )

Definition at line 174 of file ex04_waypoints.cpp.

Variable Documentation

◆ xml_A

const char* xml_A
static
Initial value:
= R"(
<root main_tree_to_execute = "TreeA" >
<BehaviorTree ID="TreeA">
<Sequence>
<GenerateWaypoints waypoints="{waypoints}" />
<QueueSize queue="{waypoints}" size="{wp_size}" />
<Repeat num_cycles="{wp_size}" >
<Sequence>
<PopFromQueue queue="{waypoints}" popped_item="{wp}" />
<UseWaypoint waypoint="{wp}" />
</Sequence>
</Repeat>
</Sequence>
</BehaviorTree>
</root>
)"

Definition at line 142 of file ex04_waypoints.cpp.

◆ xml_B

const char* xml_B
static
Initial value:
= R"(
<root main_tree_to_execute = "TreeB" >
<BehaviorTree ID="TreeB">
<Sequence>
<GenerateWaypoints waypoints="{waypoints}" />
<ConsumeQueue queue="{waypoints}" popped_item="{wp}">
<UseWaypoint waypoint="{wp}" />
</ConsumeQueue>
</Sequence>
</BehaviorTree>
</root>
)"

Definition at line 159 of file ex04_waypoints.cpp.

◆ xml_implicit

const char* xml_implicit
static
Initial value:
= R"(
<root main_tree_to_execute = "TreeImplicit" >
<BehaviorTree ID="TreeImplicit">
<Sequence>
<GenerateWaypoints waypoints="{waypoints}" />
<KeepRunningUntilFailure>
<UseWaypointQueue waypoints="{waypoints}" />
</KeepRunningUntilFailure>
</Sequence>
</BehaviorTree>
</root>
)"

Definition at line 128 of file ex04_waypoints.cpp.



behaviortree_cpp_v3
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Mon Jul 3 2023 02:50:14