Fixing deprecated code for Jazzy + Adding support of Kilted#43
Merged
Conversation
samuelsadok
reviewed
Nov 20, 2025
samuelsadok
left a comment
Member
There was a problem hiding this comment.
Thanks for the PR. The high level motivation seems good. Some comments on the implementation:
- I prefer to have only the smallest possible difference is inside the
#if. So something likeIn this case you can actually re-use the samerclcpp::QoS srv_qos(rclcpp::KeepAll{}); #if auto srv_qos_profile = srv_qos; #else auto srv_qos_profile = srv_qos.get_rmw_qos_profile(); #endif
srv_qos_profilefor both instances to save on lines of code. - Formatting:
#ifshould not be indented - If you have a link that documents the deprecation, you can put it in a comment.
Contributor
Author
|
@samuelsadok Thanks for the fast response, I implemented your suggestions. |
samuelsadok
reviewed
Nov 21, 2025
Contributor
Author
|
Quickly fixed in the train on my phone. Will test build+run at home tomorrow |
Contributor
Author
|
Tested build+execution. Looks fine but I cannot test with hardware and cannot test calling the services. |
samuelsadok
approved these changes
Nov 25, 2025
samuelsadok
left a comment
Member
There was a problem hiding this comment.
Looks good now! A hardware test is no needed here because it's a minimal change and high up in the stack so if the compile passes that's enough.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello,
I was bothered by the following deprecation warning on ROS 2 Jazzy and also the fact that I couldn't build on ROS 2 Kilted:
I quickly fixed this by using a if macro against the version of RCLCPP and using the new ROS syntax for the new versions.
This change does build and execute under Humble, Jazzy, Kilted and looks alright to me. I couldn't test with hardware.