Go to the documentation of this file.
41 ROS_DEBUG(
"WallTimer 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);
WallDuration period
The period to call the callback at.
bool hasPending()
Returns whether or not the timer has any pending events to call.
WallTimerCallback callback
The callback to call.
VoidConstPtr tracked_object
void start()
Start the timer. Does nothing if the timer is already started.
Manages a wall-clock timer callback.
Encapsulates all options available for starting a timer.
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 WallDuration &period, bool reset=true)
Set the period of this timer.
void setPeriod(int32_t handle, const D &period, bool reset=true)
CallbackQueueInterface * callback_queue
Queue to add callbacks to. If NULL, the global callback queue will be used.
void remove(int32_t handle)
void setPeriod(const WallDuration &period, bool reset=true)
bool hasPending(int32_t handle)
void stop()
Stop the timer. Once this call returns, no more callbacks will be called. Does nothing if the timer i...
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