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. *