00001 #include <image_transport/simple_subscriber_plugin.h> 00002 #include <image_transport_tutorial/ResizedImage.h> 00003 00004 class ResizedSubscriber : public image_transport::SimpleSubscriberPlugin<image_transport_tutorial::ResizedImage> 00005 { 00006 public: 00007 virtual ~ResizedSubscriber() {} 00008 00009 virtual std::string getTransportName() const 00010 { 00011 return "resized"; 00012 } 00013 00014 protected: 00015 virtual void internalCallback(const typename image_transport_tutorial::ResizedImage::ConstPtr& message, 00016 const Callback& user_cb); 00017 };