image_transport::SingleSubscriberPublisher Class Reference

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

#include <single_subscriber_publisher.h>

List of all members.

Public Types

typedef boost::function
< uint32_t()> 
GetNumSubscribersFn
typedef boost::function< void(const
sensor_msgs::Image &)> 
PublishFn

Public Member Functions

uint32_t getNumSubscribers () const
std::string getSubscriberName () const
std::string getTopic () const
void publish (const sensor_msgs::ImageConstPtr &message) const
void publish (const sensor_msgs::Image &message) const
 SingleSubscriberPublisher (const std::string &caller_id, const std::string &topic, const GetNumSubscribersFn &num_subscribers_fn, const PublishFn &publish_fn)

Private Attributes

std::string caller_id_
GetNumSubscribersFn num_subscribers_fn_
PublishFn publish_fn_
std::string topic_

Friends

class Publisher

Detailed Description

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

Definition at line 14 of file single_subscriber_publisher.h.


Member Typedef Documentation

Definition at line 17 of file single_subscriber_publisher.h.

typedef boost::function<void(const sensor_msgs::Image&)> image_transport::SingleSubscriberPublisher::PublishFn

Definition at line 18 of file single_subscriber_publisher.h.


Constructor & Destructor Documentation

image_transport::SingleSubscriberPublisher::SingleSubscriberPublisher ( const std::string &  caller_id,
const std::string &  topic,
const GetNumSubscribersFn num_subscribers_fn,
const PublishFn publish_fn 
)

Definition at line 6 of file single_subscriber_publisher.cpp.


Member Function Documentation

uint32_t image_transport::SingleSubscriberPublisher::getNumSubscribers (  )  const

Definition at line 25 of file single_subscriber_publisher.cpp.

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

Definition at line 15 of file single_subscriber_publisher.cpp.

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

Definition at line 20 of file single_subscriber_publisher.cpp.

void image_transport::SingleSubscriberPublisher::publish ( const sensor_msgs::ImageConstPtr &  message  )  const

Definition at line 35 of file single_subscriber_publisher.cpp.

void image_transport::SingleSubscriberPublisher::publish ( const sensor_msgs::Image &  message  )  const

Definition at line 30 of file single_subscriber_publisher.cpp.


Friends And Related Function Documentation

friend class Publisher [friend]

Definition at line 39 of file single_subscriber_publisher.h.


Member Data Documentation

Definition at line 34 of file single_subscriber_publisher.h.

Definition at line 36 of file single_subscriber_publisher.h.

Definition at line 37 of file single_subscriber_publisher.h.

Definition at line 35 of file single_subscriber_publisher.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends


image_transport
Author(s): Patrick Mihelich
autogenerated on Fri Jan 11 09:40:42 2013