A HeaderlessTopicDiagnostic combined with a ros::Publisher. More...
#include <publisher.h>
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_ |
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.
diagnostic_updater::HeaderlessDiagnosedPublisher::HeaderlessDiagnosedPublisher | ( | const ros::Publisher & | pub, | |
diagnostic_updater::Updater & | diag, | |||
const diagnostic_updater::FrequencyStatusParam & | freq | |||
) | [inline] |
Constructs a HeaderlessTopicDiagnostic.
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.
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.
ros::Publisher diagnostic_updater::HeaderlessDiagnosedPublisher::publisher_ [private] |
Definition at line 171 of file publisher.h.