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 Forward Kinematics with jax.lax.scan #15

Merged
merged 1 commit into from
Sep 21, 2022

Conversation

diegoferigo
Copy link
Member

This PR implements the Forward Kinematics algorithm with jax.lax.scan (#12), with two main benefits:

Here below a summary of the new FK performance compared to the previous implementation:

Model name DoFs JIT time JIT time speedup Runtime Runtime speedup
panda 9 1.96 s x2.4 528 µs x1.00
iCubGazeboV2_5 32 7.83 s x3.2 965 μs x1.05

The JIT time is now much lower than before. Instead, the runtime didn't change noticeably.

@diegoferigo diegoferigo self-assigned this Sep 20, 2022
@diegoferigo diegoferigo mentioned this pull request Sep 20, 2022
6 tasks
@diegoferigo diegoferigo merged commit fbf8e15 into main Sep 21, 2022
@diegoferigo diegoferigo deleted the feature/fk_with_jax.lax.scan branch September 21, 2022 09:03
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.

None yet

2 participants