Go to the documentation of this file.
15 throw RuntimeError(
"Missing parameter [msec] in SleepNode");
Result getInput(const std::string &key, T &destination) const
SleepNode(const std::string &name, const NodeConfig &config)
uint64_t add(std::chrono::milliseconds milliseconds, std::function< void(bool)> handler)
Adds a new timer.
NodeStatus onRunning() override
method invoked when the action is already in the RUNNING state.
void emitWakeUpSignal()
Notify that the tree should be ticked again()
NodeStatus onStart() override
size_t cancel(uint64_t id)
Cancels the specified timer.
void setStatus(NodeStatus new_status)
setStatus changes the status of the node. it will throw if you try to change the status to IDLE,...
std::atomic_bool timer_waiting_
The StatefulActionNode is the preferred way to implement asynchronous Actions. It is actually easier ...