Go to the documentation of this file.
41 ROS_DEBUG(
"Timer deregistering callbacks.");
52 return !period_.isZero();
57 return !period_.isZero();
65 if (has_tracked_object_)
67 tracked_object = tracked_object_.lock();
87 if (!
isValid() || timer_handle_ == -1)
141 return impl_->hasPending();
151 impl_->setPeriod(period, reset);
CallbackQueueInterface * callback_queue
Queue to add callbacks to. If NULL, the global callback queue will be used.
Encapsulates all options available for starting a timer.
void setPeriod(const Duration &period, bool reset=true)
void stop()
Stop the timer. Once this call returns, no more callbacks will be called. Does nothing if the timer i...
TimerCallback callback
The callback to call.
Manages a timer callback.
int32_t add(const D &period, const boost::function< void(const E &)> &callback, CallbackQueueInterface *callback_queue, const VoidConstPtr &tracked_object, bool oneshot)
VoidConstPtr tracked_object
void setPeriod(const Duration &period, bool reset=true)
Set the period of this timer.
void setPeriod(int32_t handle, const D &period, bool reset=true)
Duration period
The period to call the callback at.
bool hasPending()
Returns whether or not the timer has any pending events to call.
void remove(int32_t handle)
void start()
Start the timer. Does nothing if the timer is already started.
bool hasPending(int32_t handle)
static TimerManager & global()
roscpp
Author(s): Morgan Quigley, Josh Faust, Brian Gerkey, Troy Straszheim, Dirk Thomas
, Jacob Perron
autogenerated on Sat Sep 14 2024 02:59:36