Pinocchio: Linear Interpolation between two SE3s

Created on 30 Jan 2020  路  8Comments  路  Source: stack-of-tasks/pinocchio

I am working on a problem which needs to insert interpolation poses between initial SE3 and final SE3 with respect to time knots.

The issue is how to interpolate the middle poses for two rotation matrices.

I am wondering if there is a library to do that in Pinocchio? such as spherical linear interpolation (SLERP)?

Most helpful comment

Anyway, @ddliugit for your specific problem, you can workaround the issue by using something like

M = a * exp6( u * log6(a.inverse()*b))

where a and b are your SE3 objects, and u is in [0,1].

All 8 comments

I am using python library. How can I expose this API to python

As far as I know, it isn't bound.

how to bind that API with python?

I confirm it is not bound. There is a specific issue on it, but we closed it because we did not plan to work on it https://github.com/stack-of-tasks/pinocchio/issues/977, it can be found in the Python bindings project.

@ddliugit if you want to make the bindings you can take inspiration from the existing ones (https://github.com/stack-of-tasks/pinocchio/tree/master/bindings/python). We would all be very grateful if you made this addition to Pinocchio! But I warn you it requires a considerable level of expertise and it is no easy task for a newcomer

Thanks.

Converting to python is difficult and I will try to do that if I am available.

Anyway, @ddliugit for your specific problem, you can workaround the issue by using something like

M = a * exp6( u * log6(a.inverse()*b))

where a and b are your SE3 objects, and u is in [0,1].

Thanks!

That's a good idea. I will try that!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GiulioRomualdi picture GiulioRomualdi  路  10Comments

nim65s picture nim65s  路  8Comments

ahoarau picture ahoarau  路  12Comments

cmastalli picture cmastalli  路  12Comments

astumpf picture astumpf  路  9Comments