48 template <
typename NodeletType = ::nodelet::Nodelet>
53 bool ok()
const override;
56 [[deprecated(
"Use requestStop() instead.")]]
void shutdown();
59 using NodeletType::getName;
63 volatile bool shouldStop =
false;
68 #include "impl/stateful_nodelet.hpp" A mixin that can tell when a nodelet is being unloaded.
Object implementing an ok() method that can interrupt pending sleeps when it returns false...
A non-templated interface of the mixin that can tell when a nodelet is being unloaded.
bool isNodeletUnloading(const ::nodelet::Nodelet &nodelet)
Tells whether the nodelet is currently being unloaded (with some pending callbacks still running)...
virtual void requestStop()=0
Call this function to request stopping this nodelet. ok() should return false after calling this...
ROSCONSOLE_DECL void shutdown()
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 ...