Go to the documentation of this file.
65 return { InputPort<unsigned>(
"msec",
"After a certain amount of time, "
66 "halt() the child if it is still running.") };
const NodeConfig & config() const
bool read_parameter_from_ports_
static PortsList providedPorts()
static pthread_mutex_t mutex
std::unordered_map< std::string, PortInfo > PortsList
TimeoutNode(const std::string &name, const NodeConfig &config)
std::mutex timeout_mutex_
void setRegistrationID(StringView ID)
const std::string & name() const
Name of the instance, not the type.
std::atomic_bool timeout_started_
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.
The TimeoutNode will halt() a running child if the latter has been RUNNING longer than a given time....
std::atomic_bool child_halted_
size_t cancelAll()
Cancels all timers.
TimeoutNode(const std::string &name, unsigned milliseconds)