Go to the documentation of this file.
10 , delay_started_(
false)
11 , delay_aborted_(
false)
13 , read_parameter_from_ports_(
false)
15 setRegistrationID(
"Delay");
20 , delay_started_(false)
21 , delay_aborted_(false)
23 , read_parameter_from_ports_(true)
39 throw RuntimeError(
"Missing parameter [delay_msec] in DelayNode");
Result getInput(const std::string &key, T &destination) const
uint64_t add(std::chrono::milliseconds milliseconds, std::function< void(bool)> handler)
Adds a new timer.
virtual BT::NodeStatus tick() override
Method to be implemented by the user.
void emitWakeUpSignal()
Notify that the tree should be ticked again()
virtual BT::NodeStatus executeTick()
The method that should be used to invoke tick() and setStatus();.
DelayNode(const std::string &name, unsigned milliseconds)
void setStatus(NodeStatus new_status)
setStatus changes the status of the node. it will throw if you try to change the status to IDLE,...
bool read_parameter_from_ports_
void halt() override
The method used to interrupt the execution of this node.
const TreeNode * child() const
bool isStatusCompleted(const NodeStatus &status)
virtual void halt() override
The method used to interrupt the execution of this node.
std::atomic_bool delay_complete_
size_t cancelAll()
Cancels all timers.