20 #ifndef INCLUDE_FKIE_MESSAGE_FILTERS_PUBLISHER_H_ 21 #define INCLUDE_FKIE_MESSAGE_FILTERS_PUBLISHER_H_ 50 template<
class M,
template<
typename>
class Translate = RosMessageEvent>
72 virtual bool is_active()
const noexcept
override;
77 virtual std::string
topic()
const noexcept
override;
112 virtual void receive (
const typename Translate<M>::FilterType& t) noexcept
override;
Base class for data consumers.
boost::function< void(const SingleSubscriberPublisher &)> SubscriberStatusCallback
Base class for ROS publishers in a filter pipeline.
Publish consumed data on a ROS topic.
void advertise(ros::NodeHandle &nh, const std::string &topic, uint32_t queue_size, bool latch=false, ros::CallbackQueueInterface *callback_queue=nullptr) noexcept
Advertise ROS topic.
virtual void receive(const typename Translate< M >::FilterType &t) noexcept override
virtual std::string topic() const noexcept override
Return the configured ROS topic.
virtual bool is_active() const noexcept override
Check if the ROS publisher has at least one subscriber.
Publisher() noexcept
Constructs an empty publisher.