Closed richardrl closed 4 months ago
What is your use case? If you are not interested in batching, I guess numpy
or casadi
probably should give you a faster fk (for casadi
especially if you are using common subexpression elimination, see https://github.com/ami-iit/adam/pull/86).
By the way, how are you computing self.fast_c
in your snippet? To get some a fast optimization-based IK, I guess you have some sort of fast FK to use inside the cost function?
@traversaro Thanks for your comment - the problem was not using the jitted version of forward kinematics. It is close to 0 compute time with the jitted version.
Hi, Is there any way to get a fast forward kinematics from this library?
Here's the speed for inverse kinematics and the speed for forward kinematics: IK time 0.0021796226501464844 FK time 0.22966623306274414
This is our IK function using scipy optimization:
forward kinematics:
We are using jax.
The FK is 100x slower than IK. I understand there is probably some symbolic computation happening for this FK, but is there a faster version somewhere in this library?