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 };
virtual void publish(const sensor_msgs::Image &message, const PublishFn &publish_fn) const
boost::function< void(const image_transport_tutorial::ResizedImage &)> PublishFn
Generic function for publishing the internal message type.
virtual std::string getTransportName() const
Get a string identifier for the transport provided by this plugin.
Base class to simplify implementing most plugins to Publisher.


image_transport
Author(s): Patrick Mihelich
autogenerated on Mon Feb 28 2022 22:31:45