Main Page
Modules
Namespaces
Classes
Files
File List
File Members
gtest
include
condition_test_node.h
Go to the documentation of this file.
1
#ifndef CONDITIONTEST_H
2
#define CONDITIONTEST_H
3
4
#include "
behaviortree_cpp/condition_node.h
"
5
6
namespace
BT
7
{
8
class
ConditionTestNode
:
public
ConditionNode
9
{
10
public
:
11
// Constructor
12
ConditionTestNode
(
const
std::string&
name
);
13
14
void
setBoolean
(
bool
boolean_value);
15
16
// The method that is going to be executed by the thread
17
virtual
BT::NodeStatus
tick
()
override
;
18
19
int
tickCount
()
const
20
{
21
return
tick_count_
;
22
}
23
24
private
:
25
bool
boolean_value_
;
26
int
tick_count_
;
27
};
28
}
29
30
#endif
BT::ConditionTestNode::tick
virtual BT::NodeStatus tick() override
Method to be implemented by the user.
Definition:
condition_test_node.cpp:23
BT::TreeNode::name
const std::string & name() const
Definition:
tree_node.cpp:92
BT::ConditionTestNode::tick_count_
int tick_count_
Definition:
condition_test_node.h:26
BT::ConditionTestNode::setBoolean
void setBoolean(bool boolean_value)
Definition:
condition_test_node.cpp:40
BT::ConditionTestNode::tickCount
int tickCount() const
Definition:
condition_test_node.h:19
BT::ConditionTestNode::ConditionTestNode
ConditionTestNode(const std::string &name)
Definition:
condition_test_node.cpp:16
condition_node.h
BT
Definition:
t06_wrap_legacy.cpp:43
BT::ConditionTestNode
Definition:
condition_test_node.h:8
BT::ConditionNode
Definition:
condition_node.h:21
BT::NodeStatus
NodeStatus
Definition:
basic_types.h:28
BT::ConditionTestNode::boolean_value_
bool boolean_value_
Definition:
condition_test_node.h:25
behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sun Feb 3 2019 03:14:32