Go to the documentation of this file.
35 #ifndef IMAGE_TRANSPORT_SIMPLE_SUBSCRIBER_PLUGIN_H
36 #define IMAGE_TRANSPORT_SIMPLE_SUBSCRIBER_PLUGIN_H
39 #include <boost/scoped_ptr.hpp>
62 class SimpleSubscriberPlugin :
public SubscriberPlugin
105 const TransportHints& transport_hints)
109 simple_impl_.reset(
new SimpleSubscriberPluginImpl(param_nh));
113 tracked_object, transport_hints.getRosHints());
125 struct SimpleSubscriberPluginImpl
136 boost::scoped_ptr<SimpleSubscriberPluginImpl>
simple_impl_;
const ros::NodeHandle param_nh_
virtual std::string getTransportName() const =0
Get a string identifier for the transport provided by this plugin.
boost::scoped_ptr< SimpleSubscriberPluginImpl > simple_impl_
virtual void shutdown()
Unsubscribe the callback associated with this SubscriberPlugin.
boost::function< void(const sensor_msgs::ImageConstPtr &)> Callback
virtual void subscribeImpl(ros::NodeHandle &nh, const std::string &base_topic, uint32_t queue_size, const Callback &callback, const ros::VoidPtr &tracked_object, const TransportHints &transport_hints)
Subscribe to an image transport topic. Must be implemented by the subclass.
virtual uint32_t getNumPublishers() const
Returns the number of publishers this subscriber is connected to.
SimpleSubscriberPluginImpl(const ros::NodeHandle &nh)
virtual std::string getTopic() const
Get the transport-specific communication topic.
Subscriber subscribe(const std::string &topic, uint32_t queue_size, const boost::function< void(C)> &callback, const VoidConstPtr &tracked_object=VoidConstPtr(), const TransportHints &transport_hints=TransportHints())
const ros::NodeHandle & nh() const
Returns the ros::NodeHandle to be used for parameter lookup.
virtual void internalCallback(const typename M::ConstPtr &message, const Callback &user_cb)=0
Process a message. Must be implemented by the subclass.
virtual ~SimpleSubscriberPlugin()
virtual std::string getTopicToSubscribe(const std::string &base_topic) const
Return the communication topic name for a given base topic.
image_transport
Author(s): Patrick Mihelich
autogenerated on Sat Jan 20 2024 03:14:50