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;
virtual bool is_configured() const =0
Check if the subscriber is properly configured.
virtual std::string topic() const =0
Return the subscribed topic name.
Base class for ROS publishers in a filter pipeline.
virtual ~SubscriberBase()
virtual void subscribe_on_demand(PublisherBase &pub)
Subscribe to the configured ROS topic whenever the given publisher is active.
virtual void subscribe()
Subscribe to the configured ROS topic.
Base class for ROS subscribers in a filter pipeline.
void link_with_publisher(PublisherBase &pub)
Add self to the list of subscribers which are controlled by a publisher.
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 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.
boost::signals2::connection conn1_
boost::signals2::connection conn2_