2
3
4
5
6
7
8
9
10
11
12
16#include "behaviortree_cpp/action_node.h"
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
87 [[
deprecated(
"prefer the constructor with std::shared_ptr<TestNodeConfig>")]] TestNode(
90 TestNode(
const std::string& name,
const NodeConfig& config,
95 TestNode(
const TestNode& other) =
delete;
101 static PortsList providedPorts()
118 std::unique_ptr<PImpl> _p;
The StatefulActionNode is the preferred way to implement asynchronous Actions. It is actually easier ...
Definition: action_node.h:174
The TestNode is a Node that can be configure to:
Definition: test_node.h:82
NodeStatus onRunning() override
method invoked when the action is already in the RUNNING state.
NodeStatus onStart() override
Definition: action_node.h:24
NodeStatus
Definition: basic_types.h:34
Definition: tree_node.h:105
Definition: test_node.h:27
std::string success_script
script to execute when complete_func() returns SUCCESS
Definition: test_node.h:33
std::string failure_script
script to execute when complete_func() returns FAILURE
Definition: test_node.h:36
std::chrono::milliseconds async_delay
if async_delay > 0, this action become asynchronous and wait this amount of time
Definition: test_node.h:42
NodeStatus return_status
Definition: test_node.h:30
std::function< NodeStatus(void)> complete_func
Definition: test_node.h:47
std::string return_status_script
Definition: test_node.h:58
std::string post_script
script to execute when actions is completed
Definition: test_node.h:39