jaxsim 0.7.1.dev156__tar.gz → 0.8.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/.github/workflows/ci_cd.yml +7 -7
  2. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/.github/workflows/gpu_benchmark.yml +3 -3
  3. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/.github/workflows/pixi.yml +1 -1
  4. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/.pre-commit-config.yaml +5 -4
  5. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/PKG-INFO +24 -28
  6. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/README.md +19 -25
  7. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/environment.yml +1 -0
  8. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/examples/jaxsim_as_multibody_dynamics_library.ipynb +0 -1
  9. jaxsim-0.8.1/pixi.lock +3 -0
  10. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/pyproject.toml +10 -5
  11. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/_version.py +3 -3
  12. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/api/actuation_model.py +2 -1
  13. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/api/contact.py +0 -1
  14. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/api/kin_dyn_parameters.py +13 -0
  15. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/api/model.py +110 -64
  16. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/api/references.py +0 -3
  17. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/rbda/actuation/common.py +2 -0
  18. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/rbda/contacts/relaxed_rigid.py +10 -3
  19. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/rbda/contacts/soft.py +0 -4
  20. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim.egg-info/PKG-INFO +24 -28
  21. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim.egg-info/SOURCES.txt +1 -1
  22. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim.egg-info/requires.txt +4 -2
  23. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/tests/conftest.py +1 -3
  24. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/tests/test_actuation.py +13 -2
  25. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/tests/test_api_com.py +19 -13
  26. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/tests/test_api_contact.py +9 -7
  27. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/tests/test_api_data.py +30 -13
  28. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/tests/test_api_frame.py +17 -18
  29. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/tests/test_api_joint.py +5 -3
  30. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/tests/test_api_link.py +49 -45
  31. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/tests/test_api_model.py +65 -65
  32. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/tests/test_api_model_hw_parametrization.py +296 -27
  33. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/tests/test_automatic_differentiation.py +4 -2
  34. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/tests/test_exceptions.py +2 -6
  35. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/tests/test_pytree.py +26 -13
  36. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/tests/test_simulations.py +24 -25
  37. jaxsim-0.7.1.dev156/tests/utils_idyntree.py → jaxsim-0.8.1/tests/utils.py +15 -0
  38. jaxsim-0.7.1.dev156/pixi.lock +0 -3
  39. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/.devcontainer/Dockerfile +0 -0
  40. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/.devcontainer/devcontainer.json +0 -0
  41. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/.gitattributes +0 -0
  42. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/.github/CODEOWNERS +0 -0
  43. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/.github/dependabot.yml +0 -0
  44. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/.github/release.yml +0 -0
  45. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/.github/workflows/read_the_docs.yml +0 -0
  46. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/.gitignore +0 -0
  47. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/.readthedocs.yaml +0 -0
  48. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/CONTRIBUTING.md +0 -0
  49. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/LICENSE +0 -0
  50. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/docs/Makefile +0 -0
  51. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/docs/conf.py +0 -0
  52. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/docs/examples.rst +0 -0
  53. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/docs/guide/configuration.rst +0 -0
  54. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/docs/guide/install.rst +0 -0
  55. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/docs/index.rst +0 -0
  56. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/docs/make.bat +0 -0
  57. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/docs/modules/api.rst +0 -0
  58. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/docs/modules/math.rst +0 -0
  59. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/docs/modules/mujoco.rst +0 -0
  60. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/docs/modules/parsers.rst +0 -0
  61. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/docs/modules/rbda.rst +0 -0
  62. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/docs/modules/typing.rst +0 -0
  63. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/docs/modules/utils.rst +0 -0
  64. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/examples/.gitattributes +0 -0
  65. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/examples/.gitignore +0 -0
  66. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/examples/README.md +0 -0
  67. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/examples/assets/build_cartpole_urdf.py +0 -0
  68. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/examples/assets/cartpole.urdf +0 -0
  69. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/examples/jaxsim_as_physics_engine.ipynb +0 -0
  70. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/examples/jaxsim_as_physics_engine_advanced.ipynb +0 -0
  71. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/examples/jaxsim_for_robot_controllers.ipynb +0 -0
  72. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/setup.cfg +0 -0
  73. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/__init__.py +0 -0
  74. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/api/__init__.py +0 -0
  75. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/api/com.py +0 -0
  76. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/api/common.py +0 -0
  77. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/api/data.py +0 -0
  78. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/api/frame.py +0 -0
  79. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/api/integrators.py +0 -0
  80. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/api/joint.py +0 -0
  81. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/api/link.py +0 -0
  82. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/api/ode.py +0 -0
  83. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/exceptions.py +0 -0
  84. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/logging.py +0 -0
  85. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/math/__init__.py +0 -0
  86. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/math/adjoint.py +0 -0
  87. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/math/cross.py +0 -0
  88. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/math/inertia.py +0 -0
  89. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/math/joint_model.py +0 -0
  90. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/math/quaternion.py +0 -0
  91. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/math/rotation.py +0 -0
  92. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/math/skew.py +0 -0
  93. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/math/transform.py +0 -0
  94. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/math/utils.py +0 -0
  95. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/mujoco/__init__.py +0 -0
  96. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/mujoco/__main__.py +0 -0
  97. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/mujoco/loaders.py +0 -0
  98. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/mujoco/model.py +0 -0
  99. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/mujoco/utils.py +0 -0
  100. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/mujoco/visualizer.py +0 -0
  101. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/parsers/__init__.py +0 -0
  102. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/parsers/descriptions/__init__.py +0 -0
  103. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/parsers/descriptions/collision.py +0 -0
  104. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/parsers/descriptions/joint.py +0 -0
  105. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/parsers/descriptions/link.py +0 -0
  106. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/parsers/descriptions/model.py +0 -0
  107. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/parsers/kinematic_graph.py +0 -0
  108. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/parsers/rod/__init__.py +0 -0
  109. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/parsers/rod/meshes.py +0 -0
  110. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/parsers/rod/parser.py +0 -0
  111. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/parsers/rod/utils.py +0 -0
  112. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/rbda/__init__.py +0 -0
  113. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/rbda/aba.py +0 -0
  114. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/rbda/actuation/__init__.py +0 -0
  115. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/rbda/collidable_points.py +0 -0
  116. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/rbda/contacts/__init__.py +0 -0
  117. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/rbda/contacts/common.py +0 -0
  118. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/rbda/contacts/rigid.py +0 -0
  119. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/rbda/crba.py +0 -0
  120. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/rbda/forward_kinematics.py +0 -0
  121. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/rbda/jacobian.py +0 -0
  122. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/rbda/kinematic_constraints.py +0 -0
  123. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/rbda/rnea.py +0 -0
  124. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/rbda/utils.py +0 -0
  125. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/terrain/__init__.py +0 -0
  126. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/terrain/terrain.py +0 -0
  127. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/typing.py +0 -0
  128. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/utils/__init__.py +0 -0
  129. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/utils/jaxsim_dataclass.py +0 -0
  130. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/utils/tracing.py +0 -0
  131. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim/utils/wrappers.py +0 -0
  132. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim.egg-info/dependency_links.txt +0 -0
  133. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/src/jaxsim.egg-info/top_level.txt +0 -0
  134. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/tests/__init__.py +0 -0
  135. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/tests/assets/4_bar_opened.urdf +0 -0
  136. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/tests/assets/double_pendulum.sdf +0 -0
  137. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/tests/test_benchmark.py +0 -0
  138. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/tests/test_meshes.py +0 -0
  139. {jaxsim-0.7.1.dev156 → jaxsim-0.8.1}/tests/test_visualizer.py +0 -0
@@ -25,7 +25,7 @@ jobs:
25
25
  fetch-depth: 0
26
26
 
27
27
  - name: Set up Python
28
- uses: actions/setup-python@v5
28
+ uses: actions/setup-python@v6
29
29
  with:
30
30
  python-version: "3.11"
31
31
 
@@ -45,7 +45,7 @@ jobs:
45
45
  run: twine check dist/*
46
46
 
47
47
  - name: Upload artifacts
48
- uses: actions/upload-artifact@v4
48
+ uses: actions/upload-artifact@v5
49
49
  with:
50
50
  path: dist/*
51
51
  name: dist
@@ -70,12 +70,12 @@ jobs:
70
70
  steps:
71
71
 
72
72
  - name: Set up Python
73
- uses: actions/setup-python@v5
73
+ uses: actions/setup-python@v6
74
74
  with:
75
75
  python-version: ${{ matrix.python }}
76
76
 
77
77
  - name: Download Python packages
78
- uses: actions/download-artifact@v5
78
+ uses: actions/download-artifact@v6
79
79
  with:
80
80
  path: dist
81
81
  name: dist
@@ -101,7 +101,7 @@ jobs:
101
101
  with:
102
102
  lfs: true
103
103
 
104
- - uses: prefix-dev/setup-pixi@v0.9.0
104
+ - uses: prefix-dev/setup-pixi@v0.9.2
105
105
  if: contains(matrix.os, 'ubuntu')
106
106
  with:
107
107
  pixi-version: "latest"
@@ -120,7 +120,7 @@ jobs:
120
120
  if: |
121
121
  contains(matrix.os, 'ubuntu') &&
122
122
  (github.event_name != 'pull_request')
123
- run: pixi run --frozen test
123
+ run: pixi run --frozen test --numprocesses auto
124
124
  env:
125
125
  # https://github.com/pytest-dev/pytest/issues/7443#issuecomment-656642591
126
126
  PY_COLORS: "1"
@@ -136,7 +136,7 @@ jobs:
136
136
  steps:
137
137
 
138
138
  - name: Download Python packages
139
- uses: actions/download-artifact@v5
139
+ uses: actions/download-artifact@v6
140
140
  with:
141
141
  path: dist
142
142
  name: dist
@@ -62,7 +62,7 @@ jobs:
62
62
  PY_COLORS: "1"
63
63
 
64
64
  - name: Compare benchmark results with main branch
65
- uses: benchmark-action/github-action-benchmark@v1.20.4
65
+ uses: benchmark-action/github-action-benchmark@v1.20.7
66
66
  with:
67
67
  tool: 'pytest'
68
68
  output-file-path: output.json
@@ -75,7 +75,7 @@ jobs:
75
75
  github-token: ${{ secrets.GITHUB_TOKEN }}
76
76
 
77
77
  - name: Store benchmark result for main branch
78
- uses: benchmark-action/github-action-benchmark@v1.20.4
78
+ uses: benchmark-action/github-action-benchmark@v1.20.7
79
79
  if: ${{ github.ref_name == 'main' }}
80
80
  with:
81
81
  tool: 'pytest'
@@ -89,7 +89,7 @@ jobs:
89
89
  github-token: ${{ secrets.GITHUB_TOKEN }}
90
90
 
91
91
  - name: Publish Benchmark Results to GitHub Pages
92
- uses: benchmark-action/github-action-benchmark@v1.20.4
92
+ uses: benchmark-action/github-action-benchmark@v1.20.7
93
93
  if: ${{ github.ref_name == 'main' }}
94
94
  with:
95
95
  tool: 'pytest'
@@ -22,7 +22,7 @@ jobs:
22
22
  lfs: true
23
23
 
24
24
  - name: Set up pixi
25
- uses: prefix-dev/setup-pixi@v0.9.0
25
+ uses: prefix-dev/setup-pixi@v0.9.2
26
26
  with:
27
27
  run-install: false
28
28
 
@@ -8,7 +8,7 @@ default_language_version:
8
8
 
9
9
  repos:
10
10
  - repo: https://github.com/pre-commit/pre-commit-hooks
11
- rev: v5.0.0
11
+ rev: v6.0.0
12
12
  hooks:
13
13
  - id: check-ast
14
14
  - id: check-merge-conflict
@@ -20,13 +20,13 @@ repos:
20
20
  args: ["--maxkb=2000"]
21
21
 
22
22
  - repo: https://github.com/psf/black-pre-commit-mirror
23
- rev: 25.1.0
23
+ rev: 25.9.0
24
24
  hooks:
25
25
  - id: black
26
26
  args: ["--check", "--diff"]
27
27
 
28
28
  - repo: https://github.com/pycqa/isort
29
- rev: 6.0.1
29
+ rev: 6.1.0
30
30
  hooks:
31
31
  - id: isort
32
32
  args: ["--check", "--diff"]
@@ -42,9 +42,10 @@ repos:
42
42
  rev: v2.4.1
43
43
  hooks:
44
44
  - id: codespell
45
+ args: ["-S", "*.lock"]
45
46
 
46
47
  - repo: https://github.com/astral-sh/ruff-pre-commit
47
- rev: v0.12.2
48
+ rev: v0.13.3
48
49
  hooks:
49
50
  - id: ruff
50
51
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jaxsim
3
- Version: 0.7.1.dev156
3
+ Version: 0.8.1
4
4
  Summary: A differentiable physics engine and multibody dynamics library for control and robot learning.
5
5
  Author-email: Diego Ferigo <dgferigo@gmail.com>, Filippo Luca Ferretti <filippoluca.ferretti@outlook.com>
6
6
  Maintainer-email: Filippo Luca Ferretti <filippo.ferretti@iit.it>, Alessandro Croci <alessandro.croci@iit.it>
@@ -38,18 +38,20 @@ Requires-Dist: jax_dataclasses>=1.4.0
38
38
  Requires-Dist: pptree
39
39
  Requires-Dist: optax>=0.2.3
40
40
  Requires-Dist: qpax
41
- Requires-Dist: rod>=0.3.3
41
+ Requires-Dist: rod>=0.4.1
42
42
  Requires-Dist: typing_extensions; python_version < "3.12"
43
43
  Requires-Dist: trimesh
44
44
  Provides-Extra: style
45
- Requires-Dist: black[jupyter]~=24.0; extra == "style"
45
+ Requires-Dist: black[jupyter]; extra == "style"
46
46
  Requires-Dist: isort; extra == "style"
47
47
  Requires-Dist: pre-commit; extra == "style"
48
48
  Provides-Extra: testing
49
+ Requires-Dist: chex>=0.1.91; extra == "testing"
49
50
  Requires-Dist: idyntree>=12.2.1; extra == "testing"
50
51
  Requires-Dist: pytest>=6.0; extra == "testing"
51
52
  Requires-Dist: pytest-benchmark; extra == "testing"
52
53
  Requires-Dist: pytest-icdiff; extra == "testing"
54
+ Requires-Dist: pytest-xdist; extra == "testing"
53
55
  Requires-Dist: robot-descriptions>=1.16.0; extra == "testing"
54
56
  Requires-Dist: icub-models; extra == "testing"
55
57
  Provides-Extra: viz
@@ -121,7 +123,7 @@ joints = ('torso_pitch', 'torso_roll', 'torso_yaw', 'l_shoulder_pitch',
121
123
  model_description = pathlib.Path(model_path)
122
124
 
123
125
  full_model = js.model.JaxSimModel.build_from_model_description(
124
- model_description=model_description, time_step=0.0001, is_urdf=True
126
+ model_description=model_description,
125
127
  )
126
128
 
127
129
  model = js.model.reduce(model=full_model, considered_joints=joints)
@@ -148,7 +150,6 @@ for _ in T:
148
150
 
149
151
  Check the example folder for additional use cases!
150
152
 
151
- > [!NOTE]
152
153
  [jax]: https://github.com/google/jax/
153
154
  [sdformat]: https://github.com/gazebosim/sdformat
154
155
  [notation]: https://research.tue.nl/en/publications/multibody-dynamics-notation-version-2
@@ -165,7 +166,7 @@ You can install the project using [`conda`][conda] as follows:
165
166
  conda install jaxsim -c conda-forge
166
167
  ```
167
168
 
168
- You can enforce GPU support, if needed, by also specifying `"jaxlib = * = *cuda*"`.
169
+ GPU support for JAX will be automatically installed if a compatible GPU is detected.
169
170
 
170
171
  </details>
171
172
 
@@ -183,7 +184,7 @@ git lfs install && git lfs pull
183
184
 
184
185
  This ensures all LFS-tracked files are properly downloaded before you proceed with the installation.
185
186
 
186
- You can add the jaxsim dependency in [`pixi`][pixi] project as follows:
187
+ You can add the `jaxsim` dependency in your [`pixi`][pixi] project as follows:
187
188
 
188
189
  ```bash
189
190
  pixi add jaxsim
@@ -219,6 +220,12 @@ pip install jaxsim
219
220
  Check [`pyproject.toml`](pyproject.toml) for the complete list of optional dependencies.
220
221
  You can obtain a full installation using `jaxsim[all]`.
221
222
 
223
+ If you need URDF support, follow the [official instructions](https://gazebosim.org/docs) to install Gazebo Sim on your operating system,
224
+ making sure to obtain `sdformat ≥ 13.0` and `gz-tools ≥ 2.0`.
225
+
226
+ You don't need to install the entire Gazebo Sim suite.
227
+ For example, on Ubuntu, it is sufficient to install the `libsdformat*` and `gz-tools2` packages.
228
+
222
229
  If you need GPU support, follow the official [installation instructions][jax_gpu] of JAX.
223
230
 
224
231
  </details>
@@ -305,7 +312,7 @@ joints = ('torso_pitch', 'torso_roll', 'torso_yaw', 'l_shoulder_pitch',
305
312
  model_description = pathlib.Path(model_path)
306
313
 
307
314
  full_model = js.model.JaxSimModel.build_from_model_description(
308
- model_description=model_description, time_step=0.0001, is_urdf=True
315
+ model_description=model_description,
309
316
  )
310
317
 
311
318
  model = js.model.reduce(model=full_model, considered_joints=joints)
@@ -330,9 +337,9 @@ W_J_F = js.frame.jacobian(
330
337
  )
331
338
 
332
339
  # Dynamics properties
333
- M = js.model.free_floating_mass_matrix(model=model, data=data) # Mass matrix
334
- h = js.model.free_floating_bias_forces(model=model, data=data) # Bias forces
335
- g = js.model.free_floating_gravity_forces(model=model, data=data) # Gravity forces
340
+ M = js.model.free_floating_mass_matrix(model=model, data=data) # Mass matrix
341
+ h = js.model.free_floating_bias_forces(model=model, data=data) # Bias forces
342
+ g = js.model.free_floating_gravity_forces(model=model, data=data) # Gravity forces
336
343
  C = js.model.free_floating_coriolis_matrix(model=model, data=data) # Coriolis matrix
337
344
 
338
345
  # Print dynamics results
@@ -371,25 +378,14 @@ Please read the [contributing guide](./CONTRIBUTING.md) to get started.
371
378
 
372
379
  ## Citing
373
380
 
374
- ```bibtex
375
- @software{ferigo_jaxsim_2022,
376
- author = {Diego Ferigo and Filippo Luca Ferretti and Silvio Traversaro and Daniele Pucci},
377
- title = {{JaxSim}: A Differentiable Physics Engine and Multibody Dynamics Library for Control and Robot Learning},
378
- url = {http://github.com/ami-iit/jaxsim},
379
- year = {2022},
380
- }
381
- ```
382
-
383
- Theoretical aspects of JaxSim are based on Chapters 7 and 8 of the following Ph.D. thesis:
381
+ If you use JaxSim in your work, please cite our upcoming paper:
384
382
 
385
383
  ```bibtex
386
- @phdthesis{ferigo_phd_thesis_2022,
387
- title = {Simulation Architectures for Reinforcement Learning applied to Robotics},
388
- author = {Diego Ferigo},
389
- school = {University of Manchester},
390
- type = {PhD Thesis},
391
- month = {July},
392
- year = {2022},
384
+ @software{ferretti_accelerated_optimization_2025,
385
+ author = {Filippo Luca Ferretti and Diego Ferigo and Carlotta Sartore and Alessandro Croci and Omar G. Younis and Silvio Traversaro and Daniele Pucci},
386
+ title = {Hardware-Accelerated Morphology Optimization via Physically Consistent Differentiable Simulation},
387
+ year = {2025},
388
+ url = {https://github.com/ami-iit/jaxsim}
393
389
  }
394
390
  ```
395
391
 
@@ -58,7 +58,7 @@ joints = ('torso_pitch', 'torso_roll', 'torso_yaw', 'l_shoulder_pitch',
58
58
  model_description = pathlib.Path(model_path)
59
59
 
60
60
  full_model = js.model.JaxSimModel.build_from_model_description(
61
- model_description=model_description, time_step=0.0001, is_urdf=True
61
+ model_description=model_description,
62
62
  )
63
63
 
64
64
  model = js.model.reduce(model=full_model, considered_joints=joints)
@@ -85,7 +85,6 @@ for _ in T:
85
85
 
86
86
  Check the example folder for additional use cases!
87
87
 
88
- > [!NOTE]
89
88
  [jax]: https://github.com/google/jax/
90
89
  [sdformat]: https://github.com/gazebosim/sdformat
91
90
  [notation]: https://research.tue.nl/en/publications/multibody-dynamics-notation-version-2
@@ -102,7 +101,7 @@ You can install the project using [`conda`][conda] as follows:
102
101
  conda install jaxsim -c conda-forge
103
102
  ```
104
103
 
105
- You can enforce GPU support, if needed, by also specifying `"jaxlib = * = *cuda*"`.
104
+ GPU support for JAX will be automatically installed if a compatible GPU is detected.
106
105
 
107
106
  </details>
108
107
 
@@ -120,7 +119,7 @@ git lfs install && git lfs pull
120
119
 
121
120
  This ensures all LFS-tracked files are properly downloaded before you proceed with the installation.
122
121
 
123
- You can add the jaxsim dependency in [`pixi`][pixi] project as follows:
122
+ You can add the `jaxsim` dependency in your [`pixi`][pixi] project as follows:
124
123
 
125
124
  ```bash
126
125
  pixi add jaxsim
@@ -156,6 +155,12 @@ pip install jaxsim
156
155
  Check [`pyproject.toml`](pyproject.toml) for the complete list of optional dependencies.
157
156
  You can obtain a full installation using `jaxsim[all]`.
158
157
 
158
+ If you need URDF support, follow the [official instructions](https://gazebosim.org/docs) to install Gazebo Sim on your operating system,
159
+ making sure to obtain `sdformat ≥ 13.0` and `gz-tools ≥ 2.0`.
160
+
161
+ You don't need to install the entire Gazebo Sim suite.
162
+ For example, on Ubuntu, it is sufficient to install the `libsdformat*` and `gz-tools2` packages.
163
+
159
164
  If you need GPU support, follow the official [installation instructions][jax_gpu] of JAX.
160
165
 
161
166
  </details>
@@ -242,7 +247,7 @@ joints = ('torso_pitch', 'torso_roll', 'torso_yaw', 'l_shoulder_pitch',
242
247
  model_description = pathlib.Path(model_path)
243
248
 
244
249
  full_model = js.model.JaxSimModel.build_from_model_description(
245
- model_description=model_description, time_step=0.0001, is_urdf=True
250
+ model_description=model_description,
246
251
  )
247
252
 
248
253
  model = js.model.reduce(model=full_model, considered_joints=joints)
@@ -267,9 +272,9 @@ W_J_F = js.frame.jacobian(
267
272
  )
268
273
 
269
274
  # Dynamics properties
270
- M = js.model.free_floating_mass_matrix(model=model, data=data) # Mass matrix
271
- h = js.model.free_floating_bias_forces(model=model, data=data) # Bias forces
272
- g = js.model.free_floating_gravity_forces(model=model, data=data) # Gravity forces
275
+ M = js.model.free_floating_mass_matrix(model=model, data=data) # Mass matrix
276
+ h = js.model.free_floating_bias_forces(model=model, data=data) # Bias forces
277
+ g = js.model.free_floating_gravity_forces(model=model, data=data) # Gravity forces
273
278
  C = js.model.free_floating_coriolis_matrix(model=model, data=data) # Coriolis matrix
274
279
 
275
280
  # Print dynamics results
@@ -308,25 +313,14 @@ Please read the [contributing guide](./CONTRIBUTING.md) to get started.
308
313
 
309
314
  ## Citing
310
315
 
311
- ```bibtex
312
- @software{ferigo_jaxsim_2022,
313
- author = {Diego Ferigo and Filippo Luca Ferretti and Silvio Traversaro and Daniele Pucci},
314
- title = {{JaxSim}: A Differentiable Physics Engine and Multibody Dynamics Library for Control and Robot Learning},
315
- url = {http://github.com/ami-iit/jaxsim},
316
- year = {2022},
317
- }
318
- ```
319
-
320
- Theoretical aspects of JaxSim are based on Chapters 7 and 8 of the following Ph.D. thesis:
316
+ If you use JaxSim in your work, please cite our upcoming paper:
321
317
 
322
318
  ```bibtex
323
- @phdthesis{ferigo_phd_thesis_2022,
324
- title = {Simulation Architectures for Reinforcement Learning applied to Robotics},
325
- author = {Diego Ferigo},
326
- school = {University of Manchester},
327
- type = {PhD Thesis},
328
- month = {July},
329
- year = {2022},
319
+ @software{ferretti_accelerated_optimization_2025,
320
+ author = {Filippo Luca Ferretti and Diego Ferigo and Carlotta Sartore and Alessandro Croci and Omar G. Younis and Silvio Traversaro and Daniele Pucci},
321
+ title = {Hardware-Accelerated Morphology Optimization via Physically Consistent Differentiable Simulation},
322
+ year = {2025},
323
+ url = {https://github.com/ami-iit/jaxsim}
330
324
  }
331
325
  ```
332
326
 
@@ -25,6 +25,7 @@ dependencies:
25
25
  - isort
26
26
  - pre-commit
27
27
  # [testing]
28
+ - chex
28
29
  - idyntree >= 12.2.1
29
30
  - pytest
30
31
  - pytest-benchmark
@@ -67,7 +67,6 @@
67
67
  "import jax.numpy as jnp\n",
68
68
  "import jaxsim.api as js\n",
69
69
  "import jaxsim.math\n",
70
- "import robot_descriptions\n",
71
70
  "from jaxsim import logging\n",
72
71
  "from jaxsim import VelRepr\n",
73
72
  "\n",
jaxsim-0.8.1/pixi.lock ADDED
@@ -0,0 +1,3 @@
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d9f48d5ba0b3f575a7b54563023b9a20cb3e483691a2db4c92689b2fc1ba862
3
+ size 513426
@@ -53,22 +53,24 @@ dependencies = [
53
53
  "pptree",
54
54
  "optax >= 0.2.3",
55
55
  "qpax",
56
- "rod >= 0.3.3",
56
+ "rod >= 0.4.1",
57
57
  "typing_extensions ; python_version < '3.12'",
58
58
  "trimesh",
59
59
  ]
60
60
 
61
61
  [project.optional-dependencies]
62
62
  style = [
63
- "black[jupyter] ~= 24.0",
63
+ "black[jupyter]",
64
64
  "isort",
65
65
  "pre-commit",
66
66
  ]
67
67
  testing = [
68
+ "chex >= 0.1.91",
68
69
  "idyntree >= 12.2.1",
69
70
  "pytest >=6.0",
70
71
  "pytest-benchmark",
71
72
  "pytest-icdiff",
73
+ "pytest-xdist",
72
74
  "robot-descriptions >= 1.16.0",
73
75
  "icub-models",
74
76
  ]
@@ -194,9 +196,10 @@ ignore = [
194
196
  # Pixi configuration
195
197
  # ==================
196
198
 
197
- [tool.pixi.project]
199
+ [tool.pixi.workspace]
198
200
  channels = ["conda-forge"]
199
201
  platforms = ["linux-64", "osx-arm64", "osx-64"]
202
+ requires-pixi = ">=0.39.0"
200
203
 
201
204
  [tool.pixi.environments]
202
205
  # We resolve only two groups: cpu and gpu.
@@ -221,7 +224,7 @@ jax-dataclasses = "*"
221
224
  pptree = "*"
222
225
  optax = "*"
223
226
  qpax = "*"
224
- rod = "*"
227
+ rod = ">=0.4.1"
225
228
  trimesh = "*"
226
229
  typing_extensions = "*"
227
230
  #
@@ -254,13 +257,15 @@ lint = { cmd = "pre-commit run --all-files --hook-stage=manual" }
254
257
  test = { cmd = "pytest", depends-on = ["pipcheck"] }
255
258
 
256
259
  [tool.pixi.feature.test.dependencies]
257
- black-jupyter = "24.*"
260
+ black-jupyter = "*"
261
+ chex = ">=0.1.91"
258
262
  idyntree = "*"
259
263
  isort = "*"
260
264
  pre-commit = "*"
261
265
  pytest = "*"
262
266
  pytest-benchmark = "*"
263
267
  pytest-icdiff = "*"
268
+ pytest-xdist = "*"
264
269
  robot_descriptions = ">=1.16.0"
265
270
  setuptools_scm = ">=8.3.1,<9"
266
271
 
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '0.7.1.dev156'
32
- __version_tuple__ = version_tuple = (0, 7, 1, 'dev156')
31
+ __version__ = version = '0.8.1'
32
+ __version_tuple__ = version_tuple = (0, 8, 1)
33
33
 
34
- __commit_id__ = commit_id = 'geaf82a715'
34
+ __commit_id__ = commit_id = 'gadeb43fa9'
@@ -71,7 +71,8 @@ def compute_resultant_torques(
71
71
 
72
72
  τ_friction = jnp.zeros_like(τ_references).astype(float)
73
73
 
74
- if model.dofs() > 0:
74
+ # Apply joint friction only if enabled in the actuation parameters.
75
+ if model.dofs() > 0 and model.actuation_params.enable_friction:
75
76
 
76
77
  # Static and viscous joint friction parameters
77
78
  kc = jnp.array(
@@ -7,7 +7,6 @@ import jax.numpy as jnp
7
7
 
8
8
  import jaxsim.api as js
9
9
  import jaxsim.exceptions
10
- import jaxsim.terrain
11
10
  import jaxsim.typing as jtp
12
11
  from jaxsim import logging
13
12
  from jaxsim.math import Adjoint, Cross, Transform
@@ -942,6 +942,19 @@ class HwLinkMetadata(JaxsimDataclass):
942
942
  L_H_pre_mask: jtp.Vector
943
943
  L_H_pre: jtp.Matrix
944
944
 
945
+ @classmethod
946
+ def empty(cls) -> HwLinkMetadata:
947
+ """Return hardware metadata representing the absence of links."""
948
+ return cls(
949
+ link_shape=jnp.array([], dtype=int),
950
+ geometry=jnp.array([], dtype=float),
951
+ density=jnp.array([], dtype=float),
952
+ L_H_G=jnp.array([], dtype=float),
953
+ L_H_vis=jnp.array([], dtype=float),
954
+ L_H_pre_mask=jnp.array([], dtype=bool),
955
+ L_H_pre=jnp.array([], dtype=float),
956
+ )
957
+
945
958
  @staticmethod
946
959
  def compute_mass_and_inertia(
947
960
  hw_link_metadata: HwLinkMetadata,