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

Request: Interpolation method with linear displacement and SLERP rotation #273

Closed
scottshambaugh opened this issue Sep 18, 2023 · 4 comments

Comments

@scottshambaugh
Copy link

scottshambaugh commented Sep 18, 2023

I am just learning the library so apologies if there's an easy way to do this already. Looking at the gallery example of interpolation methods between two poses, I am looking for (and do not see) a trajectory that takes a straight line path. I am looking for an interpolation method that linearly interpolates the displacement, such that it follows the path of the black arrow in the image. And then the rotation along that trajectory would just be calculated with SLERP.

image

Thank you for the library btw, I think that I'm going to find this immensely useful! I've picked up maintenance of the 3D plotting module of matplotlib so please don't hesitate to ping me on issues over there if there is something you're looking for.

@AlexanderFabisch
Copy link
Member

I am looking for (and do not see) a trajectory that takes a straight line path. I am looking for an interpolation method that linearly interpolates the displacement, such that it follows the path of the black arrow in the image. And then the rotation along that trajectory would just be calculated with SLERP.

Yes, that would be a useful feature. It's not directly available yet. Not sure for which representation I should make it available though. ScLERP is the natural interpolation for exp. coordinates and dual quaternions, but LERP + SLERP seems more appropriate for position + quaternion. What do you think?

I've picked up maintenance of the 3D plotting module of matplotlib so please don't hesitate to ping me on issues over there if there is something you're looking for.

Thanks, that's good to know! :) Also feel free to let me know if there is something that can be improved in the usage of matplotlib for 3D plotting in pytransform3d.

@scottshambaugh
Copy link
Author

I do think it makes most sense for the position + quaternion representation, yes. I don't know of a catchy name for it though :)

@AlexanderFabisch
Copy link
Member

This has been merged to the develop branch through #274 and will be part of the next release.

@AlexanderFabisch
Copy link
Member

Released with 3.5.0 today

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

No branches or pull requests

2 participants