21 #ifndef INCLUDE_FKIE_MESSAGE_FILTERS_PUBLISHER_BASE_H_ 22 #define INCLUDE_FKIE_MESSAGE_FILTERS_PUBLISHER_BASE_H_ 24 #include <boost/signals2.hpp> 56 virtual std::string
topic()
const = 0;
Base class for ROS publishers in a filter pipeline.
boost::signals2::signal< void()> disable_signal_
Base class for ROS subscribers in a filter pipeline.
void update_subscriber_state()
Cause all linked subscribers to subscribe or unsubscribe to their ROS topics.
boost::signals2::signal< void()> enable_signal_
virtual std::string topic() const =0
Return advertised topic name.
std::tuple< boost::signals2::connection, boost::signals2::connection > link_with_subscriber(SubscriberBase &sub)
Add a new subscriber that will be controlled by this publisher.
virtual bool is_active() const =0
Check if the publisher is active.