28 virtual ~Node() =
default;
38 virtual bool init() = 0;
66 T* obj,
const int priority = 0)
91 inline void cancelWorker(
const std::string& name,
const bool wait =
true)
bool hasWorker(const std::string &name)
void stopAllWorkers(bool wait)
virtual void preCleanup()
ros::NodeHandle & getNodeHandle() const
bool hasWorker(const std::string &name)
bool addWorker(const std::string &name, const double timestep, bool(T::*fp)(const bota_worker::WorkerEvent &), T *obj, const int priority=0)
void cancelWorkers(const bool wait=true)
std::shared_ptr< ros::NodeHandle > NodeHandlePtr
bool addWorker(const bota_worker::WorkerOptions &options)
bota_worker::WorkerManager workerManager_
void cancelWorker(const std::string &name, const bool wait=true)
bool setProcessPriority(int priority)
bool addWorker(const std::string &name, const double timestep, bool(T::*fp)(const WorkerEvent &), T *obj, const int priority=0, const bool autostart=true)
void cancelWorker(const std::string &name, const bool wait=true)