Go to the documentation of this file.
41 ROS_DEBUG(
"SteadyTimer deregistering callbacks.");
55 if (has_tracked_object_)
57 tracked_object = tracked_object_.lock();
76 return !period_.isZero();
81 if (!
isValid() || timer_handle_ == -1)
136 return impl_->hasPending();
146 impl_->setPeriod(period, reset);
CallbackQueueInterface * callback_queue
Queue to add callbacks to. If NULL, the global callback queue will be used.
void setPeriod(const WallDuration &period, bool reset=true)
Set the period of this timer.
WallDuration period
The period to call the callback at.
int32_t add(const D &period, const boost::function< void(const E &)> &callback, CallbackQueueInterface *callback_queue, const VoidConstPtr &tracked_object, bool oneshot)
void stop()
Stop the timer. Once this call returns, no more callbacks will be called. Does nothing if the timer i...
VoidConstPtr tracked_object
SteadyTimerCallback callback
The callback to call.
void setPeriod(int32_t handle, const D &period, bool reset=true)
void start()
Start the timer. Does nothing if the timer is already started.
Encapsulates all options available for starting a timer.
void remove(int32_t handle)
bool hasPending()
Returns whether or not the timer has any pending events to call.
bool hasPending(int32_t handle)
Manages a steady-clock timer callback.
void setPeriod(const WallDuration &period, bool reset=true)
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:35