Go to the documentation of this file.
21 #ifndef INCLUDE_FKIE_MESSAGE_FILTERS_SUBSCRIBER_BASE_H_
22 #define INCLUDE_FKIE_MESSAGE_FILTERS_SUBSCRIBER_BASE_H_
24 #include <boost/signals2.hpp>
75 virtual std::string
topic()
const = 0;
void link_with_publisher(PublisherBase &pub)
Add self to the list of subscribers which are controlled by a publisher.
friend class PublisherBase
boost::signals2::connection conn1_
virtual void unsubscribe_impl()=0
Implement how to unsubscribe from the configured ROS topic.
virtual void subscribe_impl()=0
Implement how to subscribe to the configured ROS topic.
virtual void unsubscribe()
Unsubscribe from the configured ROS topic.
void unlink_from_publisher()
Remove self from the list of subscribers which are controlled by a publisher.
virtual bool is_configured() const =0
Check if the subscriber is properly configured.
virtual ~SubscriberBase()
boost::signals2::connection conn2_
virtual std::string topic() const =0
Return the subscribed topic name.
virtual void subscribe()
Subscribe to the configured ROS topic.
virtual void subscribe_on_demand(PublisherBase &pub)
Subscribe to the configured ROS topic whenever the given publisher is active.