erwincoumans / tiny-differentiable-simulator

Tiny Differentiable Simulator is a header-only C++ and CUDA physics library for reinforcement learning and robotics with zero dependencies.
Apache License 2.0
1.23k stars 130 forks source link

Spherical joint fix #72

Closed PaulSchreiner closed 3 years ago

PaulSchreiner commented 3 years ago

I fixed the collision issue for spherical joints by adding a case to the jacobian calculation. I had to create 'apply' and 'apply_inverse' methods for 3x6 (Force/Motion matrices) in the transform class. These are different for Force and Motion matrices so I implemented them using a flag indicating what they are. Is this an issue regarding differentiability?

google-cla[bot] commented 3 years ago

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

erwincoumans commented 3 years ago

Thanks a lot for the fixes! Will merge it now, the CI is very slow.