tests
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
ConditionTestNode
(
const
std::string&
name
);
12
13
void
setExpectedResult
(
NodeStatus
res);
14
15
// The method that is going to be executed by the thread
16
virtual
BT::NodeStatus
tick
()
override
;
17
18
int
tickCount
()
const
19
{
20
return
tick_count_
;
21
}
22
23
private
:
24
NodeStatus
expected_result_
;
25
int
tick_count_
;
26
};
27
}
// namespace BT
28
29
#endif
BT
Definition:
ex01_wrap_legacy.cpp:29
BT::ConditionTestNode::expected_result_
NodeStatus expected_result_
Definition:
condition_test_node.h:24
BT::ConditionNode
Definition:
condition_node.h:21
BT::ConditionTestNode::tick_count_
int tick_count_
Definition:
condition_test_node.h:25
BT::ConditionTestNode::ConditionTestNode
ConditionTestNode(const std::string &name)
Definition:
condition_test_node.cpp:16
BT::ConditionTestNode::tickCount
int tickCount() const
Definition:
condition_test_node.h:18
BT::ConditionTestNode::setExpectedResult
void setExpectedResult(NodeStatus res)
Definition:
condition_test_node.cpp:29
BT::TreeNode::name
const std::string & name() const
Name of the instance, not the type.
Definition:
tree_node.cpp:302
BT::ConditionTestNode
Definition:
condition_test_node.h:8
BT::ConditionTestNode::tick
virtual BT::NodeStatus tick() override
Method to be implemented by the user.
Definition:
condition_test_node.cpp:23
condition_node.h
BT::NodeStatus
NodeStatus
Definition:
basic_types.h:33
behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Dec 13 2024 03:19:16