Public Member Functions | Private Member Functions | Private Attributes
ros::SingleSubscriberPublisher Class Reference

Allows publication of a message to a single subscriber. Only available inside subscriber connection callbacks. More...

#include <single_subscriber_publisher.h>

List of all members.

Public Member Functions

std::string getSubscriberName () const
 Returns the name of the subscriber node.
std::string getTopic () const
 Returns the topic this publisher publishes on.
template<class M >
void publish (const boost::shared_ptr< M const > &message) const
 Publish a message on the topic associated with this Publisher.
template<class M >
void publish (const boost::shared_ptr< M > &message) const
 Publish a message on the topic associated with this Publisher.
template<class M >
void publish (const M &message) const
 Publish a message on the topic associated with this Publisher.
 SingleSubscriberPublisher (const SubscriberLinkPtr &link)
 ~SingleSubscriberPublisher ()

Private Member Functions

void publish (const SerializedMessage &m) const

Private Attributes

SubscriberLinkPtr link_

Detailed Description

Allows publication of a message to a single subscriber. Only available inside subscriber connection callbacks.

Definition at line 43 of file single_subscriber_publisher.h.


Constructor & Destructor Documentation

ros::SingleSubscriberPublisher::SingleSubscriberPublisher ( const SubscriberLinkPtr &  link)

Definition at line 33 of file single_subscriber_publisher.cpp.

Definition at line 38 of file single_subscriber_publisher.cpp.


Member Function Documentation

Returns the name of the subscriber node.

Definition at line 52 of file single_subscriber_publisher.cpp.

Returns the topic this publisher publishes on.

Definition at line 47 of file single_subscriber_publisher.cpp.

template<class M >
void ros::SingleSubscriberPublisher::publish ( const boost::shared_ptr< M const > &  message) const [inline]

Publish a message on the topic associated with this Publisher.

This version of publish will allow fast intra-process message-passing in the future, so you may not mutate the message after it has been passed in here (since it will be passed directly into a callback function)

Definition at line 58 of file single_subscriber_publisher.h.

template<class M >
void ros::SingleSubscriberPublisher::publish ( const boost::shared_ptr< M > &  message) const [inline]

Publish a message on the topic associated with this Publisher.

This version of publish will allow fast intra-process message-passing in the future, so you may not mutate the message after it has been passed in here (since it will be passed directly into a callback function)

Definition at line 72 of file single_subscriber_publisher.h.

template<class M >
void ros::SingleSubscriberPublisher::publish ( const M &  message) const [inline]

Publish a message on the topic associated with this Publisher.

Definition at line 81 of file single_subscriber_publisher.h.

void ros::SingleSubscriberPublisher::publish ( const SerializedMessage m) const [private]

Definition at line 42 of file single_subscriber_publisher.cpp.


Member Data Documentation

SubscriberLinkPtr ros::SingleSubscriberPublisher::link_ [private]

Definition at line 101 of file single_subscriber_publisher.h.


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


roscpp
Author(s): Morgan Quigley, Josh Faust, Brian Gerkey, Troy Straszheim
autogenerated on Thu Jun 6 2019 21:10:06