41 ROS_DEBUG(
"Timer deregistering callbacks.");
141 return impl_->hasPending();
151 impl_->setPeriod(period, reset);
void remove(int32_t handle)
void stop()
Stop the timer. Once this call returns, no more callbacks will be called. Does nothing if the timer i...
void setPeriod(const Duration &period, bool reset=true)
Set the period of this timer.
void start()
Start the timer. Does nothing if the timer is already started.
VoidConstWPtr tracked_object_
CallbackQueueInterface * callback_queue
Queue to add callbacks to. If NULL, the global callback queue will be used.
VoidConstPtr tracked_object
bool hasPending(int32_t handle)
int32_t add(const D &period, const boost::function< void(const E &)> &callback, CallbackQueueInterface *callback_queue, const VoidConstPtr &tracked_object, bool oneshot)
void setPeriod(const Duration &period, bool reset=true)
TimerCallback callback
The callback to call.
Encapsulates all options available for starting a timer.
Duration period
The period to call the callback at.
Manages a timer callback.
CallbackQueueInterface * callback_queue_
static TimerManager & global()
bool hasPending()
Returns whether or not the timer has any pending events to call.
void setPeriod(int32_t handle, const D &period, bool reset=true)