resized_publisher.h
Go to the documentation of this file.
2 #include <image_transport_tutorial/ResizedImage.h>
3 
4 class ResizedPublisher : public image_transport::SimplePublisherPlugin<image_transport_tutorial::ResizedImage>
5 {
6 public:
7  virtual std::string getTransportName() const
8  {
9  return "resized";
10  }
11 
12 protected:
13  virtual void publish(const sensor_msgs::Image& message,
14  const PublishFn& publish_fn) const;
15 };
ResizedPublisher::getTransportName
virtual std::string getTransportName() const
Get a string identifier for the transport provided by this plugin.
Definition: resized_publisher.h:7
ResizedPublisher
Definition: resized_publisher.h:4
image_transport::SimplePublisherPlugin< image_transport_tutorial::ResizedImage >::PublishFn
boost::function< void(const image_transport_tutorial::ResizedImage &)> PublishFn
Generic function for publishing the internal message type.
Definition: simple_publisher_plugin.h:173
simple_publisher_plugin.h
ResizedPublisher::publish
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.
Definition: resized_publisher.cpp:5
image_transport::SimplePublisherPlugin
Base class to simplify implementing most plugins to Publisher.
Definition: simple_publisher_plugin.h:93


image_transport
Author(s): Patrick Mihelich
autogenerated on Sat Jan 20 2024 03:14:50