1 #ifndef DECORATOR_TIMEOUT_NODE_H 2 #define DECORATOR_TIMEOUT_NODE_H 37 return { InputPort<unsigned>(
"msec",
"After a certain amount of time, " 38 "halt() the child if it is still running.") };
56 #endif // DEADLINE_NODE_H size_t cancelAll()
Cancels all timers.
TimeoutNode(const std::string &name, unsigned milliseconds)
const std::string & name() const
Name of the instance, not the type.
bool read_parameter_from_ports_
const NodeConfiguration & config() const
The TimeoutNode will halt() a running child if the latter has been RUNNING for more than a give time...
static pthread_mutex_t mutex
static PortsList providedPorts()
std::mutex timeout_mutex_
std::atomic< bool > child_halted_
std::unordered_map< std::string, PortInfo > PortsList
virtual BT::NodeStatus tick() override
Method to be implemented by the user.