Go to the documentation of this file.
48 template <
typename NodeletType = ::nodelet::Nodelet>
53 bool ok()
const override;
56 [[deprecated(
"Use requestStop() instead.")]]
void shutdown();
59 using NodeletType::getName;
68 #include "impl/stateful_nodelet.hpp"
Object implementing an ok() method that can interrupt pending sleeps when it returns false.
volatile bool shouldStop
Whether requestStop() has been called.
void requestStop() override
Call this function to request stopping this nodelet. ok() should return false after calling this....
Interface to an object whose sleep() calls can be interrupted externally. Multiple sleep() calls can ...
virtual ~StatefulNodelet()
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).
A mixin that can tell when a nodelet is being unloaded.
virtual void requestStop()=0
Call this function to request stopping this nodelet. ok() should return false after calling this....
bool ok() const override
Whether it is OK to continue sleeping. If false, a pending sleep() should stop as soon as possible.
cras_cpp_common
Author(s): Martin Pecka
autogenerated on Tue Nov 26 2024 03:49:04