Skip to content

Deprecate get_status() on action client goal handles in favor of get_status_code() - #3307

Draft
dv-picknik wants to merge 3 commits into
ros2:rollingfrom
dv-picknik:feature/2482-deprecate-get-status
Draft

dv-picknik wants to merge 3 commits into
ros2:rollingfrom
dv-picknik:feature/2482-deprecate-get-status

Conversation

@dv-picknik

Copy link
Copy Markdown
Contributor

Description

Deprecates get_status() on ClientGoalHandle and GenericClientGoalHandle in favor of get_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 before RCLCPP_ACTION_PUBLIC, following deprecate rclcpp::spin_some and rclcpp::spin_all #2848.
  • get_status_code() reads the status under the lock instead of calling get_status().
  • Tests and benchmarks in rclcpp_action use get_status_code(). The out-of-range tests still call get_status() to check that it returns the raw value, inside RCPPUTILS_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_action tests and linters pass, and rclcpp_action builds with no warnings.

dv-picknik and others added 3 commits September 28, 2026 15:07
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant