Public Member Functions | List of all members
message_filters::SubscriberBase Class Referenceabstract

#include <subscriber.h>

Inheritance diagram for message_filters::SubscriberBase:
Inheritance graph
[legend]

Public Member Functions

virtual void subscribe (ros::NodeHandle &nh, const std::string &topic, uint32_t queue_size, const ros::TransportHints &transport_hints=ros::TransportHints(), ros::CallbackQueueInterface *callback_queue=0)=0
 Subscribe to a topic. More...
 
virtual void subscribe ()=0
 Re-subscribe to a topic. Only works if this subscriber has previously been subscribed to a topic. More...
 
virtual void unsubscribe ()=0
 Force immediate unsubscription of this subscriber from its topic. More...
 
virtual ~SubscriberBase ()
 

Detailed Description

Definition at line 48 of file subscriber.h.

Constructor & Destructor Documentation

◆ ~SubscriberBase()

virtual message_filters::SubscriberBase::~SubscriberBase ( )
inlinevirtual

Definition at line 51 of file subscriber.h.

Member Function Documentation

◆ subscribe() [1/2]

virtual void message_filters::SubscriberBase::subscribe ( ros::NodeHandle nh,
const std::string &  topic,
uint32_t  queue_size,
const ros::TransportHints transport_hints = ros::TransportHints(),
ros::CallbackQueueInterface callback_queue = 0 
)
pure virtual

Subscribe to a topic.

If this Subscriber is already subscribed to a topic, this function will first unsubscribe.

Parameters
nhThe ros::NodeHandle to use to subscribe.
topicThe topic to subscribe to.
queue_sizeThe subscription queue size
transport_hintsThe transport hints to pass along
callback_queueThe callback queue to pass along

Implemented in message_filters::Subscriber< M >.

◆ subscribe() [2/2]

virtual void message_filters::SubscriberBase::subscribe ( )
pure virtual

Re-subscribe to a topic. Only works if this subscriber has previously been subscribed to a topic.

Implemented in message_filters::Subscriber< M >.

◆ unsubscribe()

virtual void message_filters::SubscriberBase::unsubscribe ( )
pure virtual

Force immediate unsubscription of this subscriber from its topic.

Implemented in message_filters::Subscriber< M >.


The documentation for this class was generated from the following file:


message_filters
Author(s): Josh Faust, Vijay Pradeep, Dirk Thomas
autogenerated on Mon Feb 28 2022 23:33:49