resized_subscriber.h
Go to the documentation of this file.
2 #include <image_transport_tutorial/ResizedImage.h>
3 
4 class ResizedSubscriber : public image_transport::SimpleSubscriberPlugin<image_transport_tutorial::ResizedImage>
5 {
6 public:
7  virtual ~ResizedSubscriber() {}
8 
9  virtual std::string getTransportName() const
10  {
11  return "resized";
12  }
13 
14 protected:
15  virtual void internalCallback(const typename image_transport_tutorial::ResizedImage::ConstPtr& message,
16  const Callback& user_cb);
17 };
simple_subscriber_plugin.h
image_transport::SubscriberPlugin::Callback
boost::function< void(const sensor_msgs::ImageConstPtr &)> Callback
Definition: subscriber_plugin.h:115
ResizedSubscriber::~ResizedSubscriber
virtual ~ResizedSubscriber()
Definition: resized_subscriber.h:7
ResizedSubscriber::getTransportName
virtual std::string getTransportName() const
Get a string identifier for the transport provided by this plugin.
Definition: resized_subscriber.h:9
ResizedSubscriber
Definition: resized_subscriber.h:4
ResizedSubscriber::internalCallback
virtual void internalCallback(const typename image_transport_tutorial::ResizedImage::ConstPtr &message, const Callback &user_cb)
Definition: resized_subscriber.cpp:5
image_transport::SimpleSubscriberPlugin
Base class to simplify implementing most plugins to Subscriber.
Definition: simple_subscriber_plugin.h:94


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