Deprecate get_status() on action client goal handles in favor of get_status_code() - #3307
Draft
dv-picknik wants to merge 3 commits into
Draft
dv-picknik wants to merge 3 commits into
dv-picknik wants to merge 3 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: David Vadovszki <david.vadovszki@picknik.ai>
…status Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: David Vadovszki <david.vadovszki@picknik.ai>
…code() Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: David Vadovszki <david.vadovszki@picknik.ai>
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.
Description
Deprecates
get_status()onClientGoalHandleandGenericClientGoalHandlein favor ofget_status_code(), as proposed in #3306.This branch builds on #3292, so its first two commits are that PR. Only the last commit, "Deprecate get_status() on client goal handles in favor of get_status_code()", belongs here. I will rebase once #3292 merges.
[[deprecated("use get_status_code() instead")]]goes beforeRCLCPP_ACTION_PUBLIC, following deprecate rclcpp::spin_some and rclcpp::spin_all #2848.get_status_code()reads the status under the lock instead of callingget_status().rclcpp_actionuseget_status_code(). The out-of-range tests still callget_status()to check that it returns the raw value, insideRCPPUTILS_DEPRECATION_WARNING_OFF_START/STOP.This should not be backported. Nav2 and MoveIt 2 should switch to
get_status_code()before this merges. #3306 tracks that.Part of #3306
Is this user-facing behavior change?
Code that calls
get_status()on an action client goal handle gets a deprecation warning on rolling. Behavior does not change.Did you use Generative AI?
Yes. Claude Code with Claude Opus 5.5 wrote the code, the tests and this description. I reviewed the change, then built and tested it.
Additional Information
I tested on rolling with rclcpp and rcl built from source. All
rclcpp_actiontests and linters pass, andrclcpp_actionbuilds with no warnings.