2
3
4
5
6
7
8
9
10
11
15#include "behaviortree_cpp/decorator_node.h"
16#include "behaviortree_cpp/utils/timer_queue.h"
23
24
25
26
27
28
29
30
31
32
33
34
38 DelayNode(
const std::string& name,
unsigned milliseconds);
40 DelayNode(
const std::string& name,
const NodeConfig& config);
52 static PortsList providedPorts()
54 return { InputPort<
unsigned>(
"delay_msec",
"Tick the child after a few "
66 bool delay_started_ =
false;
67 std::atomic_bool delay_complete_ =
false;
68 bool delay_aborted_ =
false;
70 bool read_parameter_from_ports_;
71 std::mutex delay_mutex_;
The DecoratorNode is the base class for nodes that have exactly one child.
Definition: decorator_node.h:19
The delay node will introduce a delay and then tick the child returning the status of the child as it...
Definition: delay_node.h:36
void halt() override
The method used to interrupt the execution of this node.
Definition: action_node.h:24
NodeStatus
Definition: basic_types.h:34
Definition: tree_node.h:105