Functions | Variables
gtest_factory.cpp File Reference
#include <gtest/gtest.h>
#include "action_test_node.h"
#include "condition_test_node.h"
#include "behaviortree_cpp_v3/xml_parsing.h"
#include "../sample_nodes/crossdoor_nodes.h"
#include "../sample_nodes/dummy_nodes.h"
Include dependency graph for gtest_factory.cpp:

Go to the source code of this file.

Functions

 TEST (BehaviorTreeFactory, VerifyLargeTree)
 
 TEST (BehaviorTreeFactory, Subtree)
 
 TEST (BehaviorTreeFactory, Issue7)
 
 TEST (BehaviorTreeFactory, SubTreeWithRemapping)
 

Variables

static const char * xml_ports_subtree
 
static const char * xml_text
 
static const char * xml_text_subtree
 

Function Documentation

TEST ( BehaviorTreeFactory  ,
VerifyLargeTree   
)

Definition at line 76 of file gtest_factory.cpp.

TEST ( BehaviorTreeFactory  ,
Subtree   
)

Definition at line 117 of file gtest_factory.cpp.

TEST ( BehaviorTreeFactory  ,
Issue7   
)

Definition at line 152 of file gtest_factory.cpp.

TEST ( BehaviorTreeFactory  ,
SubTreeWithRemapping   
)

Definition at line 196 of file gtest_factory.cpp.

Variable Documentation

const char* xml_ports_subtree
static
Initial value:
= R"(
<root main_tree_to_execute = "MainTree" >
<BehaviorTree ID="TalkToMe">
<Sequence>
<SaySomething message="{hello_msg}" />
<SaySomething message="{bye_msg}" />
<SetBlackboard output_key="output" value="done!" />
</Sequence>
</BehaviorTree>
<BehaviorTree ID="MainTree">
<Sequence>
<SetBlackboard output_key="talk_hello" value="hello" />
<SetBlackboard output_key="talk_bye" value="bye bye" />
<SubTree ID="TalkToMe" hello_msg="talk_hello"
bye_msg="talk_bye"
output="talk_out" />
<SaySomething message="{talk_out}" />
</Sequence>
</BehaviorTree>
</root> )"

Definition at line 169 of file gtest_factory.cpp.

const char* xml_text
static

Definition at line 12 of file gtest_factory.cpp.

const char* xml_text_subtree
static
Initial value:
= R"(
<root main_tree_to_execute = "MainTree" >
<BehaviorTree ID="CrossDoorSubtree">
<Sequence name="door_sequence">
<Decorator ID="Inverter">
<Action ID="IsDoorLocked" />
</Decorator>
<Action ID="OpenDoor" />
<Action ID="PassThroughDoor" />
<Action ID="CloseDoor" />
</Sequence>
</BehaviorTree>
<!-- This tree will include the other one -->
<BehaviorTree ID="MainTree">
<Fallback name="root_selector">
<SubTree ID="CrossDoorSubtree" />
<Action ID="PassThroughWindow" />
</Fallback>
</BehaviorTree>
</root> )"

Definition at line 49 of file gtest_factory.cpp.



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