Skip to content

Conversation

CarlottaSartore
Copy link
Contributor

@CarlottaSartore CarlottaSartore commented Sep 22, 2025

In this PR, I have updated the default contact model to the soft one (since it is the one currently used the most). Updated the method documentation accordingly, and removed the deprecated warning for the hardware parameters


📚 Documentation preview 📚: https://jaxsim--468.org.readthedocs.build//468/

@CarlottaSartore CarlottaSartore self-assigned this Sep 22, 2025
@flferretti flferretti changed the title Update default contact model to Soft and remove depracated warning Update default contact model to Soft and remove deprecation warning Sep 22, 2025
Copy link
Collaborator

@flferretti flferretti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Copy link
Member

@xela-95 xela-95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@flferretti flferretti force-pushed the update_default_contact_model branch from 04744ac to 52e1bab Compare October 1, 2025 16:53
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 49e3602 Previous: c28e89a Ratio
tests/test_benchmark.py::test_forward_dynamics_aba[1] 386.8657192423316 iter/sec (stddev: 0.000010857053853540872) 385.94492720843766 iter/sec (stddev: 0.000009463978323506126) 1.00
tests/test_benchmark.py::test_forward_dynamics_aba[128] 29.414483952716374 iter/sec (stddev: 0.00014132593662200145) 29.216966653272625 iter/sec (stddev: 0.00011455086573428671) 0.99
tests/test_benchmark.py::test_free_floating_bias_forces[1] 360.6827004540309 iter/sec (stddev: 0.000010395062597520847) 361.396251061539 iter/sec (stddev: 0.00000910574964681653) 1.00
tests/test_benchmark.py::test_free_floating_bias_forces[128] 16.229196300669777 iter/sec (stddev: 0.00016630275431836367) 16.218942194940492 iter/sec (stddev: 0.00025096534945186314) 1.00
tests/test_benchmark.py::test_forward_kinematics[1] 449.0833712798031 iter/sec (stddev: 0.000009374888219731676) 452.4863643105723 iter/sec (stddev: 0.000008022285629396292) 1.01
tests/test_benchmark.py::test_forward_kinematics[128] 31.75107930605636 iter/sec (stddev: 0.00011493141163129918) 31.765642438814933 iter/sec (stddev: 0.0002088457881717258) 1.00
tests/test_benchmark.py::test_free_floating_mass_matrix[1] 184.15202461909232 iter/sec (stddev: 0.00001448738818864305) 181.58130216807277 iter/sec (stddev: 0.00005072371260792714) 0.99
tests/test_benchmark.py::test_free_floating_mass_matrix[128] 178.12843858223107 iter/sec (stddev: 0.000018449511599766046) 175.24079377087364 iter/sec (stddev: 0.000018760096947039575) 0.98
tests/test_benchmark.py::test_free_floating_jacobian[1] 522.5905366774176 iter/sec (stddev: 0.000006486434612890665) 525.7508803201982 iter/sec (stddev: 0.000006377672924636457) 1.01
tests/test_benchmark.py::test_free_floating_jacobian[128] 533.3468973467093 iter/sec (stddev: 0.00000846096696354453) 534.2483568468638 iter/sec (stddev: 0.000006942445781767468) 1.00
tests/test_benchmark.py::test_free_floating_jacobian_derivative[1] 412.7415317101682 iter/sec (stddev: 0.000021692470595522737) 410.0473494948492 iter/sec (stddev: 0.000012243950755069747) 0.99
tests/test_benchmark.py::test_free_floating_jacobian_derivative[128] 303.2565121754304 iter/sec (stddev: 0.000014823505107386429) 302.58988317111164 iter/sec (stddev: 0.000015109621352982298) 1.00
tests/test_benchmark.py::test_soft_contact_model[1] 355.8363343562042 iter/sec (stddev: 0.000011293657767914677) 349.9366267743607 iter/sec (stddev: 0.00000947480013200776) 0.98
tests/test_benchmark.py::test_soft_contact_model[128] 29.956671439372588 iter/sec (stddev: 0.00009434203451871158) 29.951416599383442 iter/sec (stddev: 0.0001405258247109449) 1.00
tests/test_benchmark.py::test_rigid_contact_model[1] 40.569396172848904 iter/sec (stddev: 0.000020985192929173115) 40.276241063183 iter/sec (stddev: 0.000024302278784552764) 0.99
tests/test_benchmark.py::test_rigid_contact_model[128] 0.7268060041718362 iter/sec (stddev: 0.0003361511451588008) 0.7258859819172665 iter/sec (stddev: 0.0003607214923404956) 1.00
tests/test_benchmark.py::test_relaxed_rigid_contact_model[1] 75.5789360882949 iter/sec (stddev: 0.000028058588155868218) 74.75017951811331 iter/sec (stddev: 0.00003167479964364776) 0.99
tests/test_benchmark.py::test_relaxed_rigid_contact_model[128] 6.4209980290916295 iter/sec (stddev: 0.0002918008743114838) 6.400062476314604 iter/sec (stddev: 0.00024891629896200675) 1.00
tests/test_benchmark.py::test_simulation_step[1] 69.93038889966824 iter/sec (stddev: 0.000023856610660889924) 69.29459728383536 iter/sec (stddev: 0.00002754549281911007) 0.99
tests/test_benchmark.py::test_simulation_step[128] 5.397655057305122 iter/sec (stddev: 0.00025001827523507216) 5.39599749835251 iter/sec (stddev: 0.000279412049524645) 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@flferretti flferretti force-pushed the update_default_contact_model branch from 52e1bab to 6583d72 Compare October 1, 2025 16:55
@flferretti
Copy link
Collaborator

@CarlottaSartore I rebased the branch so this is ready to merge when you want

@flferretti flferretti force-pushed the update_default_contact_model branch 4 times, most recently from 70d6dde to e4ca840 Compare October 3, 2025 11:27
@flferretti flferretti force-pushed the update_default_contact_model branch from f459ec0 to 49e3602 Compare October 3, 2025 14:08
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.

3 participants