Skip to content

Add EndPosition playback via a method config attribute - #1

Open
Nick Hehr (HipsterBrown) wants to merge 1 commit into
mainfrom
end-position-playback
Open

Add EndPosition playback via a method config attribute#1
Nick Hehr (HipsterBrown) wants to merge 1 commit into
mainfrom
end-position-playback

Conversation

@HipsterBrown

Copy link
Copy Markdown
Contributor

Summary

  • New optional method config attribute: JointPositions (default) or EndPosition. Invalid values fail config validation.
  • EndPosition sequences export the EndPosition capture, decode the pose payload via protojson (accepts o_x and oX), and replay with MoveToPosition.
  • The player now takes a per-frame move callback instead of joint inputs, so safe entry, pacing, the gripper track, and Stop-on-exit are shared by both paths. The joint-count check only runs for JointPositions.
  • Model doc updated with the new attribute and recording requirement.

Test plan

  • go vet . && go test . pass
  • New tests: TestConfigMethod, TestBuildSequenceEndPosition, TestRunPacesPoseFrames, TestPlayEndPositionUsesMoveToPosition
  • Hardware check: record an EndPosition sequence and replay with "method": "EndPosition"; if the arm driver rejects the default arm_extra keys on MoveToPosition, set arm_extra to {}

🤖 Generated with Claude Code

https://claude.ai/code/session_01Gy9SjPAUdKsoA3VaMssg97

New optional `method` attribute selects which arm capture to replay:
JointPositions (default, MoveToJointPositions) or EndPosition
(MoveToPosition). Pose payloads are decoded with protojson. The player
now drives frames through a move callback so it is agnostic to the arm
call.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gy9SjPAUdKsoA3VaMssg97
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