28 #ifndef ROSCPP_STEADY_TIMER_H 29 #define ROSCPP_STEADY_TIMER_H 71 void setPeriod(
const WallDuration& period,
bool reset=
true);
73 bool isValid() {
return impl_ && impl_->isValid(); }
74 operator void*() {
return isValid() ? (
void *) 1 : (
void *) 0; }
78 return impl_ < rhs.
impl_;
83 return impl_ == rhs.
impl_;
88 return impl_ != rhs.
impl_;
102 void setPeriod(
const WallDuration &period,
bool reset=
true);
boost::shared_ptr< Impl > ImplPtr
bool operator!=(const SteadyTimer &rhs)
ROSCPP_DECL void start()
Actually starts the internals of the node (spins up threads, starts the network polling and xmlrpc lo...
VoidConstWPtr tracked_object_
Abstract interface for a queue used to handle all callbacks within roscpp.
SteadyTimerCallback callback_
bool operator<(const SteadyTimer &rhs)
boost::weak_ptr< void const > VoidConstWPtr
roscpp's interface for creating subscribers, publishers, etc.
boost::function< void(const SteadyTimerEvent &)> SteadyTimerCallback
boost::weak_ptr< Impl > ImplWPtr
CallbackQueueInterface * callback_queue_
Manages a steady-clock timer callback.
bool operator==(const SteadyTimer &rhs)
Encapsulates all options available for starting a timer.