Skip to content

Commit

Permalink
readded previously missing virtual functions of SubscriberBase for AP…
Browse files Browse the repository at this point in the history
…I compatibility

Signed-off-by: Dominik Authaler <[email protected]>
  • Loading branch information
authaldo committed Feb 13, 2024
1 parent fdcc601 commit 0a98ee9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions include/message_filters/subscriber.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 0a98ee9

Please sign in to comment.