Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
jsk_topic_tools::StringRelay Class Reference

#include <string_relay.h>

Inheritance diagram for jsk_topic_tools::StringRelay:
Inheritance graph
[legend]

List of all members.

Public Types

typedef boost::shared_ptr
< StringRelay
Ptr

Public Member Functions

 StringRelay ()

Protected Member Functions

virtual void callback (const std_msgs::String::ConstPtr &msg)
virtual void onInit ()
 Initialize method. Subclass should call this method in its onInit method.
virtual void subscribe ()
 This method is called when publisher is subscribed by other nodes. Set up subscribers in this method.
virtual void unsubscribe ()
 This method is called when publisher is unsubscribed by other nodes. Shut down subscribers in this method.

Protected Attributes

ros::Publisher pub_
ros::Subscriber sub_

Detailed Description

Definition at line 45 of file string_relay.h.


Member Typedef Documentation

typedef boost::shared_ptr<StringRelay> jsk_topic_tools::StringRelay::Ptr

Reimplemented from jsk_topic_tools::DiagnosticNodelet.

Definition at line 48 of file string_relay.h.


Constructor & Destructor Documentation

Definition at line 49 of file string_relay.h.


Member Function Documentation

void jsk_topic_tools::StringRelay::callback ( const std_msgs::String::ConstPtr &  msg) [protected, virtual]

Definition at line 56 of file string_relay_nodelet.cpp.

void jsk_topic_tools::StringRelay::onInit ( ) [protected, virtual]

Initialize method. Subclass should call this method in its onInit method.

Reimplemented from jsk_topic_tools::DiagnosticNodelet.

Definition at line 40 of file string_relay_nodelet.cpp.

void jsk_topic_tools::StringRelay::subscribe ( ) [protected, virtual]

This method is called when publisher is subscribed by other nodes. Set up subscribers in this method.

Implements jsk_topic_tools::ConnectionBasedNodelet.

Definition at line 46 of file string_relay_nodelet.cpp.

void jsk_topic_tools::StringRelay::unsubscribe ( ) [protected, virtual]

This method is called when publisher is unsubscribed by other nodes. Shut down subscribers in this method.

Implements jsk_topic_tools::ConnectionBasedNodelet.

Definition at line 51 of file string_relay_nodelet.cpp.


Member Data Documentation

Definition at line 56 of file string_relay.h.

Definition at line 57 of file string_relay.h.


The documentation for this class was generated from the following files:


jsk_topic_tools
Author(s): Kei Okada , Yusuke Furuta
autogenerated on Fri Sep 8 2017 03:38:56