18 struct InterruptibleSleepInterfacePrivate;
41 virtual bool sleep(const ::ros::Duration& duration)
const;
49 virtual bool ok()
const;
57 ::std::unique_ptr<InterruptibleSleepInterfacePrivate>
data;
virtual bool sleep(const ::ros::Duration &duration) const
Sleep for the given duration or until ok() returns false.
::std::unique_ptr< InterruptibleSleepInterfacePrivate > data
PIMPL data container.
::ros::WallDuration pollDuration
How long to wait between querying the ok() status and other conditions.
virtual bool ok() const
Whether it is OK to continue sleeping. If false, a pending sleep() should stop as soon as possible...
Interface to an object whose sleep() calls can be interrupted externally. Multiple sleep() calls can ...
InterruptibleSleepInterface()
virtual ~InterruptibleSleepInterface()
Destroy the object waiting for a pending sleep() call to finish.