Encapsulates all options available for starting a timer. More...
#include <wall_timer_options.h>
Public Member Functions | |
WallTimerOptions () | |
WallTimerOptions (WallDuration _period, const WallTimerCallback &_callback, CallbackQueueInterface *_queue, bool oneshot=false, bool autostart=true) | |
Public Attributes | |
bool | autostart |
WallTimerCallback | callback |
The callback to call. More... | |
CallbackQueueInterface * | callback_queue |
Queue to add callbacks to. If NULL, the global callback queue will be used. More... | |
bool | oneshot |
WallDuration | period |
The period to call the callback at. More... | |
VoidConstPtr | tracked_object |
Encapsulates all options available for starting a timer.
Definition at line 40 of file wall_timer_options.h.
|
inline |
Definition at line 42 of file wall_timer_options.h.
|
inline |
Definition at line 54 of file wall_timer_options.h.
bool ros::WallTimerOptions::autostart |
Definition at line 79 of file wall_timer_options.h.
WallTimerCallback ros::WallTimerOptions::callback |
The callback to call.
Definition at line 64 of file wall_timer_options.h.
CallbackQueueInterface* ros::WallTimerOptions::callback_queue |
Queue to add callbacks to. If NULL, the global callback queue will be used.
Definition at line 66 of file wall_timer_options.h.
bool ros::WallTimerOptions::oneshot |
Definition at line 78 of file wall_timer_options.h.
WallDuration ros::WallTimerOptions::period |
The period to call the callback at.
Definition at line 63 of file wall_timer_options.h.
VoidConstPtr ros::WallTimerOptions::tracked_object |
A shared pointer to an object to track for these callbacks. If set, the a weak_ptr will be created to this object, and if the reference count goes to 0 the subscriber callbacks will not get called.
Definition at line 76 of file wall_timer_options.h.