Public Member Functions | Private Member Functions | Private Attributes | List of all members
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>

Inheritance diagram for ros::SingleSubscriberPublisher:
Inheritance graph
[legend]

Public Member Functions

std::string getSubscriberName () const
 Returns the name of the subscriber node. More...
 
std::string getTopic () const
 Returns the topic this publisher publishes on. More...
 
template<class M >
void publish (const boost::shared_ptr< M const > &message) const
 Publish a message on the topic associated with this Publisher. More...
 
template<class M >
void publish (const boost::shared_ptr< M > &message) const
 Publish a message on the topic associated with this Publisher. More...
 
template<class M >
void publish (const M &message) const
 Publish a message on the topic associated with this Publisher. More...
 
 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.

ros::SingleSubscriberPublisher::~SingleSubscriberPublisher ( )

Definition at line 38 of file single_subscriber_publisher.cpp.

Member Function Documentation

std::string ros::SingleSubscriberPublisher::getSubscriberName ( ) const

Returns the name of the subscriber node.

Definition at line 52 of file single_subscriber_publisher.cpp.

std::string ros::SingleSubscriberPublisher::getTopic ( ) const

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 Sun Feb 3 2019 03:29:54