Public Member Functions | Protected Member Functions
image_transport::RawPublisher Class Reference

The default PublisherPlugin. More...

#include <raw_publisher.h>

Inheritance diagram for image_transport::RawPublisher:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual std::string getTransportName () const
 Get a string identifier for the transport provided by this plugin.
virtual void publish (const sensor_msgs::ImageConstPtr &message) const
 Publish an image using the transport associated with this PublisherPlugin.
virtual ~RawPublisher ()

Protected Member Functions

virtual std::string getTopicToAdvertise (const std::string &base_topic) const
 Return the communication topic name for a given base topic.
virtual void publish (const sensor_msgs::Image &message, const PublishFn &publish_fn) const
 Publish an image using the specified publish function. Must be implemented by the subclass.

Detailed Description

The default PublisherPlugin.

RawPublisher is a simple wrapper for ros::Publisher, publishing unaltered Image messages on the base topic.

Definition at line 14 of file raw_publisher.h.


Constructor & Destructor Documentation

virtual image_transport::RawPublisher::~RawPublisher ( ) [inline, virtual]

Definition at line 17 of file raw_publisher.h.


Member Function Documentation

virtual std::string image_transport::RawPublisher::getTopicToAdvertise ( const std::string &  base_topic) const [inline, protected, virtual]

Return the communication topic name for a given base topic.

Defaults to <base topic>/<transport name>.

Reimplemented from image_transport::SimplePublisherPlugin< sensor_msgs::Image >.

Definition at line 37 of file raw_publisher.h.

virtual std::string image_transport::RawPublisher::getTransportName ( ) const [inline, virtual]

Get a string identifier for the transport provided by this plugin.

Implements image_transport::PublisherPlugin.

Definition at line 19 of file raw_publisher.h.

virtual void image_transport::RawPublisher::publish ( const sensor_msgs::ImageConstPtr &  message) const [inline, virtual]

Publish an image using the transport associated with this PublisherPlugin.

Reimplemented from image_transport::PublisherPlugin.

Definition at line 26 of file raw_publisher.h.

virtual void image_transport::RawPublisher::publish ( const sensor_msgs::Image &  message,
const PublishFn publish_fn 
) const [inline, protected, virtual]

Publish an image using the specified publish function. Must be implemented by the subclass.

The PublishFn publishes the transport-specific message type. This indirection allows SimpleSubscriberPlugin to use this function for both normal broadcast publishing and single subscriber publishing (in subscription callbacks).

Implements image_transport::SimplePublisherPlugin< sensor_msgs::Image >.

Definition at line 32 of file raw_publisher.h.


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


image_transport
Author(s): Patrick Mihelich
autogenerated on Fri Jan 3 2014 11:24:09