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 f3b8967
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/message_filters/subscriber.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit f3b8967

Please sign in to comment.