diagnostic_updater::HeaderlessDiagnosedPublisher Class Reference

A HeaderlessTopicDiagnostic combined with a ros::Publisher. More...

#include <publisher.h>

Inheritance diagram for diagnostic_updater::HeaderlessDiagnosedPublisher:
Inheritance graph
[legend]

List of all members.

Public Member Functions

ros::Publisher getPublisher () const
 Returns the publisher.
 HeaderlessDiagnosedPublisher (const ros::Publisher &pub, diagnostic_updater::Updater &diag, const diagnostic_updater::FrequencyStatusParam &freq)
 Constructs a HeaderlessTopicDiagnostic.
virtual void publish (const ros::Message &message)
 Collects statistics and publishes the message.
virtual void publish (const ros::MessageConstPtr &message)
 Collects statistics and publishes the message.
void setPublisher (ros::Publisher pub)
 Changes the publisher.
virtual ~HeaderlessDiagnosedPublisher ()

Private Attributes

ros::Publisher publisher_

Detailed Description

A HeaderlessTopicDiagnostic combined with a ros::Publisher.

For a standard ros::Publisher, this class allows the ros::Publisher and the HeaderlessTopicDiagnostic to be combined for added convenience.

Definition at line 111 of file publisher.h.


Constructor & Destructor Documentation

diagnostic_updater::HeaderlessDiagnosedPublisher::HeaderlessDiagnosedPublisher ( const ros::Publisher &  pub,
diagnostic_updater::Updater diag,
const diagnostic_updater::FrequencyStatusParam freq 
) [inline]

Constructs a HeaderlessTopicDiagnostic.

Parameters:
pub The publisher on which statistics are being collected.
diag The diagnostic_updater that the CompositeDiagnosticTask should add itself to.
freq The parameters for the FrequencyStatus class that will be computing statistics.

Definition at line 126 of file publisher.h.

virtual diagnostic_updater::HeaderlessDiagnosedPublisher::~HeaderlessDiagnosedPublisher (  )  [inline, virtual]

Definition at line 133 of file publisher.h.


Member Function Documentation

ros::Publisher diagnostic_updater::HeaderlessDiagnosedPublisher::getPublisher (  )  const [inline]

Returns the publisher.

Definition at line 157 of file publisher.h.

virtual void diagnostic_updater::HeaderlessDiagnosedPublisher::publish ( const ros::Message &  message  )  [inline, virtual]

Collects statistics and publishes the message.

Definition at line 148 of file publisher.h.

virtual void diagnostic_updater::HeaderlessDiagnosedPublisher::publish ( const ros::MessageConstPtr &  message  )  [inline, virtual]

Collects statistics and publishes the message.

Definition at line 139 of file publisher.h.

void diagnostic_updater::HeaderlessDiagnosedPublisher::setPublisher ( ros::Publisher  pub  )  [inline]

Changes the publisher.

Definition at line 165 of file publisher.h.


Member Data Documentation

Definition at line 171 of file publisher.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs


diagnostic_updater
Author(s): Jeremy Leibs, Blaise Gassend
autogenerated on Fri Jan 11 09:12:25 2013