45 throw RuntimeError(
"Missing parameter [msec] in TimeoutNode");
TimeoutNode(const std::string &name, unsigned milliseconds)
const TreeNode * child() const
const std::string & name() const
Name of the instance, not the type.
bool read_parameter_from_ports_
const NodeConfiguration & config() const
uint64_t add(std::chrono::milliseconds milliseconds, std::function< void(bool)> handler)
Adds a new timer.
std::mutex timeout_mutex_
std::atomic< bool > child_halted_
Result getInput(const std::string &key, T &destination) const
void setRegistrationID(StringView ID)
virtual BT::NodeStatus tick() override
Method to be implemented by the user.
NodeStatus status() const
virtual BT::NodeStatus executeTick()
The method that should be used to invoke tick() and setStatus();.
void setStatus(NodeStatus new_status)
size_t cancel(uint64_t id)
Cancels the specified timer.