Skip to content

Replace PreciseFlexJointCoords with PFAxis IntEnum + dict#901

Merged
rickwierenga merged 6 commits intomainfrom
pf400-axis-enum
Feb 19, 2026
Merged

Replace PreciseFlexJointCoords with PFAxis IntEnum + dict#901
rickwierenga merged 6 commits intomainfrom
pf400-axis-enum

Conversation

@rickwierenga
Copy link
Member

Summary

  • Replace PreciseFlexJointCoords dataclass with PFAxis(IntEnum) + Dict[int, float], mirroring the KX2 pattern
  • move_to now accepts partial dicts — unspecified axes are filled from current position (e.g. await arm.move_to({PFAxis.RAIL: 300}))
  • Remove unused JointCoords type alias from standard.py

Test plan

  • All 172 existing PreciseFlex backend tests pass

🤖 Generated with Claude Code

Use Dict[int, float] keyed by PFAxis(IntEnum) for joint positions
instead of a dataclass, mirroring the KX2 pattern. move_to now
accepts partial dicts and fills in unspecified axes from current
position.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rickwierenga
Copy link
Member Author

this is to unify it with the kx2 #880

dicts are nicer because you can specify individual joints rather than having to specify them all at once.

rickwierenga and others added 5 commits February 18, 2026 13:13
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rickwierenga rickwierenga merged commit 52f5e68 into main Feb 19, 2026
10 checks passed
@rickwierenga rickwierenga deleted the pf400-axis-enum branch February 19, 2026 01:20
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