Fix auto-added MoveIt controller parameters - #3825
Conversation
Signed-off-by: Dennis Lanov <dennis.lanov@gmail.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthrough
ChangesController default parameter generation
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This localized change restores the missing default controller fields for the Auto Add path and includes passing regression coverage; no actionable merge-blocking risk remains beyond normal checks and review. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Description
Fixes #3796.
Controllers::addDefaultControllers()previously used the three-argumentaddController()overload, which only populated the controller name, type, and joints. As a result, additional fields defined byMoveItControllers, including the requiredaction_ns, were omitted from controllers created by the Setup Assistant's Auto Add path.This change populates additional controller fields using
getAdditionalControllerFields()and each field'sgetDefaultValue()before adding the controller. This keeps Auto Add behavior consistent with manual controller creation. Controller types without additional fields, such asROS2Controllers, retain their existing behavior.A regression test verifies that auto-added MoveIt controllers contain:
action_ns: follow_joint_trajectorydefault: trueTesting
Validated against ROS 2 Jazzy with an isolated
moveit_setup_controllersbuild:colcon build --packages-select moveit_setup_controllers— passedcolcon test --packages-select moveit_setup_controllers— passedControllersTest.AddDefaultControllersMoveItAdditionalFields— passedControllersTest.AddDefaultControllers— passedpre-commit— passedclang-format-14 --dry-run --Werror— passedChecklist
Summary by CodeRabbit
Bug Fixes
Tests