Go to the documentation of this file.
24 throw RuntimeError(
"Missing parameter [msec] in TimeoutNode");
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.
void emitWakeUpSignal()
Notify that the tree should be ticked again()
bool read_parameter_from_ports_
virtual BT::NodeStatus executeTick()
The method that should be used to invoke tick() and setStatus();.
void haltChild()
Same as resetChild()
size_t cancel(uint64_t id)
Cancels the specified timer.
NodeStatus status() const
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::mutex timeout_mutex_
std::atomic_bool timeout_started_
const TreeNode * child() const
bool isStatusCompleted(const NodeStatus &status)
virtual void halt() override
The method used to interrupt the execution of this node.
void halt() override
The method used to interrupt the execution of this node.
virtual BT::NodeStatus tick() override
Method to be implemented by the user.
std::atomic_bool child_halted_
size_t cancelAll()
Cancels all timers.