$search

ros::TimerOptions Struct Reference

Encapsulates all options available for starting a timer. More...

#include <timer_options.h>

List of all members.

Public Member Functions

 TimerOptions (Duration _period, const TimerCallback &_callback, CallbackQueueInterface *_queue, bool oneshot=false, bool autostart=true)
 TimerOptions ()

Public Attributes

bool autostart
TimerCallback callback
 The callback to call.
CallbackQueueInterfacecallback_queue
 Queue to add callbacks to. If NULL, the global callback queue will be used.
bool oneshot
Duration period
 The period to call the callback at.
VoidConstPtr tracked_object

Detailed Description

Encapsulates all options available for starting a timer.

Definition at line 40 of file timer_options.h.


Constructor & Destructor Documentation

ros::TimerOptions::TimerOptions (  )  [inline]

Definition at line 42 of file timer_options.h.

ros::TimerOptions::TimerOptions ( Duration  _period,
const TimerCallback &  _callback,
CallbackQueueInterface _queue,
bool  oneshot = false,
bool  autostart = true 
) [inline]

Definition at line 53 of file timer_options.h.


Member Data Documentation

Definition at line 78 of file timer_options.h.

The callback to call.

Definition at line 63 of file timer_options.h.

Queue to add callbacks to. If NULL, the global callback queue will be used.

Definition at line 65 of file timer_options.h.

Definition at line 77 of file timer_options.h.

The period to call the callback at.

Definition at line 62 of file timer_options.h.

A shared pointer to an object to track for these callbacks. If set, the a weak_ptr will be created to this object, and if the reference count goes to 0 the subscriber callbacks will not get called.

Note:
Note that setting this will cause a new reference to be added to the object before the callback, and for it to go out of scope (and potentially be deleted) in the code path (and therefore thread) that the callback is invoked from.

Definition at line 75 of file timer_options.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


roscpp
Author(s): Morgan Quigley mquigley@cs.stanford.edu, Josh Faust jfaust@willowgarage.com, Brian Gerkey gerkey@willowgarage.com, Troy Straszheim straszheim@willowgarage.com
autogenerated on Sat Mar 2 13:23:32 2013