Closed flferretti closed 2 weeks ago
What was the original desiderata of this PR? Runtime performance, memory footprint, readability, etc?
It seems to me that now readability is much worse than before, and on a quick test I've done, the new logic seems wrong. Did you double check it?
I answered you with a comment in the code.
For what regards instead the logic, in which example did you get the error? I did the test simulating spheres in vmap
and I had no problem
For what regards instead the logic, in which example did you get the error? I did the test simulating spheres in vmap and I had no problem
Check the following snippet, I get different results with the new logic. Did I do any mistake?
I found another way to further simplify the code, if you prefer I could merge the two lines. Ready for review @diegoferigo, thanks!
This PR refactors contact forces sum in
system_velocity_dynamics
potentially improving readability and performance📚 Documentation preview 📚: https://jaxsim--180.org.readthedocs.build//180/