Commit 51849b3
* Support parallel_gripper_action_controller in Setup Assistant
moveit_resources migrated the gripper from position_controllers/
GripperActionController (Humble/Iron) to parallel_gripper_action_controller/
GripperActionController (Jazzy and newer). Both are single-joint
GripperActionControllers that take a `joint` parameter.
Teach moveit_setup_controllers to recognize the new type:
- ros2_controllers_config: emit the `joint` (singular) parameter for either
gripper controller type, instead of only the old one (the old check
misclassified the new type and emitted a `joints` list).
- ros2_controllers: offer the new type in getAvailableTypes().
- test_controllers (ParsePanda): accept either gripper type so the test is
distro-agnostic (the panda config now ships the Jazzy+ type).
* Address review: guard gripper joint index, add panda gripper output test
- ros2_controllers_config: only write the singular `joint` parameter when the
gripper controller actually has a joint, so joints_[0] is never indexed out
of bounds for a gripper with an empty joint list.
- test_controllers: add OutputPandaGripperUsesSingularJoint, which generates
the panda ros2_controllers.yaml and asserts the GripperActionController is
emitted with the singular `joint` key (not the `joints` list) -- coverage the
gripper-less OutputFanuc test could not provide.
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 0a18b73 commit 51849b3
3 files changed
Lines changed: 40 additions & 4 deletions
File tree
- moveit_setup_assistant/moveit_setup_controllers
- include/moveit_setup_controllers
- src
- test
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
| |||
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
196 | 202 | | |
197 | 203 | | |
198 | 204 | | |
199 | | - | |
| 205 | + | |
200 | 206 | | |
| 207 | + | |
| 208 | + | |
201 | 209 | | |
202 | 210 | | |
203 | 211 | | |
| |||
Lines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
96 | 101 | | |
97 | 102 | | |
98 | 103 | | |
| |||
122 | 127 | | |
123 | 128 | | |
124 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
125 | 150 | | |
126 | 151 | | |
127 | 152 | | |
| |||
0 commit comments