Skip to content

Preserve planner-specific MoveGroup failure codes in /move_action#3699

Open
eclipse0922 wants to merge 3 commits intomoveit:mainfrom
eclipse0922:debug/preserve-planner-error-code
Open

Preserve planner-specific MoveGroup failure codes in /move_action#3699
eclipse0922 wants to merge 3 commits intomoveit:mainfrom
eclipse0922:debug/preserve-planner-error-code

Conversation

@eclipse0922
Copy link

Summary

Preserve planner-specific non-success MoveItErrorCodes in /move_action plan-only execution instead of always collapsing them to generic FAILURE (99999).

Root cause

planning_pipeline->generatePlan(...) returns false for any non-success planner result. In MoveGroupMoveAction::executeMoveCallbackPlanOnly, that false return currently overwrites res.error_code.val with MoveItErrorCodes::FAILURE even when the planner already set a more specific non-success code such as:

  • INVALID_GROUP_NAME (-15)
  • NO_IK_SOLUTION (-31)
  • other planner-specific request/kinematics failures

That destroys information that downstream action clients need for correct diagnosis and handling.

Change

Only fall back to generic FAILURE when the current code is still SUCCESS or UNDEFINED. If the planner already populated a specific non-success code, preserve it and log that preservation.

Validation

Validated downstream against jazzy / MoveIt 2.12.4 in a live Isaac ROS cuMotion integration harness.

Observed before this patch:

  • direct planner path returned specific failure -31
  • MoveIt-side planner client received -31
  • /move_action still returned generic 99999

Observed after this patch:

  • /move_action preserved the original planner-specific failure code (-31)
  • repeated requests remained stable
  • no stale trajectory reuse
  • no success-with-empty-trajectory regressions on the direct planner path

This also matches the user-visible symptom reported in #3667 where invalid group or unreachable goals lose their original error code and appear as generic failure.

Related

Refs #3667

@mergify
Copy link

mergify bot commented Mar 7, 2026

Please target the main branch for development, we will backport the changes to jazzy for you if approved and if they don't break API.

@eclipse0922 eclipse0922 force-pushed the debug/preserve-planner-error-code branch from c1f3e31 to 64c3d6c Compare March 7, 2026 16:42
@eclipse0922 eclipse0922 changed the base branch from jazzy to main March 7, 2026 16:42
Copy link
Contributor

@nbbrooks nbbrooks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for the contribution!

@nbbrooks nbbrooks closed this Mar 15, 2026
@github-project-automation github-project-automation bot moved this to ✅ Done in MoveIt Mar 15, 2026
@nbbrooks nbbrooks reopened this Mar 15, 2026
@codecov
Copy link

codecov bot commented Mar 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (848c062) to head (64c3d6c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #3699       +/-   ##
==========================================
- Coverage   46.24%   0.00%   -46.23%     
==========================================
  Files         726      51      -675     
  Lines       59483    5938    -53545     
  Branches     7624    1057     -6567     
==========================================
- Hits        27504       0    -27504     
+ Misses      31813    5938    -25875     
+ Partials      166       0      -166     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@eclipse0922 eclipse0922 reopened this Mar 15, 2026
@eclipse0922 eclipse0922 requested a review from nbbrooks March 17, 2026 23:54
@eclipse0922
Copy link
Author

@nbbrooks How do I execute CI?

Current runner version: '2.332.0'
Runner Image Provisioner
Operating System
Runner Image
GITHUB_TOKEN Permissions
Secret source: Actions
Prepare workflow directory
Prepare all required actions
Getting action download info
Error: Unable to resolve action sonarsource/sonarcloud-github-c-cpp, repository not found

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.

2 participants