Skip to content

Fix/twist pitch clean#196

Open
petercorke wants to merge 2 commits into
rai-opensource:masterfrom
petercorke:fix/twist-pitch-clean
Open

Fix/twist pitch clean#196
petercorke wants to merge 2 commits into
rai-opensource:masterfrom
petercorke:fix/twist-pitch-clean

Conversation

@petercorke

Copy link
Copy Markdown
Collaborator

No description provided.

The pitch calculation was missing the denominator, returning
an incorrect value. Pitch should be normalized by |w|²:

pitch = (w · v) / (w · w)

This represents the translation distance per radian along the screw axis.
All 25 twist tests pass.
@codecov-commenter

codecov-commenter commented Jul 27, 2026

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Twist3.pitch previously omitted the |w|^2 denominator; this only
happened to work when w was a unit vector, which UnitRevolute always
produces. Add a case with non-unit w to catch that regression.
@petercorke
petercorke force-pushed the fix/twist-pitch-clean branch from b25b5ab to 3b97759 Compare July 27, 2026 03:46
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.

2 participants