Skip to content

Conversation

tahsinkose
Copy link

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)

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)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants