Repository navigation
panda_moveit_config, fanuc_moveit_config: correct the controller spawner and static TF arguments - #221
Conversation
The demo.launch.py files of panda_moveit_config and fanuc_moveit_config have two defects. This commit corrects both defects. The controller spawners do not receive a parameter file. The controller_manager node reads ros2_controllers.yaml, but the controller nodes do not read it. Each controller therefore starts with no parameters and fails to initialize. The user can plan a motion, but the user cannot run it. The spawner program has a --param-file option that loads the file into the controller node before configuration. This commit adds the option to each spawner. The static_transform_publisher node no longer accepts positional arguments. It requires --frame-id and --child-frame-id. The node therefore stops, and no node publishes the world frame. This commit changes the arguments to the named form. Both options exist since Humble. The change is safe for every distro in CI. Co-Authored-By: Claude Opus 5 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (2)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe Fanuc and Panda demo launch files now use named static transform arguments. Their controller spawners now receive the distro-specific ChangesLaunch configuration
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The demo launches now provide controller parameters and publish the intended world-frame identity transforms, restoring controller activation and trajectory execution without an outstanding current-head risk. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
The
demo.launch.pyfiles ofpanda_moveit_configandfanuc_moveit_confighave two defects. This pull request corrects both defects. I found both defects on ROS 2 Lyrical, but the corrections apply to all distros.Defect 1: the controllers do not start
The controller spawners do not receive a parameter file. The
controller_managernode readsros2_controllers.yaml, but the controller nodes do not read it. Each controller therefore starts with no parameters, and initialization fails:ros2 control list_controllersthen shows no active controller. The user can plan a motion in RViz, but the user cannot run the motion. The Execute button has no action server to call.The
spawnerprogram has a--param-fileoption. The option loads the parameter file into the controller node before configuration. This pull request gives the option to each spawner. Both launch files already hold the correct path in theros2_controllers_pathvariable.Defect 2: the static transform publisher stops
The
static_transform_publishernode no longer accepts positional arguments. It requires--frame-idand--child-frame-id:The node stops, and no node publishes the
worldframe. This pull request changes the arguments to the named form. The publisher sends the identity transform if you give no translation and no rotation.Changes
panda_moveit_config/launch/demo.launch.py--param-fileto thejoint_state_broadcaster,panda_arm_controllerandpanda_hand_controllerspawners.--frame-id world --child-frame-id panda_link0.fanuc_moveit_config/launch/demo.launch.py--param-fileto thejoint_state_broadcasterandfanuc_controllerspawners.--frame-id world --child-frame-id base_link.Compatibility
Both options are old enough for every distro in this repository's CI matrix:
controller_managerspawnerhas--param-filesince Humble.tf2_rosstatic_transform_publisherhas--frame-idand--child-frame-idsince Humble. Humble accepts the positional form, but it prints a deprecation warning.The change is therefore safe for Humble, Jazzy, Kilted and Rolling/Resolute.
Testing
I tested
panda_moveit_configon Ubuntu 26.04 (Resolute) with ROS 2 Lyrical binary packages. I installed MoveIt 2.15.0 from the build farm, and I replaced only this launch file.Before the change:
After the change:
The
static_transform_publishernode stays alive, andtf2_echo world panda_link0returns the identity transform. Both/panda_arm_controller/follow_joint_trajectoryand/panda_hand_controller/gripper_cmdare available, so trajectory execution works again.Checklist
black(pre-commit passes).MIGRATION.mdnote.🤖 Generated with Claude Code
Summary by CodeRabbit