00001 #include <image_transport/simple_publisher_plugin.h> 00002 #include <image_transport_tutorial/ResizedImage.h> 00003 00004 class ResizedPublisher : public image_transport::SimplePublisherPlugin<image_transport_tutorial::ResizedImage> 00005 { 00006 public: 00007 virtual std::string getTransportName() const 00008 { 00009 return "resized"; 00010 } 00011 00012 protected: 00013 virtual void publish(const sensor_msgs::Image& message, 00014 const PublishFn& publish_fn) const; 00015 };