Skip to content

perf(retargeting): reuse kinematics and Laplacian calculations - #208

Open
nico-bohlinger wants to merge 1 commit into
amazon-far:mainfrom
nico-bohlinger:perf/or-exact-reuse
Open

nico-bohlinger wants to merge 1 commit into
amazon-far:mainfrom
nico-bohlinger:perf/or-exact-reuse

Conversation

@nico-bohlinger

Copy link
Copy Markdown

Reduce repeated kinematics and interaction-mesh calculations during retargeting.

Forward kinematics and the velocity-coordinate transform were recomputed for individual links and contact points even when the robot pose was unchanged. They are now evaluated once for each group of calculations at the same pose. Previous-frame foot positions are also reused across solver iterations instead of recomputing them together with unused Jacobians.

The uniform Laplacian matrix and its Kronecker product are reused while the ordered graph connectivity is unchanged. Skip unnecessary neighbour-distance calculations when using uniform weights, and avoid computing Jacobians for the fixed world body, which cannot move with the robot.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

This branch has not been deployed

No deployments
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.

1 participant