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

Go to the source code of this file.

Classes

class  CalculateGoal
struct  Position2D
class  PrintTarget

Namespaces

namespace  BT

Functions

template<>
Position2D BT::convertFromString (StringView str)
< PrintTargettarget="{OtherGoal}"/>
</Sequence ></BehaviorTree >
</root > int 
main ()

Variables

static const char * xml_text = " value="-1

Function Documentation

<PrintTargettarget="{OtherGoal}"/></Sequence></BehaviorTree></root> int main ( )

Definition at line 118 of file t03_generic_ports.cpp.


Variable Documentation

const char* xml_text = " value="-1 [static]

The tree is a Sequence of 4 actions

1) Store a value of Position2D in the entry "GoalPosition" using the action CalculateGoal.

2) Call PrintTarget. The input "target" will be read from the Blackboard entry "GoalPosition".

3) Use the built-in action SetBlackboard to write the key "OtherGoal". A conversion from string to Position2D will be done under the hood.

4) Call PrintTarget. The input "goal" will be read from the Blackboard entry "OtherGoal".

Definition at line 102 of file t03_generic_ports.cpp.



behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sat Jun 8 2019 20:17:15