Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Plücker-Screw-Twist conversions #62

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

tahsinkose
Copy link

This PR is an attempt to improve the issue reported in #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)

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

Choose a reason for hiding this comment

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

Suggested change
return Plucker((self.v / self.theta) - self.pitch * l, l)
return Plucker(self.v / self.theta - self.pitch * l, l)

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