Repository navigation
Populate MoveItErrorCodes.message in pilz_industrial_motion_planner - #3998
vijaykoundinya wants to merge 1 commit into
Conversation
Pilz trajectory generators, trajectory conversion helpers, blender, and sequence action/service capabilities currently log detailed error messages (such as the specific joint and velocity/acceleration limit violated, IK failure, or invalid blend radius) while leaving MoveItErrorCodes.message empty on the returned response. Populate error_code.message across pilz_industrial_motion_planner: - Add an ABI-compatible verifySampleJointLimits overload taking an optional std::string* error_message and return the limit violation details from generateJointTrajectory in error_code.message. - Append error_code.message when throwing trajectory conversion failures in LIN, CIRC, and POLYLINE generators. - Set res.error_code.message = ex.what() in TrajectoryGenerator::generate and clear it on success. - Propagate error_code.message through TrajectoryBlenderTransitionWindow, PlanComponentsBuilder, CommandListManager, MoveGroupSequenceAction, MoveGroupSequenceService, and CommandPlanner::getPlanningContext. - Add unit test assertions covering verifySampleJointLimits, generateJointTrajectory, TrajectoryGeneratorCommonTest, and TrajectoryGeneratorLINTest. Signed-off-by: Vijay Koundinya <[email protected]> Co-authored-by: Cursor <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Tick the box to add this pull request to the merge queue (same as
|
Description
pilz_industrial_motion_plannercurrently logs detailed planning failure diagnostics (specific joint name and violated velocity/acceleration/deceleration limit, IK failure, invalid blend radius, request validation errors, etc.) viaRCLCPP_ERROR*, while leavingMoveItErrorCodes.messageempty on the returnedMotionPlanResponse/MotionSequenceResponse.This PR populates and propagates
error_code.messageacrosspilz_industrial_motion_planner:verifySampleJointLimitsoverload acceptingstd::string* error_messageand populateerror_code.messagein bothgenerateJointTrajectoryoverloads (clearing it onSUCCESS).error_code.messageinLinTrajectoryConversionFailure/CircTrajectoryConversionFailurethrown by LIN, CIRC, and POLYLINE generators.res.error_code.message = ex.what()inTrajectoryGenerator::generate()(and clear it insetSuccessResponse()).error_code.messagethroughTrajectoryBlenderTransitionWindow,PlanComponentsBuilder,CommandListManager,MoveGroupSequenceAction,MoveGroupSequenceService, andCommandPlanner::getPlanningContext.verifySampleJointLimits,generateJointTrajectory,TrajectoryGeneratorCommonTest, andTrajectoryGeneratorLINTest.Related:
error_code.message)error_code.valinCommandListManager; this PR intentionally leaveserror_code.valunchanged there to avoid conflicts)This change is ABI-compatible (adds a new overload without changing existing signatures) and is a good candidate for
backport-jazzy.Checklist
Summary by CodeRabbit