fix(rclcpp_action): allow publishing feedback in canceling state (fixes #3283) #3397
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.36) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 188 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.314
Real PR Conversation Timeline
1 comments
"Review active on #3397"
general
weight: 0.35
Aaravanand00
Description
Per ROS 2 REP-161 (Action Design),
CANCELINGis an active (non-terminal) state where the action server is performing graceful cancellation or cleanup procedures. During this state, an action server should be able to publish progress or feedback to the client (e.g., reporting deceleration or cancellation progress).Previously,
ServerGoalHandle::publish_feedback()checkedif (!is_executing()), which inadvertently dropped feedback and emitted a warning whenever a goal transitioned into theCANCELINGstate (#3283).This PR:
ServerGoalHandle::publish_feedback()to permit publishing whenis_executing()oris_canceling().publish_feedback_cancelingandpublish_feedback_after_canceledunit tests inrclcpp_action/test/test_server_goal_handle.cppand verifies feedback callback counters.publish_feedback_cancelinginrclcpp_action/test/test_server.cpp.Fixes #3283
Is this user-facing behavior change?
Yes, action servers can now publish feedback messages while a goal handle is in the
CANCELINGstate, rather than having the feedback ignored with a warning log.Did you use Generative AI?
Yes I was used to assist with code navigation, test case structuring, and verification.
Additional Information
ament_cpplint(0 problems found).ament_uncrustify(0 code style divergence).