From 0a98ee94d5b969389bfaf0a14fd9a356a579fd92 Mon Sep 17 00:00:00 2001 From: Dominik Authaler Date: Tue, 13 Feb 2024 06:29:14 +0000 Subject: [PATCH] readded previously missing virtual functions of SubscriberBase for API compatibility Signed-off-by: Dominik Authaler --- include/message_filters/subscriber.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/message_filters/subscriber.h b/include/message_filters/subscriber.h index a05d6c0..6cda5d0 100644 --- a/include/message_filters/subscriber.h +++ b/include/message_filters/subscriber.h @@ -70,6 +70,18 @@ class SubscriberBase virtual ~SubscriberBase() = default; + /** + * \brief Subscribe to a topic (deprecated in favor of NodeInterfaces interface). + */ + [[deprecated]] virtual void subscribe(NodePtr /*node*/, const std::string& /*topic*/, + const rmw_qos_profile_t /*qos*/ = rmw_qos_profile_default) {}; + + /** + * \brief Subscribe to a topic (deprecated in favor of NodeInterfaces interface). + */ + [[deprecated]] virtual void subscribe(NodeType * /*node*/, const std::string& /*topic*/, + const rmw_qos_profile_t /*qos*/ = rmw_qos_profile_default) {}; + /** * \brief Subscribe to a topic. *