-
Notifications
You must be signed in to change notification settings - Fork 417
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate the
void shared_ptr<MessageT>
subscription callback signa…
…tures (#1713) * Deprecated `shared_ptr<MessageT>` sub callbacks Addresses #1619. Signed-off-by: Abrar Rahman Protyasha <abrar@openrobotics.org> * Resolve deprecated subscription callbacks in tests Specifically, `void shared_ptr<MessageT>` subscription callbacks have been migrated to `void shared_ptr<const MessageT>` subscription callbacks. This change has been performed only on the test files that do not actually house unit tests for the `AnySubscriptionCallback` class. For unit tests that actually target the deprecated `set` functions, the deprecation warnings have to be avoided. This patch will be introduced in a separate commit. Signed-off-by: Abrar Rahman Protyasha <abrar@openrobotics.org> * Suppress deprecation warnings in unit tests This commit specifically introduces suppression of the deprecation warnings produced while compiling unit tests for the `AnySubscriptionCallback` class. The macro mechanics to conditionally include the `deprecated` attribute is not ideal, but the diagnostic pragma solution (`# pragma GCC diagnostic ignored`) did not work for these unit tests, possibly because of the way gtest is initializing the necessary `InstanceContext` objects. A `TODO` directive has been left to figure out a better way to address this warning suppression. Signed-off-by: Abrar Rahman Protyasha <abrar@openrobotics.org> * Fix shared ptr callback in wait_for_message Moving away from deprecated signatures. Signed-off-by: Abrar Rahman Protyasha <abrar@openrobotics.org> * `rclcpp_action`: Fix deprecated subscr. callbacks Signed-off-by: Abrar Rahman Protyasha <abrar@openrobotics.org> * `rclcpp_lifecycle`: Fix deprecated sub callbacks Signed-off-by: Abrar Rahman Protyasha <abrar@openrobotics.org>
- Loading branch information
Abrar Rahman Protyasha
authored
Aug 26, 2021
1 parent
d0cd6bb
commit ecb81ef
Showing
8 changed files
with
29 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters