← 返回首页
Implement Plücker-Screw-Twist conversions by tahsinkose · Pull Request #62 · rai-opensource/spatialmath-python · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Implement Plücker-Screw-Twist conversions#62

Open
tahsinkose wants to merge 5 commits into
rai-opensource:masterfrom
tahsinkose:plücker-screw-twist

Hidden character warning

The head ref may contain hidden characters: "pl\u00fccker-screw-twist"
Open

Implement Plücker-Screw-Twist conversions#62
tahsinkose wants to merge 5 commits into
rai-opensource:masterfrom
tahsinkose:plücker-screw-twist

Conversation

Copy link
Copy Markdown

This PR is an attempt to improve the issue reported in https://github.com/petercorke/spatialmath-python/issues/61. While implementing these classes, I noticed that Line3 is a general abstraction that covers them all, therefore I didn't implement the additional validity check in the Line3 constructor as I initially suggested. Although, the docs in there should be improved in the scope of this PR.

An extensive study of the subject (based on the book of @petercorke) can be found in this Jupyter notebook. (The GIFs there are quite large to be rendered in an optimal way, I'll update the link once I move the post to a more convenient place)

Comment thread spatialmath/twist.py
def ToPlucker(self):
if abs(self.theta) > 1e-4:
l = self.w / self.theta
return Plucker((self.v / self.theta) - self.pitch * l, l)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment
Suggested change
return Plucker((self.v / self.theta) - self.pitch * l, l)
return Plucker(self.v / self.theta - self.pitch * l, l)

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Footer

© 2026 GitHub, Inc.