jaxsim 0.9.1.dev3__tar.gz → 0.9.1.dev31__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 (140) hide show
  1. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/.github/workflows/ci_cd.yml +5 -5
  2. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/.github/workflows/gpu_benchmark.yml +6 -6
  3. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/.github/workflows/pixi.yml +2 -2
  4. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/.pre-commit-config.yaml +4 -4
  5. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/PKG-INFO +2 -2
  6. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/examples/jaxsim_as_multibody_dynamics_library.ipynb +2 -2
  7. jaxsim-0.9.1.dev31/pixi.lock +3 -0
  8. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/pyproject.toml +13 -5
  9. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/__init__.py +1 -1
  10. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/_version.py +2 -2
  11. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/api/com.py +22 -12
  12. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/api/common.py +2 -2
  13. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/api/contact.py +4 -4
  14. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/api/data.py +9 -9
  15. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/api/integrators.py +1 -1
  16. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/api/kin_dyn_parameters.py +6 -6
  17. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/api/link.py +5 -5
  18. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/api/model.py +25 -17
  19. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/math/adjoint.py +2 -2
  20. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/mujoco/visualizer.py +2 -2
  21. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/parsers/descriptions/link.py +1 -1
  22. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/parsers/kinematic_graph.py +6 -6
  23. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/rbda/contacts/common.py +1 -1
  24. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/rbda/contacts/relaxed_rigid.py +1 -1
  25. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/rbda/contacts/rigid.py +4 -4
  26. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/utils/jaxsim_dataclass.py +3 -3
  27. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/tests/test_simulations.py +3 -3
  28. jaxsim-0.9.1.dev3/pixi.lock +0 -3
  29. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/.devcontainer/Dockerfile +0 -0
  30. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/.devcontainer/devcontainer.json +0 -0
  31. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/.gitattributes +0 -0
  32. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/.github/CODEOWNERS +0 -0
  33. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/.github/dependabot.yml +0 -0
  34. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/.github/release.yml +0 -0
  35. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/.github/workflows/read_the_docs.yml +0 -0
  36. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/.gitignore +0 -0
  37. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/.readthedocs.yaml +0 -0
  38. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/CITATION.cff +0 -0
  39. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/CONTRIBUTING.md +0 -0
  40. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/LICENSE +0 -0
  41. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/README.md +0 -0
  42. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/docs/Makefile +0 -0
  43. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/docs/conf.py +0 -0
  44. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/docs/examples.rst +0 -0
  45. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/docs/guide/configuration.rst +0 -0
  46. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/docs/guide/install.rst +0 -0
  47. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/docs/index.rst +0 -0
  48. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/docs/make.bat +0 -0
  49. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/docs/modules/api.rst +0 -0
  50. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/docs/modules/math.rst +0 -0
  51. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/docs/modules/mujoco.rst +0 -0
  52. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/docs/modules/parsers.rst +0 -0
  53. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/docs/modules/rbda.rst +0 -0
  54. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/docs/modules/typing.rst +0 -0
  55. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/docs/modules/utils.rst +0 -0
  56. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/environment.yml +0 -0
  57. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/examples/.gitattributes +0 -0
  58. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/examples/.gitignore +0 -0
  59. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/examples/README.md +0 -0
  60. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/examples/assets/build_cartpole_urdf.py +0 -0
  61. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/examples/assets/cartpole.urdf +0 -0
  62. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/examples/jaxsim_as_physics_engine.ipynb +0 -0
  63. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/examples/jaxsim_as_physics_engine_advanced.ipynb +0 -0
  64. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/examples/jaxsim_for_robot_controllers.ipynb +0 -0
  65. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/api/__init__.py +0 -0
  66. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/api/actuation_model.py +0 -0
  67. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/api/frame.py +0 -0
  68. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/api/joint.py +0 -0
  69. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/api/ode.py +0 -0
  70. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/api/references.py +0 -0
  71. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/exceptions.py +0 -0
  72. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/logging.py +0 -0
  73. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/math/__init__.py +0 -0
  74. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/math/cross.py +0 -0
  75. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/math/inertia.py +0 -0
  76. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/math/joint_model.py +0 -0
  77. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/math/quaternion.py +0 -0
  78. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/math/rotation.py +0 -0
  79. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/math/skew.py +0 -0
  80. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/math/transform.py +0 -0
  81. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/math/utils.py +0 -0
  82. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/mujoco/__init__.py +0 -0
  83. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/mujoco/__main__.py +0 -0
  84. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/mujoco/loaders.py +0 -0
  85. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/mujoco/model.py +0 -0
  86. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/mujoco/utils.py +0 -0
  87. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/parsers/__init__.py +0 -0
  88. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/parsers/descriptions/__init__.py +0 -0
  89. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/parsers/descriptions/collision.py +0 -0
  90. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/parsers/descriptions/joint.py +0 -0
  91. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/parsers/descriptions/model.py +0 -0
  92. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/parsers/rod/__init__.py +0 -0
  93. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/parsers/rod/meshes.py +0 -0
  94. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/parsers/rod/parser.py +0 -0
  95. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/parsers/rod/utils.py +0 -0
  96. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/rbda/__init__.py +0 -0
  97. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/rbda/aba.py +0 -0
  98. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/rbda/aba_parallel.py +0 -0
  99. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/rbda/actuation/__init__.py +0 -0
  100. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/rbda/actuation/common.py +0 -0
  101. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/rbda/collidable_points.py +0 -0
  102. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/rbda/contacts/__init__.py +0 -0
  103. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/rbda/contacts/soft.py +0 -0
  104. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/rbda/crba.py +0 -0
  105. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/rbda/forward_kinematics.py +0 -0
  106. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/rbda/forward_kinematics_parallel.py +0 -0
  107. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/rbda/jacobian.py +0 -0
  108. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/rbda/kinematic_constraints.py +0 -0
  109. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/rbda/mass_inverse.py +0 -0
  110. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/rbda/rnea.py +0 -0
  111. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/rbda/utils.py +0 -0
  112. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/terrain/__init__.py +0 -0
  113. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/terrain/terrain.py +0 -0
  114. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/typing.py +0 -0
  115. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/utils/__init__.py +0 -0
  116. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/utils/tracing.py +0 -0
  117. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/src/jaxsim/utils/wrappers.py +0 -0
  118. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/tests/__init__.py +0 -0
  119. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/tests/assets/4_bar_opened.urdf +0 -0
  120. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/tests/assets/cube.stl +0 -0
  121. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/tests/assets/double_pendulum.sdf +0 -0
  122. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/tests/assets/mixed_shapes_robot.urdf +0 -0
  123. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/tests/assets/test_cube.urdf +0 -0
  124. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/tests/conftest.py +0 -0
  125. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/tests/test_actuation.py +0 -0
  126. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/tests/test_api_com.py +0 -0
  127. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/tests/test_api_contact.py +0 -0
  128. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/tests/test_api_data.py +0 -0
  129. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/tests/test_api_frame.py +0 -0
  130. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/tests/test_api_joint.py +0 -0
  131. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/tests/test_api_link.py +0 -0
  132. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/tests/test_api_model.py +0 -0
  133. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/tests/test_api_model_hw_parametrization.py +0 -0
  134. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/tests/test_automatic_differentiation.py +0 -0
  135. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/tests/test_benchmark.py +0 -0
  136. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/tests/test_exceptions.py +0 -0
  137. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/tests/test_meshes.py +0 -0
  138. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/tests/test_pytree.py +0 -0
  139. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/tests/test_visualizer.py +0 -0
  140. {jaxsim-0.9.1.dev3 → jaxsim-0.9.1.dev31}/tests/utils.py +0 -0
@@ -20,12 +20,12 @@ jobs:
20
20
 
21
21
  steps:
22
22
 
23
- - uses: actions/checkout@v6
23
+ - uses: actions/checkout@v7
24
24
  with:
25
25
  fetch-depth: 0
26
26
 
27
27
  - name: Set up Python
28
- uses: actions/setup-python@v6
28
+ uses: actions/setup-python@v7
29
29
  with:
30
30
  python-version: "3.11"
31
31
 
@@ -72,7 +72,7 @@ jobs:
72
72
  steps:
73
73
 
74
74
  - name: Set up Python
75
- uses: actions/setup-python@v6
75
+ uses: actions/setup-python@v7
76
76
  with:
77
77
  python-version: ${{ matrix.python }}
78
78
 
@@ -99,11 +99,11 @@ jobs:
99
99
  - name: Import the package
100
100
  run: python -c "import jaxsim"
101
101
 
102
- - uses: actions/checkout@v6
102
+ - uses: actions/checkout@v7
103
103
  with:
104
104
  lfs: true
105
105
 
106
- - uses: prefix-dev/setup-pixi@v0.9.5
106
+ - uses: prefix-dev/setup-pixi@v0.11.2
107
107
  if: contains(matrix.os, 'ubuntu')
108
108
  with:
109
109
  pixi-version: "latest"
@@ -28,7 +28,7 @@ jobs:
28
28
  apt update && apt install -y git git-lfs
29
29
 
30
30
  - name: Checkout repository
31
- uses: actions/checkout@v6
31
+ uses: actions/checkout@v7
32
32
  with:
33
33
  lfs: true
34
34
  fetch-depth: 0
@@ -46,7 +46,7 @@ jobs:
46
46
 
47
47
  - name: Get benchmark results from main branch
48
48
  id: cache
49
- uses: actions/cache/restore@v5
49
+ uses: actions/cache/restore@v6
50
50
  with:
51
51
  path: ./cache
52
52
  key: ${{ runner.os }}-benchmark
@@ -58,7 +58,7 @@ jobs:
58
58
  PY_COLORS: "1"
59
59
 
60
60
  - name: Compare benchmark results with main branch
61
- uses: benchmark-action/github-action-benchmark@v1.22.0
61
+ uses: benchmark-action/github-action-benchmark@v1.22.2
62
62
  with:
63
63
  tool: 'pytest'
64
64
  output-file-path: output.json
@@ -71,7 +71,7 @@ jobs:
71
71
  github-token: ${{ secrets.GITHUB_TOKEN }}
72
72
 
73
73
  - name: Store benchmark result for main branch
74
- uses: benchmark-action/github-action-benchmark@v1.22.0
74
+ uses: benchmark-action/github-action-benchmark@v1.22.2
75
75
  if: ${{ github.ref_name == 'main' }}
76
76
  with:
77
77
  tool: 'pytest'
@@ -85,7 +85,7 @@ jobs:
85
85
  github-token: ${{ secrets.GITHUB_TOKEN }}
86
86
 
87
87
  - name: Publish Benchmark Results to GitHub Pages
88
- uses: benchmark-action/github-action-benchmark@v1.22.0
88
+ uses: benchmark-action/github-action-benchmark@v1.22.2
89
89
  if: ${{ github.ref_name == 'main' }}
90
90
  with:
91
91
  tool: 'pytest'
@@ -100,7 +100,7 @@ jobs:
100
100
  auto-push: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
101
101
 
102
102
  - name: Update Benchmark Results cache
103
- uses: actions/cache/save@v5
103
+ uses: actions/cache/save@v6
104
104
  if: ${{ github.ref_name == 'main' }}
105
105
  with:
106
106
  path: ./cache
@@ -17,12 +17,12 @@ jobs:
17
17
 
18
18
  steps:
19
19
 
20
- - uses: actions/checkout@v6
20
+ - uses: actions/checkout@v7
21
21
  with:
22
22
  lfs: true
23
23
 
24
24
  - name: Set up pixi
25
- uses: prefix-dev/setup-pixi@v0.9.5
25
+ uses: prefix-dev/setup-pixi@v0.11.2
26
26
  with:
27
27
  run-install: false
28
28
 
@@ -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: 26.3.1
23
+ rev: 26.10.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: 8.0.1
29
+ rev: 9.0.2
30
30
  hooks:
31
31
  - id: isort
32
32
  args: ["--check", "--diff"]
@@ -39,13 +39,13 @@ repos:
39
39
  - id: rst-inline-touching-normal
40
40
 
41
41
  - repo: https://github.com/codespell-project/codespell
42
- rev: v2.4.2
42
+ rev: v2.4.3
43
43
  hooks:
44
44
  - id: codespell
45
45
  args: ["-S", "*.lock"]
46
46
 
47
47
  - repo: https://github.com/astral-sh/ruff-pre-commit
48
- rev: v0.15.9
48
+ rev: v0.16.10
49
49
  hooks:
50
50
  - id: ruff
51
51
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: jaxsim
3
- Version: 0.9.1.dev3
3
+ Version: 0.9.1.dev31
4
4
  Summary: A differentiable physics engine and multibody dynamics library for control and robot learning.
5
5
  Project-URL: Changelog, https://github.com/gbionics/jaxsim/releases
6
6
  Project-URL: Documentation, https://jaxsim.readthedocs.io
@@ -265,7 +265,7 @@
265
265
  "\n",
266
266
  "print(f\"W_H_B: shape={W_H_B.shape}\\n{W_H_B}\\n\")\n",
267
267
  "print(f\"s: shape={s.shape}\\n{s}\\n\")\n",
268
- "print(f\"ν: shape={ν.shape}\\n{ν}\\n\") # noqa: RUF001"
268
+ "print(f\"ν: shape={ν.shape}\\n{ν}\\n\") # ruff: ignore[ambiguous-unicode-character-string]"
269
269
  ]
270
270
  },
271
271
  {
@@ -617,7 +617,7 @@
617
617
  ")\n",
618
618
  "\n",
619
619
  "ν̇_aba = jnp.hstack([v̇_WB, s̈])\n",
620
- "print(f\"ν̇: shape={ν̇_aba.shape}\") # noqa: RUF001\n",
620
+ "print(f\"ν̇: shape={ν̇_aba.shape}\") # ruff: ignore[ambiguous-unicode-character-string]\n",
621
621
  "\n",
622
622
  "# The following relation should hold.\n",
623
623
  "assert jnp.allclose(ν̇_eom, ν̇_aba)"
@@ -0,0 +1,3 @@
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca1d7409339c8ac3cee62621d11c641fd16247413167a8ab4d1e7e4518ca4641
3
+ size 757817
@@ -195,14 +195,14 @@ ignore = [
195
195
 
196
196
  [tool.pixi.workspace]
197
197
  channels = ["conda-forge"]
198
- platforms = ["linux-64", "linux-aarch64", "osx-arm64", "osx-64"]
199
- requires-pixi = ">=0.39.0"
198
+ platforms = [ "linux-64", "linux-aarch64", "osx-arm64", "osx-64", { name = "linux-64-cuda-13", platform = "linux-64", cuda = "13" }]
199
+ requires-pixi = ">=0.71.0"
200
200
  preview = ["pixi-build"]
201
201
 
202
202
  [tool.pixi.environments]
203
203
  # We resolve only two groups: cpu and gpu.
204
204
  # Then, multiple environments can be created from these groups.
205
- default = { features = ["test", "examples"] }
205
+ default = { features = ["cpu", "test", "examples"] }
206
206
  gpu = { features = ["test", "examples", "gpu"] }
207
207
 
208
208
  # ---------------
@@ -278,13 +278,21 @@ examples = { cmd = "jupyter notebook ./examples" }
278
278
  notebook = "*"
279
279
  robot_descriptions = ">=1.16.0"
280
280
 
281
+ # -----------
282
+ # feature.cpu
283
+ # -----------
284
+
285
+ [tool.pixi.feature.cpu]
286
+
287
+ [tool.pixi.feature.cpu.dependencies]
288
+ jaxlib = { version = "*", build = "*cpu*" }
289
+
281
290
  # -----------
282
291
  # feature.gpu
283
292
  # -----------
284
293
 
285
294
  [tool.pixi.feature.gpu]
286
- platforms = ["linux-64"]
287
- system-requirements = { cuda = "13" }
295
+ platforms = ["linux-64-cuda-13"]
288
296
 
289
297
  [tool.pixi.feature.gpu.dependencies]
290
298
  jaxlib = { version = "*", build = "*cuda*" }
@@ -96,7 +96,7 @@ def _get_default_logging_level() -> logging.LoggingLevel:
96
96
  # This is to avoid too verbose logging in non-editable installations.
97
97
  return (
98
98
  logging.LoggingLevel.INFO
99
- if _is_editable() # noqa: F821
99
+ if _is_editable() # ruff: ignore[undefined-name]
100
100
  else logging.LoggingLevel.WARNING
101
101
  )
102
102
 
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
18
18
  commit_id: str | None
19
19
  __commit_id__: str | None
20
20
 
21
- __version__ = version = '0.9.1.dev3'
22
- __version_tuple__ = version_tuple = (0, 9, 1, 'dev3')
21
+ __version__ = version = '0.9.1.dev31'
22
+ __version_tuple__ = version_tuple = (0, 9, 1, 'dev31')
23
23
 
24
24
  __commit_id__ = commit_id = None
@@ -141,9 +141,13 @@ def centroidal_momentum_jacobian(
141
141
 
142
142
  match data.velocity_representation:
143
143
  case VelRepr.Inertial | VelRepr.Mixed:
144
- W_H_G = W_H_GW = jnp.eye(4).at[0:3, 3].set(W_p_CoM) # noqa: F841
144
+ W_H_G = W_H_GW = ( # ruff: ignore[unused-variable]
145
+ jnp.eye(4).at[0:3, 3].set(W_p_CoM)
146
+ )
145
147
  case VelRepr.Body:
146
- W_H_G = W_H_GB = W_H_B.at[0:3, 3].set(W_p_CoM) # noqa: F841
148
+ W_H_G = W_H_GB = W_H_B.at[0:3, 3].set( # ruff: ignore[unused-variable]
149
+ W_p_CoM
150
+ )
147
151
  case _:
148
152
  raise ValueError(data.velocity_representation)
149
153
 
@@ -177,9 +181,13 @@ def locked_centroidal_spatial_inertia(
177
181
 
178
182
  match data.velocity_representation:
179
183
  case VelRepr.Inertial | VelRepr.Mixed:
180
- W_H_G = W_H_GW = jnp.eye(4).at[0:3, 3].set(W_p_CoM) # noqa: F841
184
+ W_H_G = W_H_GW = ( # ruff: ignore[unused-variable]
185
+ jnp.eye(4).at[0:3, 3].set(W_p_CoM)
186
+ )
181
187
  case VelRepr.Body:
182
- W_H_G = W_H_GB = W_H_B.at[0:3, 3].set(W_p_CoM) # noqa: F841
188
+ W_H_G = W_H_GB = W_H_B.at[0:3, 3].set( # ruff: ignore[unused-variable]
189
+ W_p_CoM
190
+ )
183
191
  case _:
184
192
  raise ValueError(data.velocity_representation)
185
193
 
@@ -298,12 +306,14 @@ def bias_acceleration(
298
306
 
299
307
  case VelRepr.Inertial:
300
308
 
301
- C_v̇_WL = W_v̇_bias_WL = v̇_bias_WL # noqa: F841
302
- C_v_WC = W_v_WW = jnp.zeros(6) # noqa: F841
309
+ C_v̇_WL = W_v̇_bias_WL = v̇_bias_WL # ruff: ignore[unused-variable]
310
+ C_v_WC = W_v_WW = jnp.zeros(6) # ruff: ignore[unused-variable]
303
311
 
304
- L_H_C = L_H_W = jax.vmap(jaxsim.math.Transform.inverse)(W_H_L) # noqa: F841
312
+ L_H_C = L_H_W = jax.vmap( # ruff: ignore[unused-variable]
313
+ jaxsim.math.Transform.inverse
314
+ )(W_H_L)
305
315
 
306
- L_v_LC = L_v_LW = jax.vmap( # noqa: F841
316
+ L_v_LC = L_v_LW = jax.vmap( # ruff: ignore[unused-variable]
307
317
  lambda i: -js.link.velocity(
308
318
  model=model, data=data, link_index=i, output_vel_repr=VelRepr.Body
309
319
  )
@@ -320,9 +330,9 @@ def bias_acceleration(
320
330
 
321
331
  case VelRepr.Mixed:
322
332
 
323
- C_v̇_WL = LW_v̇_bias_WL = v̇_bias_WL # noqa: F841
333
+ C_v̇_WL = LW_v̇_bias_WL = v̇_bias_WL # ruff: ignore[unused-variable]
324
334
 
325
- C_v_WC = LW_v_W_LW = jax.vmap( # noqa: F841
335
+ C_v_WC = LW_v_W_LW = jax.vmap( # ruff: ignore[unused-variable]
326
336
  lambda i: js.link.velocity(
327
337
  model=model, data=data, link_index=i, output_vel_repr=VelRepr.Mixed
328
338
  )
@@ -330,13 +340,13 @@ def bias_acceleration(
330
340
  .set(jnp.zeros(3))
331
341
  )(jnp.arange(model.number_of_links()))
332
342
 
333
- L_H_C = L_H_LW = jax.vmap( # noqa: F841
343
+ L_H_C = L_H_LW = jax.vmap( # ruff: ignore[unused-variable]
334
344
  lambda W_H_L: jaxsim.math.Transform.inverse(
335
345
  W_H_L.at[0:3, 3].set(jnp.zeros(3))
336
346
  )
337
347
  )(W_H_L)
338
348
 
339
- L_v_LC = L_v_L_LW = jax.vmap( # noqa: F841
349
+ L_v_LC = L_v_L_LW = jax.vmap( # ruff: ignore[unused-variable]
340
350
  lambda i: -js.link.velocity(
341
351
  model=model, data=data, link_index=i, output_vel_repr=VelRepr.Body
342
352
  )
@@ -3,7 +3,7 @@ import contextlib
3
3
  import dataclasses
4
4
  import enum
5
5
  import functools
6
- from collections.abc import Callable, Iterator
6
+ from collections.abc import Callable, Generator
7
7
  from typing import ParamSpec, TypeVar
8
8
 
9
9
  import jax
@@ -60,7 +60,7 @@ class ModelDataWithVelocityRepresentation(JaxsimDataclass, abc.ABC):
60
60
  @contextlib.contextmanager
61
61
  def switch_velocity_representation(
62
62
  self, velocity_representation: VelRepr
63
- ) -> Iterator[Self]:
63
+ ) -> Generator[Self]:
64
64
  """
65
65
  Context manager to temporarily switch the velocity representation.
66
66
 
@@ -470,10 +470,10 @@ def jacobian_derivative(
470
470
 
471
471
  match output_vel_repr:
472
472
  case VelRepr.Inertial:
473
- O_X_W = W_X_W = Adjoint.from_transform( # noqa: F841
473
+ O_X_W = W_X_W = Adjoint.from_transform( # ruff: ignore[unused-variable]
474
474
  transform=jnp.eye(4)
475
475
  )
476
- O_Ẋ_W = W_Ẋ_W = jnp.zeros((6, 6)) # noqa: F841
476
+ O_Ẋ_W = W_Ẋ_W = jnp.zeros((6, 6)) # ruff: ignore[unused-variable]
477
477
 
478
478
  case VelRepr.Body:
479
479
  L_H_C = Transform.from_rotation_and_translation(translation=L_p_C)
@@ -481,7 +481,7 @@ def jacobian_derivative(
481
481
  O_X_W = C_X_W = Adjoint.from_transform(transform=W_H_C, inverse=True)
482
482
  W_v_WC = W_v_WLi[parent_link_idx]
483
483
  W_vx_WC = Cross.vx(W_v_WC)
484
- O_Ẋ_W = C_Ẋ_W = -C_X_W @ W_vx_WC # noqa: F841
484
+ O_Ẋ_W = C_Ẋ_W = -C_X_W @ W_vx_WC # ruff: ignore[unused-variable]
485
485
 
486
486
  case VelRepr.Mixed:
487
487
  L_H_C = Transform.from_rotation_and_translation(translation=L_p_C)
@@ -492,7 +492,7 @@ def jacobian_derivative(
492
492
  CW_v_WC = CW_X_W @ W_v_WLi[parent_link_idx]
493
493
  W_v_W_CW = jnp.zeros(6).at[0:3].set(CW_v_WC[0:3])
494
494
  W_vx_W_CW = Cross.vx(W_v_W_CW)
495
- O_Ẋ_W = CW_Ẋ_W = -CW_X_W @ W_vx_W_CW # noqa: F841
495
+ O_Ẋ_W = CW_Ẋ_W = -CW_X_W @ W_vx_W_CW # ruff: ignore[unused-variable]
496
496
 
497
497
  case _:
498
498
  raise ValueError(output_vel_repr)
@@ -228,7 +228,7 @@ class JaxSimModelData(common.ModelDataWithVelocityRepresentation):
228
228
  @property
229
229
  def joint_positions(self) -> jtp.Vector:
230
230
  """
231
- Get the joint positions.
231
+ The joint positions.
232
232
 
233
233
  Returns:
234
234
  The joint positions.
@@ -238,7 +238,7 @@ class JaxSimModelData(common.ModelDataWithVelocityRepresentation):
238
238
  @property
239
239
  def joint_velocities(self) -> jtp.Vector:
240
240
  """
241
- Get the joint velocities.
241
+ The joint velocities.
242
242
 
243
243
  Returns:
244
244
  The joint velocities.
@@ -248,7 +248,7 @@ class JaxSimModelData(common.ModelDataWithVelocityRepresentation):
248
248
  @property
249
249
  def base_quaternion(self) -> jtp.Vector:
250
250
  """
251
- Get the base quaternion.
251
+ The base quaternion.
252
252
 
253
253
  Returns:
254
254
  The base quaternion.
@@ -258,7 +258,7 @@ class JaxSimModelData(common.ModelDataWithVelocityRepresentation):
258
258
  @property
259
259
  def base_position(self) -> jtp.Vector:
260
260
  """
261
- Get the base position.
261
+ The base position.
262
262
 
263
263
  Returns:
264
264
  The base position.
@@ -268,7 +268,7 @@ class JaxSimModelData(common.ModelDataWithVelocityRepresentation):
268
268
  @property
269
269
  def base_orientation(self) -> jtp.Matrix:
270
270
  """
271
- Get the base orientation.
271
+ The base orientation.
272
272
 
273
273
  Returns:
274
274
  The base orientation.
@@ -289,7 +289,7 @@ class JaxSimModelData(common.ModelDataWithVelocityRepresentation):
289
289
  @property
290
290
  def base_velocity(self) -> jtp.Vector:
291
291
  """
292
- Get the base 6D velocity.
292
+ The base 6D velocity.
293
293
 
294
294
  Returns:
295
295
  The base 6D velocity in the active representation.
@@ -315,7 +315,7 @@ class JaxSimModelData(common.ModelDataWithVelocityRepresentation):
315
315
  @property
316
316
  def generalized_position(self) -> tuple[jtp.Matrix, jtp.Vector]:
317
317
  r"""
318
- Get the generalized position
318
+ The generalized position
319
319
  :math:`\mathbf{q} = ({}^W \mathbf{H}_B, \mathbf{s}) \in \text{SO}(3) \times \mathbb{R}^n`.
320
320
 
321
321
  Returns:
@@ -327,7 +327,7 @@ class JaxSimModelData(common.ModelDataWithVelocityRepresentation):
327
327
  @property
328
328
  def generalized_velocity(self) -> jtp.Vector:
329
329
  r"""
330
- Get the generalized velocity.
330
+ The generalized velocity.
331
331
 
332
332
  :math:`\boldsymbol{\nu} = (\boldsymbol{v}_{W,B};\, \boldsymbol{\omega}_{W,B};\, \mathbf{s}) \in \mathbb{R}^{6+n}`
333
333
 
@@ -344,7 +344,7 @@ class JaxSimModelData(common.ModelDataWithVelocityRepresentation):
344
344
  @property
345
345
  def base_transform(self) -> jtp.Matrix:
346
346
  """
347
- Get the base transform.
347
+ The base transform.
348
348
 
349
349
  Returns:
350
350
  The base transform.
@@ -202,7 +202,7 @@ def rk4fast_integration(
202
202
  )
203
203
 
204
204
  W_ṗ_B, W_Q̇_B, ṡ = js.ode.system_position_dynamics(
205
- data=data,
205
+ data=data_ti,
206
206
  baumgarte_quaternion_regularization=1.0,
207
207
  )
208
208
 
@@ -73,28 +73,28 @@ class KinDynParameters(JaxsimDataclass):
73
73
  @property
74
74
  def motion_subspaces(self) -> jtp.Matrix:
75
75
  r"""
76
- Return the motion subspaces :math:`\mathbf{S}(s)` of the joints.
76
+ The motion subspaces :math:`\mathbf{S}(s)` of the joints.
77
77
  """
78
78
  return self._motion_subspaces.get()
79
79
 
80
80
  @property
81
81
  def parent_array(self) -> jtp.Vector:
82
82
  r"""
83
- Return the parent array :math:`\lambda(i)` of the model.
83
+ The parent array :math:`\lambda(i)` of the model.
84
84
  """
85
85
  return self._parent_array.get()
86
86
 
87
87
  @property
88
88
  def support_body_array_bool(self) -> jtp.Matrix:
89
89
  r"""
90
- Return the boolean support parent array :math:`\kappa_{b}(i)` of the model.
90
+ The boolean support parent array :math:`\kappa_{b}(i)` of the model.
91
91
  """
92
92
  return self._support_body_array_bool.get()
93
93
 
94
94
  @property
95
95
  def level_nodes(self) -> jtp.Matrix:
96
96
  r"""
97
- Return the tree level nodes array of shape ``(n_levels, max_width)``.
97
+ The tree level nodes array of shape ``(n_levels, max_width)``.
98
98
  Each row contains the link indices at the corresponding depth level,
99
99
  padded with 0 for levels with fewer nodes than ``max_width``.
100
100
  """
@@ -103,7 +103,7 @@ class KinDynParameters(JaxsimDataclass):
103
103
  @property
104
104
  def level_mask(self) -> jtp.Matrix:
105
105
  r"""
106
- Return the tree level mask of shape ``(n_levels, max_width)``.
106
+ The tree level mask of shape ``(n_levels, max_width)``.
107
107
  Each entry is ``True`` for real nodes and ``False`` for padding.
108
108
  """
109
109
  return self._level_mask.get()
@@ -873,7 +873,7 @@ class ContactParameters(JaxsimDataclass):
873
873
  @property
874
874
  def indices_of_enabled_collidable_points(self) -> npt.NDArray:
875
875
  """
876
- Return the indices of the enabled collidable points.
876
+ The indices of the enabled collidable points.
877
877
  """
878
878
  return np.where(np.array(self.enabled))[0]
879
879
 
@@ -287,8 +287,8 @@ def jacobian(
287
287
  case VelRepr.Inertial:
288
288
  W_H_B = data._base_transform
289
289
  B_X_W = Adjoint.from_transform(transform=W_H_B, inverse=True)
290
- B_J_WL_I = B_J_WL_W = B_J_WL_B @ jax.scipy.linalg.block_diag( # noqa: F841
291
- B_X_W, jnp.eye(model.dofs())
290
+ B_J_WL_I = B_J_WL_W = ( # ruff: ignore[unused-variable]
291
+ B_J_WL_B @ jax.scipy.linalg.block_diag(B_X_W, jnp.eye(model.dofs()))
292
292
  )
293
293
 
294
294
  case VelRepr.Body:
@@ -298,8 +298,8 @@ def jacobian(
298
298
  W_R_B = jaxsim.math.Quaternion.to_dcm(data.base_orientation)
299
299
  BW_H_B = jnp.eye(4).at[0:3, 0:3].set(W_R_B)
300
300
  B_X_BW = Adjoint.from_transform(transform=BW_H_B, inverse=True)
301
- B_J_WL_I = B_J_WL_BW = B_J_WL_B @ jax.scipy.linalg.block_diag( # noqa: F841
302
- B_X_BW, jnp.eye(model.dofs())
301
+ B_J_WL_I = B_J_WL_BW = ( # ruff: ignore[unused-variable]
302
+ B_J_WL_B @ jax.scipy.linalg.block_diag(B_X_BW, jnp.eye(model.dofs()))
303
303
  )
304
304
 
305
305
  case _:
@@ -312,7 +312,7 @@ def jacobian(
312
312
  case VelRepr.Inertial:
313
313
  W_H_B = data._base_transform
314
314
  W_X_B = Adjoint.from_transform(transform=W_H_B)
315
- O_J_WL_I = W_J_WL_I = W_X_B @ B_J_WL_I # noqa: F841
315
+ O_J_WL_I = W_J_WL_I = W_X_B @ B_J_WL_I # ruff: ignore[unused-variable]
316
316
 
317
317
  case VelRepr.Body:
318
318
  L_X_B = Adjoint.from_transform(transform=B_H_L, inverse=True)
@@ -93,7 +93,7 @@ class JaxSimModel(JaxsimDataclass):
93
93
  @property
94
94
  def description(self) -> ModelDescription:
95
95
  """
96
- Return the model description.
96
+ The model description.
97
97
  """
98
98
  return self._description.get()
99
99
 
@@ -1654,8 +1654,8 @@ def forward_dynamics_aba(
1654
1654
  match data.velocity_representation:
1655
1655
  case VelRepr.Inertial:
1656
1656
  # In this case C=W
1657
- W_H_C = W_H_W = jnp.eye(4) # noqa: F841
1658
- W_v_WC = W_v_WW = jnp.zeros(6) # noqa: F841
1657
+ W_H_C = W_H_W = jnp.eye(4) # ruff: ignore[unused-variable]
1658
+ W_v_WC = W_v_WW = jnp.zeros(6) # ruff: ignore[unused-variable]
1659
1659
 
1660
1660
  case VelRepr.Body:
1661
1661
  # In this case C=B
@@ -1665,9 +1665,13 @@ def forward_dynamics_aba(
1665
1665
  case VelRepr.Mixed:
1666
1666
  # In this case C=B[W]
1667
1667
  W_H_B = data._base_transform
1668
- W_H_C = W_H_BW = W_H_B.at[0:3, 0:3].set(jnp.eye(3)) # noqa: F841
1668
+ W_H_C = W_H_BW = W_H_B.at[0:3, 0:3].set( # ruff: ignore[unused-variable]
1669
+ jnp.eye(3)
1670
+ )
1669
1671
  W_ṗ_B = data.base_velocity[0:3]
1670
- W_v_WC = W_v_W_BW = jnp.zeros(6).at[0:3].set(W_ṗ_B) # noqa: F841
1672
+ W_v_WC = W_v_W_BW = ( # ruff: ignore[unused-variable]
1673
+ jnp.zeros(6).at[0:3].set(W_ṗ_B)
1674
+ )
1671
1675
 
1672
1676
  case _:
1673
1677
  raise ValueError(data.velocity_representation)
@@ -2120,8 +2124,8 @@ def inverse_dynamics(
2120
2124
 
2121
2125
  match data.velocity_representation:
2122
2126
  case VelRepr.Inertial:
2123
- W_H_C = W_H_W = jnp.eye(4) # noqa: F841
2124
- W_v_WC = W_v_WW = jnp.zeros(6) # noqa: F841
2127
+ W_H_C = W_H_W = jnp.eye(4) # ruff: ignore[unused-variable]
2128
+ W_v_WC = W_v_WW = jnp.zeros(6) # ruff: ignore[unused-variable]
2125
2129
 
2126
2130
  case VelRepr.Body:
2127
2131
  W_H_C = W_H_B = data._base_transform
@@ -2130,9 +2134,13 @@ def inverse_dynamics(
2130
2134
 
2131
2135
  case VelRepr.Mixed:
2132
2136
  W_H_B = data._base_transform
2133
- W_H_C = W_H_BW = W_H_B.at[0:3, 0:3].set(jnp.eye(3)) # noqa: F841
2137
+ W_H_C = W_H_BW = W_H_B.at[0:3, 0:3].set( # ruff: ignore[unused-variable]
2138
+ jnp.eye(3)
2139
+ )
2134
2140
  W_ṗ_B = data.base_velocity[0:3]
2135
- W_v_WC = W_v_W_BW = jnp.zeros(6).at[0:3].set(W_ṗ_B) # noqa: F841
2141
+ W_v_WC = W_v_W_BW = ( # ruff: ignore[unused-variable]
2142
+ jnp.zeros(6).at[0:3].set(W_ṗ_B)
2143
+ )
2136
2144
 
2137
2145
  case _:
2138
2146
  raise ValueError(data.velocity_representation)
@@ -2532,15 +2540,15 @@ def link_bias_accelerations(
2532
2540
  # a simple C_X_W 6D transform.
2533
2541
  match data.velocity_representation:
2534
2542
  case VelRepr.Inertial:
2535
- W_H_C = W_H_W = jnp.eye(4) # noqa: F841
2536
- W_v_WC = W_v_WW = jnp.zeros(6) # noqa: F841
2543
+ W_H_C = W_H_W = jnp.eye(4) # ruff: ignore[unused-variable]
2544
+ W_v_WC = W_v_WW = jnp.zeros(6) # ruff: ignore[unused-variable]
2537
2545
  with data.switch_velocity_representation(VelRepr.Inertial):
2538
2546
  C_v_WB = W_v_WB = data.base_velocity
2539
2547
 
2540
2548
  case VelRepr.Body:
2541
2549
  W_H_C = W_H_B
2542
2550
  with data.switch_velocity_representation(VelRepr.Inertial):
2543
- W_v_WC = W_v_WB = data.base_velocity # noqa: F841
2551
+ W_v_WC = W_v_WB = data.base_velocity # ruff: ignore[unused-variable]
2544
2552
  with data.switch_velocity_representation(VelRepr.Body):
2545
2553
  C_v_WB = B_v_WB = data.base_velocity
2546
2554
 
@@ -2551,9 +2559,9 @@ def link_bias_accelerations(
2551
2559
  W_ṗ_B = data.base_velocity[0:3]
2552
2560
  BW_v_W_BW = jnp.zeros(6).at[0:3].set(W_ṗ_B)
2553
2561
  W_X_BW = jaxsim.math.Adjoint.from_transform(transform=W_H_BW)
2554
- W_v_WC = W_v_W_BW = W_X_BW @ BW_v_W_BW # noqa: F841
2562
+ W_v_WC = W_v_W_BW = W_X_BW @ BW_v_W_BW # ruff: ignore[unused-variable]
2555
2563
  with data.switch_velocity_representation(VelRepr.Mixed):
2556
- C_v_WB = BW_v_WB = data.base_velocity # noqa: F841
2564
+ C_v_WB = BW_v_WB = data.base_velocity # ruff: ignore[unused-variable]
2557
2565
 
2558
2566
  case _:
2559
2567
  raise ValueError(data.velocity_representation)
@@ -2663,10 +2671,10 @@ def link_bias_accelerations(
2663
2671
 
2664
2672
  match data.velocity_representation:
2665
2673
  case VelRepr.Body:
2666
- C_H_L = L_H_L = jnp.stack( # noqa: F841
2674
+ C_H_L = L_H_L = jnp.stack( # ruff: ignore[unused-variable]
2667
2675
  [jnp.eye(4)] * model.number_of_links()
2668
2676
  )
2669
- L_v_CL = L_v_LL = jnp.zeros( # noqa: F841
2677
+ L_v_CL = L_v_LL = jnp.zeros( # ruff: ignore[unused-variable]
2670
2678
  shape=(model.number_of_links(), 6)
2671
2679
  )
2672
2680
 
@@ -2678,7 +2686,7 @@ def link_bias_accelerations(
2678
2686
  W_H_L = data._link_transforms
2679
2687
  LW_H_L = jax.vmap(lambda W_H_L: W_H_L.at[0:3, 3].set(jnp.zeros(3)))(W_H_L)
2680
2688
  C_H_L = LW_H_L
2681
- L_v_CL = L_v_LW_L = jax.vmap( # noqa: F841
2689
+ L_v_CL = L_v_LW_L = jax.vmap( # ruff: ignore[unused-variable]
2682
2690
  lambda v: v.at[0:3].set(jnp.zeros(3))
2683
2691
  )(L_v_WL)
2684
2692