Skip to content

MechanicalGripper: state tool_center_point from the flange - #1268

Merged
BioCam merged 1 commit into
PyLabRobot:mainfrom
BioCam:mechanical-gripper-tcp-from-flange
Sep 13, 2026
Merged

MechanicalGripper: state tool_center_point from the flange#1268
BioCam merged 1 commit into
PyLabRobot:mainfrom
BioCam:mechanical-gripper-tcp-from-flange

Conversation

@BioCam

@BioCam BioCam commented Sep 13, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #1249. MechanicalGripper documents tool_center_point as the offset from the flange it is mounted on (proximal_joint), but stored it from the gripper's corner. For the iSWAP, whose joint sits 13 mm inside the gripper, that reported 150.7 mm instead of the firmware's 137.7.

  • tool_center_point is now stored and serialized from the end-effector's - in this case the mechanical gripper's - proximal_joint, as documented.
  • length and the finger placement add the joint where they need the member's frame; finger and pad positions are unchanged.

Tests: tcp() builds the flange offset, plus one test that moving the joint leaves the tool centre point and length unchanged. Full suite passes (3253 passed, 4 skipped).

🤖 Generated with Claude Code

…documented

`tool_center_point` was stored from the gripper's own corner, while the module
and the property both define it as the offset from the flange the tool is
mounted on. A caller passing the offset as documented got a grip centre and a
`length` short by wherever the joint sits inside the member.

The offset is now taken, stored and serialized from `proximal_joint`; `length`
and the finger placement add the joint where they need the member's frame.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@BioCam
BioCam requested a review from a team as a code owner September 13, 2026 21:30
@BioCam
BioCam merged commit aa8011f into PyLabRobot:main Sep 13, 2026
38 of 39 checks passed
@BioCam
BioCam deleted the mechanical-gripper-tcp-from-flange branch September 13, 2026 22:00
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.

1 participant