41 ROS_DEBUG(
"WallTimer deregistering callbacks.");
136 return impl_->hasPending();
146 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 WallDuration &period, bool reset=true)
Set the period of this timer.
Encapsulates all options available for starting a timer.
WallTimerCallback callback
The callback to call.
void setPeriod(const WallDuration &period, bool reset=true)
bool hasPending()
Returns whether or not the timer has any pending events to call.
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 start()
Start the timer. Does nothing if the timer is already started.
WallTimerCallback callback_
VoidConstPtr tracked_object
CallbackQueueInterface * callback_queue
Queue to add callbacks to. If NULL, the global callback queue will be used.
CallbackQueueInterface * callback_queue_
WallDuration period
The period to call the callback at.
VoidConstWPtr tracked_object_
static TimerManager & global()
Manages a wall-clock timer callback.
void setPeriod(int32_t handle, const D &period, bool reset=true)