From f3b89677a43b2fb8e5f6d0c7df257a0be126209a 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 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/message_filters/subscriber.h b/include/message_filters/subscriber.h index a05d6c0..7a70944 100644 --- a/include/message_filters/subscriber.h +++ b/include/message_filters/subscriber.h @@ -70,6 +70,16 @@ 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. *