jaxsim 0.8.2.dev35__py3-none-any.whl → 0.8.3.dev33__py3-none-any.whl

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.
jaxsim/_version.py CHANGED
@@ -1,5 +1,6 @@
1
- # file generated by setuptools-scm
1
+ # file generated by vcs-versioning
2
2
  # don't change, don't track in version control
3
+ from __future__ import annotations
3
4
 
4
5
  __all__ = [
5
6
  "__version__",
@@ -10,25 +11,14 @@ __all__ = [
10
11
  "commit_id",
11
12
  ]
12
13
 
13
- TYPE_CHECKING = False
14
- if TYPE_CHECKING:
15
- from typing import Tuple
16
- from typing import Union
17
-
18
- VERSION_TUPLE = Tuple[Union[int, str], ...]
19
- COMMIT_ID = Union[str, None]
20
- else:
21
- VERSION_TUPLE = object
22
- COMMIT_ID = object
23
-
24
14
  version: str
25
15
  __version__: str
26
- __version_tuple__: VERSION_TUPLE
27
- version_tuple: VERSION_TUPLE
28
- commit_id: COMMIT_ID
29
- __commit_id__: COMMIT_ID
16
+ __version_tuple__: tuple[int | str, ...]
17
+ version_tuple: tuple[int | str, ...]
18
+ commit_id: str | None
19
+ __commit_id__: str | None
30
20
 
31
- __version__ = version = '0.8.2.dev35'
32
- __version_tuple__ = version_tuple = (0, 8, 2, 'dev35')
21
+ __version__ = version = '0.8.3.dev33'
22
+ __version_tuple__ = version_tuple = (0, 8, 3, 'dev33')
33
23
 
34
24
  __commit_id__ = commit_id = None
jaxsim/api/integrators.py CHANGED
@@ -137,10 +137,10 @@ def rk4_integration(
137
137
  # Average the slopes and compute the RK4 state derivative.
138
138
  average = lambda k1, k2, k3, k4: (k1 + 2 * k2 + 2 * k3 + k4) / 6
139
139
 
140
- dxdt = jax.tree_util.tree_map(average, k1, k2, k3, k4)
140
+ dxdt = jax.tree.map(average, k1, k2, k3, k4)
141
141
 
142
142
  # Integrate the dynamics
143
- x_tf = jax.tree_util.tree_map(euler_fin, x_t0, dxdt)
143
+ x_tf = jax.tree.map(euler_fin, x_t0, dxdt)
144
144
 
145
145
  data_tf = dataclasses.replace(
146
146
  data,
@@ -244,10 +244,10 @@ def rk4fast_integration(
244
244
  # Average the slopes and compute the RK4 state derivative.
245
245
  average = lambda k1, k2, k3, k4: (k1 + 2 * k2 + 2 * k3 + k4) / 6
246
246
 
247
- dxdt = jax.tree_util.tree_map(average, k1, k2, k3, k4)
247
+ dxdt = jax.tree.map(average, k1, k2, k3, k4)
248
248
 
249
249
  # Integrate the dynamics
250
- x_tf = jax.tree_util.tree_map(euler_fin, x_t0, dxdt)
250
+ x_tf = jax.tree.map(euler_fin, x_t0, dxdt)
251
251
 
252
252
  data_tf = dataclasses.replace(
253
253
  data,
@@ -1,6 +1,7 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  import dataclasses
4
+ from itertools import starmap
4
5
  from typing import ClassVar
5
6
 
6
7
  import jax.lax
@@ -143,7 +144,7 @@ class KinDynParameters(JaxsimDataclass):
143
144
  # Create a vectorized object of joint parameters.
144
145
  joint_parameters = (
145
146
  jax.tree.map(lambda *l: jnp.stack(l), *joint_parameters_list)
146
- if len(ordered_joints) > 0
147
+ if ordered_joints
147
148
  else JointParameters(
148
149
  index=jnp.array([], dtype=int),
149
150
  friction_static=jnp.array([], dtype=float),
@@ -245,14 +246,14 @@ class KinDynParameters(JaxsimDataclass):
245
246
 
246
247
  return S[joint_type]
247
248
 
248
- S_J = (
249
- jnp.array(
250
- [
251
- motion_subspace(joint_type, axis)
252
- for joint_type, axis in zip(
249
+ S_J = jnp.array(
250
+ list(
251
+ starmap(
252
+ motion_subspace,
253
+ zip(
253
254
  joint_model.joint_types[1:], joint_model.joint_axis, strict=True
254
- )
255
- ]
255
+ ),
256
+ )
256
257
  )
257
258
  if len(joint_model.joint_axis) != 0
258
259
  else jnp.empty((0, 6, 1))
jaxsim/api/model.py CHANGED
@@ -415,7 +415,7 @@ class JaxSimModel(JaxsimDataclass):
415
415
  if not jnp.allclose(
416
416
  self.kin_dyn_parameters.joint_model.suc_H_i[link_index],
417
417
  jnp.eye(4),
418
- **(dict(atol=1e-6) if not jax.config.jax_enable_x64 else dict()),
418
+ **(dict(atol=1e-6) if not jax.config.jax_enable_x64 else {}),
419
419
  ):
420
420
  logging.debug(
421
421
  f"Skipping link '{link_name}' for hardware parametrization due to unsupported suc_H_link."
@@ -578,38 +578,42 @@ class JaxSimModel(JaxsimDataclass):
578
578
  inertia_tensor=inertia_tensor, validate=True
579
579
  )
580
580
 
581
- # Update visual shape
581
+ # Update visuals and collisions
582
582
  dims = hw_metadata.geometry[link_index]
583
- if shape == LinkParametrizableShape.Box:
584
- links_dict[link_name].visual.geometry.box.size = dims.tolist()
585
- links_dict[link_name].collision.geometry.box.size = dims.tolist()
586
- elif shape == LinkParametrizableShape.Sphere:
587
- links_dict[link_name].visual.geometry.sphere.radius = float(dims[0])
588
- links_dict[link_name].collision.geometry.sphere.radius = float(dims[0])
589
- elif shape == LinkParametrizableShape.Cylinder:
590
- links_dict[link_name].visual.geometry.cylinder.radius = float(dims[0])
591
- links_dict[link_name].visual.geometry.cylinder.length = float(dims[1])
592
- links_dict[link_name].collision.geometry.cylinder.radius = float(
593
- dims[0]
594
- )
595
- links_dict[link_name].collision.geometry.cylinder.length = float(
596
- dims[1]
597
- )
598
- else:
599
- logging.debug(f"Skipping unsupported shape for link '{link_name}'")
600
- continue
601
583
 
602
- # Update visual pose
603
- links_dict[link_name].visual.pose = rod.Pose.from_transform(
604
- transform=np.array(hw_metadata.L_H_vis[link_index]),
605
- relative_to=link_name,
584
+ elements_to_update = (
585
+ links_dict[link_name].visual,
586
+ links_dict[link_name].collision,
606
587
  )
607
588
 
608
- links_dict[link_name].collision.pose = rod.Pose.from_transform(
589
+ element_pose = rod.Pose.from_transform(
609
590
  transform=np.array(hw_metadata.L_H_vis[link_index]),
610
591
  relative_to=link_name,
611
592
  )
612
593
 
594
+ for element in elements_to_update:
595
+ if element is None:
596
+ continue
597
+
598
+ # Update geometry
599
+ if shape == LinkParametrizableShape.Box:
600
+ element.geometry.box.size = dims.tolist()
601
+ elif shape == LinkParametrizableShape.Sphere:
602
+ element.geometry.sphere.radius = float(dims[0])
603
+ elif shape == LinkParametrizableShape.Cylinder:
604
+ element.geometry.cylinder.radius = float(dims[0])
605
+ element.geometry.cylinder.length = float(dims[1])
606
+ else:
607
+ # This branch should be unreachable. Unsupported shapes should be
608
+ # filtered out above.
609
+ raise RuntimeError(
610
+ f"Unexpected shape {shape} for link '{link_name}'. "
611
+ "This should never be hit."
612
+ )
613
+
614
+ # Update pose
615
+ element.pose = element_pose
616
+
613
617
  # Update joint poses
614
618
  for joint_index in range(self.number_of_joints()):
615
619
  if hw_metadata.L_H_pre_mask[link_index, joint_index]:
@@ -1662,7 +1666,9 @@ def free_floating_coriolis_matrix(
1662
1666
  L_J_WL_B = generalized_free_floating_jacobian(model=model, data=data)
1663
1667
 
1664
1668
  # Doubly-left free-floating Jacobian derivative.
1665
- L_J̇_WL_B = generalized_free_floating_jacobian_derivative(model=model, data=data)
1669
+ L_J̇_WL_B = generalized_free_floating_jacobian_derivative(
1670
+ model=model, data=data
1671
+ )
1666
1672
 
1667
1673
  L_M_L = link_spatial_inertia_matrices(model=model)
1668
1674
 
jaxsim/math/__init__.py CHANGED
@@ -9,6 +9,5 @@ from .utils import safe_norm
9
9
 
10
10
  from .joint_model import JointModel, supported_joint_motion # isort:skip
11
11
 
12
-
13
12
  # Define the default standard gravity constant.
14
13
  STANDARD_GRAVITY = 9.81
jaxsim/math/utils.py CHANGED
@@ -25,7 +25,7 @@ def _make_safe_norm(axis, keepdims):
25
25
  (x,), (x_dot,) = primals, tangents
26
26
 
27
27
  # Check if the entire array is composed of zeros.
28
- is_zero = jnp.all(x == 0.0)
28
+ is_zero = jnp.allclose(x, 0)
29
29
 
30
30
  # Replace zeros with an array of ones temporarily to avoid division by zero.
31
31
  # This ensures the computation of norm does not produce NaNs or Infs.
jaxsim/mujoco/__main__.py CHANGED
@@ -5,7 +5,7 @@ import time
5
5
 
6
6
  import numpy as np
7
7
 
8
- from . import MujocoModelHelper, MujocoVisualizer, SdfToMjcf, UrdfToMjcf
8
+ from . import ModelToMjcf, MujocoModelHelper, MujocoVisualizer
9
9
 
10
10
  if __name__ == "__main__":
11
11
 
@@ -129,20 +129,7 @@ if __name__ == "__main__":
129
129
  # Load the URDF/SDF file and produce a MJCF string
130
130
  # ================================================
131
131
 
132
- match args.description.suffix.lower()[1:]:
133
-
134
- case "urdf":
135
- mjcf_string, assets = UrdfToMjcf().convert(urdf=args.description)
136
-
137
- case "sdf":
138
- mjcf_string, assets = SdfToMjcf().convert(
139
- sdf=args.description, model_name=args.model_name
140
- )
141
-
142
- case _:
143
- msg = f"The file extension '{args.description.suffix}' is not supported."
144
- parser.error(msg)
145
- sys.exit(1)
132
+ mjcf_string, assets = ModelToMjcf.convert(args.description)
146
133
 
147
134
  if args.print:
148
135
  print(mjcf_string, flush=True)
jaxsim/mujoco/loaders.py CHANGED
@@ -1,4 +1,3 @@
1
- import os
2
1
  import pathlib
3
2
  import tempfile
4
3
  import warnings
@@ -257,7 +256,7 @@ class RodModelToMjcf:
257
256
 
258
257
  # If considered joints are passed, make sure that they are all part of the model.
259
258
  if considered_joints - {j.name for j in rod_model.joints()}:
260
- extra_joints = set(considered_joints) - {j.name for j in rod_model.joints()}
259
+ extra_joints = considered_joints - {j.name for j in rod_model.joints()}
261
260
 
262
261
  msg = f"Couldn't find the following joints in the model: '{extra_joints}'"
263
262
  raise ValueError(msg)
@@ -374,7 +373,7 @@ class RodModelToMjcf:
374
373
  tree = ET.parse(source=temp_filename, parser=parser)
375
374
 
376
375
  finally:
377
- os.remove(temp_filename)
376
+ pathlib.Path(temp_filename).unlink()
378
377
 
379
378
  # Get the root element.
380
379
  root: ET._Element = tree.getroot()
@@ -502,8 +501,8 @@ class RodModelToMjcf:
502
501
  asset_element,
503
502
  "hfield",
504
503
  name="terrain",
505
- nrow=f"{int(heightmap_samples_xy[0])}",
506
- ncol=f"{int(heightmap_samples_xy[1])}",
504
+ nrow=str(int(heightmap_samples_xy[0])),
505
+ ncol=str(int(heightmap_samples_xy[1])),
507
506
  # The following 'size' is a placeholder, it is updated dynamically
508
507
  # when a hfield/heightmap is stored into MjData.
509
508
  size="1 1 1 1",
jaxsim/mujoco/model.py CHANGED
@@ -193,7 +193,7 @@ class MujocoModelHelper:
193
193
  return (
194
194
  (
195
195
  np.reshape(self.data.xmat[0], newshape=(3, 3))
196
- if dcm is True
196
+ if dcm
197
197
  else self.data.xquat[0]
198
198
  )
199
199
  if self.is_floating_base()
jaxsim/mujoco/utils.py CHANGED
@@ -218,7 +218,7 @@ class MujocoCamera:
218
218
  return MujocoCamera.build(
219
219
  name=camera_name,
220
220
  mode=mode,
221
- fovy=f"{fovy if degrees else np.rad2deg(fovy)}",
221
+ fovy=str(fovy if degrees else np.rad2deg(fovy)),
222
222
  pos=" ".join(p.astype(str).tolist()),
223
223
  quat=" ".join(Q.astype(str).tolist()),
224
224
  **kwargs,
@@ -87,11 +87,11 @@ class ModelDescription(KinematicGraph):
87
87
  # lumped link that replace the combination of the removed link and its parent.
88
88
  for collision_shape in collisions:
89
89
 
90
- # Get all the collidable points of the shape
91
- coll_points = tuple(collision_shape.collidable_points)
92
-
93
90
  # Assume they have an unique parent link
94
- if not len(set({cp.parent_link.name for cp in coll_points})) == 1:
91
+ if (
92
+ len({cp.parent_link.name for cp in collision_shape.collidable_points})
93
+ != 1
94
+ ):
95
95
  msg = "Collision shape not currently supported (multiple parent links)"
96
96
  raise RuntimeError(msg)
97
97
 
@@ -171,7 +171,7 @@ class ModelDescription(KinematicGraph):
171
171
  "order of the joints, or use the `joint_names()` method to inspect the internal joint ordering."
172
172
  )
173
173
 
174
- if len(set(considered_joints) - set(self.joint_names())) != 0:
174
+ if set(considered_joints) - set(self.joint_names()):
175
175
  extra_joints = set(considered_joints) - set(self.joint_names())
176
176
  msg = f"Found joints not part of the model: {extra_joints}"
177
177
  raise ValueError(msg)
@@ -181,7 +181,7 @@ class ModelDescription(KinematicGraph):
181
181
  links=list(self.links_dict.values()),
182
182
  joints=self.joints,
183
183
  frames=self.frames,
184
- collisions=tuple(self.collision_shapes),
184
+ collisions=self.collision_shapes,
185
185
  fixed_base=self.fixed_base,
186
186
  base_link_name=next(iter(self)).name,
187
187
  model_pose=self.root_pose,
@@ -153,7 +153,7 @@ class KinematicGraph(Sequence[LinkDescription]):
153
153
  # have last_link_idx + 1.
154
154
  for index, frame in enumerate(self.frames):
155
155
  with frame.mutable_context(mutability=Mutability.MUTABLE_NO_VALIDATION):
156
- frame.index = int(index + len(self.link_names()))
156
+ frame.index = index + len(self.link_names())
157
157
 
158
158
  # Number joints so that their index matches their child link index.
159
159
  # Therefore, the first joint has index 1.
@@ -406,7 +406,7 @@ class KinematicGraph(Sequence[LinkDescription]):
406
406
  return copy.deepcopy(self)
407
407
 
408
408
  # Check if all considered joints are part of the full kinematic graph
409
- if len(set(considered_joints) - {j.name for j in full_graph.joints}) != 0:
409
+ if set(considered_joints) - {j.name for j in full_graph.joints}:
410
410
  extra_j = set(considered_joints) - {j.name for j in full_graph.joints}
411
411
  msg = f"Not all joints to consider are part of the graph ({{{extra_j}}})"
412
412
  raise ValueError(msg)
@@ -691,7 +691,7 @@ class KinematicGraph(Sequence[LinkDescription]):
691
691
 
692
692
  yield root
693
693
 
694
- while len(queue) > 0:
694
+ while queue:
695
695
 
696
696
  # Extract the first element of the queue.
697
697
  l = queue.pop(0)
@@ -139,7 +139,7 @@ class RigidContacts(ContactModel):
139
139
  The `RigidContacts` instance.
140
140
  """
141
141
 
142
- if len(kwargs) != 0:
142
+ if kwargs:
143
143
  logging.warning(msg=f"Ignoring extra arguments: {kwargs}")
144
144
 
145
145
  # Get the default solver options.
@@ -142,7 +142,7 @@ class SoftContacts(common.ContactModel):
142
142
  The `SoftContacts` instance.
143
143
  """
144
144
 
145
- if len(kwargs) != 0:
145
+ if kwargs:
146
146
  logging.warning(msg=f"Ignoring extra arguments: {kwargs}")
147
147
 
148
148
  return cls(**kwargs)
@@ -13,7 +13,7 @@ from jaxsim.math.transform import Transform
13
13
 
14
14
  # Utility functions used for constraints computation. These functions duplicate part of the jaxsim.api.frame module for computational efficiency.
15
15
  # TODO: remove these functions when jaxsim.api.frame is optimized for batched computations.
16
- # See: https://github.com/ami-iit/jaxsim/issues/451
16
+ # See: https://github.com/gbionics/jaxsim/issues/451
17
17
 
18
18
 
19
19
  def _compute_constraint_transforms_batched(
jaxsim/rbda/utils.py CHANGED
@@ -83,7 +83,9 @@ def process_inputs(
83
83
  s̈ = jnp.atleast_1d(s̈.squeeze()) if s̈ is not None else jnp.zeros(dofs)
84
84
  τ = jnp.atleast_1d(τ.squeeze()) if τ is not None else jnp.zeros(dofs)
85
85
  W_vl_WB = jnp.atleast_1d(W_vl_WB.squeeze()) if W_vl_WB is not None else jnp.zeros(3)
86
- W_v̇l_WB = jnp.atleast_1d(W_v̇l_WB.squeeze()) if W_v̇l_WB is not None else jnp.zeros(3)
86
+ W_v̇l_WB = (
87
+ jnp.atleast_1d(W_v̇l_WB.squeeze()) if W_v̇l_WB is not None else jnp.zeros(3)
88
+ )
87
89
  W_p_B = jnp.atleast_1d(W_p_B.squeeze()) if W_p_B is not None else jnp.zeros(3)
88
90
  W_ω_WB = jnp.atleast_1d(W_ω_WB.squeeze()) if W_ω_WB is not None else jnp.zeros(3)
89
91
  W_ω̇_WB = jnp.atleast_1d(W_ω̇_WB.squeeze()) if W_ω̇_WB is not None else jnp.zeros(3)
@@ -80,7 +80,7 @@ class JaxsimDataclass(abc.ABC):
80
80
  original_dtypes = JaxsimDataclass.get_leaf_dtypes(tree=self)
81
81
  original_shapes = JaxsimDataclass.get_leaf_shapes(tree=self)
82
82
  original_weak_types = JaxsimDataclass.get_leaf_weak_types(tree=self)
83
- original_structure = jax.tree_util.tree_structure(tree=self)
83
+ original_structure = jax.tree.structure(tree=self)
84
84
 
85
85
  def restore_self() -> None:
86
86
  self.set_mutability(mutability=Mutability.MUTABLE_NO_VALIDATION)
@@ -92,7 +92,7 @@ class JaxsimDataclass(abc.ABC):
92
92
  yield self
93
93
 
94
94
  if mutability is not Mutability.MUTABLE_NO_VALIDATION:
95
- new_structure = jax.tree_util.tree_structure(tree=self)
95
+ new_structure = jax.tree.structure(tree=self)
96
96
  if original_structure != new_structure:
97
97
  msg = "Pytree structure has changed from {} to {}"
98
98
  raise ValueError(msg.format(original_structure, new_structure))
@@ -137,7 +137,7 @@ class JaxsimDataclass(abc.ABC):
137
137
  return tuple(
138
138
  map(
139
139
  lambda leaf: getattr(leaf, "shape", None),
140
- jax.tree_util.tree_leaves(tree),
140
+ jax.tree.leaves(tree),
141
141
  )
142
142
  )
143
143
 
@@ -157,7 +157,7 @@ class JaxsimDataclass(abc.ABC):
157
157
  return tuple(
158
158
  map(
159
159
  lambda leaf: getattr(leaf, "dtype", None),
160
- jax.tree_util.tree_leaves(tree),
160
+ jax.tree.leaves(tree),
161
161
  )
162
162
  )
163
163
 
@@ -176,7 +176,7 @@ class JaxsimDataclass(abc.ABC):
176
176
  return tuple(
177
177
  map(
178
178
  lambda leaf: getattr(leaf, "weak_type", None),
179
- jax.tree_util.tree_leaves(tree),
179
+ jax.tree.leaves(tree),
180
180
  )
181
181
  )
182
182
 
@@ -192,11 +192,11 @@ class JaxsimDataclass(abc.ABC):
192
192
  ValueError: If the PyTrees have incompatible structures, shapes, or dtypes.
193
193
  """
194
194
 
195
- target_structure = jax.tree_util.tree_structure(trees[0])
195
+ target_structure = jax.tree.structure(trees[0])
196
196
 
197
197
  compatible_structure = functools.reduce(
198
198
  lambda compatible, tree: compatible
199
- and jax.tree_util.tree_structure(tree) == target_structure,
199
+ and jax.tree.structure(tree) == target_structure,
200
200
  trees[1:],
201
201
  True,
202
202
  )
@@ -204,7 +204,7 @@ class JaxsimDataclass(abc.ABC):
204
204
  if not compatible_structure:
205
205
  raise ValueError(
206
206
  f"Pytrees have incompatible structures.\n"
207
- f"Original: {', '.join(map(str, [jax.tree_util.tree_structure(tree) for tree in trees[1:]]))}\n"
207
+ f"Original: {', '.join(map(str, [jax.tree.structure(tree) for tree in trees[1:]]))}\n"
208
208
  f"Target: {target_structure}"
209
209
  )
210
210
 
@@ -1,67 +1,74 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jaxsim
3
- Version: 0.8.2.dev35
3
+ Version: 0.8.3.dev33
4
4
  Summary: A differentiable physics engine and multibody dynamics library for control and robot learning.
5
+ Project-URL: Changelog, https://github.com/gbionics/jaxsim/releases
6
+ Project-URL: Documentation, https://jaxsim.readthedocs.io
7
+ Project-URL: Source, https://github.com/gbionics/jaxsim
8
+ Project-URL: Tracker, https://github.com/gbionics/jaxsim/issues
5
9
  Author-email: Diego Ferigo <dgferigo@gmail.com>, Filippo Luca Ferretti <filippoluca.ferretti@outlook.com>
6
- Maintainer-email: Filippo Luca Ferretti <filippo.ferretti@iit.it>, Alessandro Croci <alessandro.croci@iit.it>
10
+ Maintainer-email: Filippo Luca Ferretti <filippo.ferretti@iit.it>
7
11
  License-Expression: BSD-3-Clause
8
- Project-URL: Changelog, https://github.com/ami-iit/jaxsim/releases
9
- Project-URL: Documentation, https://jaxsim.readthedocs.io
10
- Project-URL: Source, https://github.com/ami-iit/jaxsim
11
- Project-URL: Tracker, https://github.com/ami-iit/jaxsim/issues
12
- Keywords: physics,physics engine,jax,rigid body dynamics,featherstone,reinforcement learning,robot,robotics,sdf,urdf
12
+ License-File: LICENSE
13
+ Keywords: featherstone,jax,physics,physics engine,reinforcement learning,rigid body dynamics,robot,robotics,sdf,urdf
13
14
  Classifier: Development Status :: 4 - Beta
14
15
  Classifier: Framework :: Robot Framework
15
16
  Classifier: Intended Audience :: Developers
16
17
  Classifier: Intended Audience :: Science/Research
17
- Classifier: Operating System :: POSIX :: Linux
18
18
  Classifier: Operating System :: MacOS
19
19
  Classifier: Operating System :: Microsoft
20
+ Classifier: Operating System :: POSIX :: Linux
20
21
  Classifier: Programming Language :: Python :: 3 :: Only
21
22
  Classifier: Programming Language :: Python :: 3.10
22
23
  Classifier: Programming Language :: Python :: 3.11
23
24
  Classifier: Programming Language :: Python :: 3.12
24
25
  Classifier: Programming Language :: Python :: 3.13
26
+ Classifier: Programming Language :: Python :: 3.14
25
27
  Classifier: Programming Language :: Python :: Implementation :: CPython
26
28
  Classifier: Topic :: Games/Entertainment :: Simulation
27
29
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
28
30
  Classifier: Topic :: Scientific/Engineering :: Physics
29
31
  Classifier: Topic :: Software Development
30
32
  Requires-Python: >=3.10
31
- Description-Content-Type: text/markdown
32
- License-File: LICENSE
33
33
  Requires-Dist: coloredlogs
34
+ Requires-Dist: jax-dataclasses>=1.4.0
34
35
  Requires-Dist: jax>=0.4.34
35
36
  Requires-Dist: jaxlib>=0.4.34
36
37
  Requires-Dist: jaxlie>=1.3.0
37
- Requires-Dist: jax_dataclasses>=1.4.0
38
- Requires-Dist: pptree
39
38
  Requires-Dist: optax>=0.2.3
39
+ Requires-Dist: pptree
40
40
  Requires-Dist: qpax
41
41
  Requires-Dist: rod>=0.4.1
42
- Requires-Dist: typing_extensions; python_version < "3.12"
43
42
  Requires-Dist: trimesh
44
- Provides-Extra: style
45
- Requires-Dist: black[jupyter]; extra == "style"
46
- Requires-Dist: isort; extra == "style"
47
- Requires-Dist: pre-commit; extra == "style"
43
+ Requires-Dist: typing-extensions; python_version < '3.12'
44
+ Provides-Extra: all
45
+ Requires-Dist: chex>=0.1.91; extra == 'all'
46
+ Requires-Dist: icub-models; extra == 'all'
47
+ Requires-Dist: idyntree>=12.2.1; extra == 'all'
48
+ Requires-Dist: lxml; extra == 'all'
49
+ Requires-Dist: mediapy; extra == 'all'
50
+ Requires-Dist: mujoco>=3.0.0; extra == 'all'
51
+ Requires-Dist: pytest-benchmark; extra == 'all'
52
+ Requires-Dist: pytest-icdiff; extra == 'all'
53
+ Requires-Dist: pytest-xdist; extra == 'all'
54
+ Requires-Dist: pytest>=6.0; extra == 'all'
55
+ Requires-Dist: robot-descriptions>=1.16.0; extra == 'all'
56
+ Requires-Dist: scipy>=1.14.0; extra == 'all'
48
57
  Provides-Extra: testing
49
- Requires-Dist: chex>=0.1.91; extra == "testing"
50
- Requires-Dist: idyntree>=12.2.1; extra == "testing"
51
- Requires-Dist: pytest>=6.0; extra == "testing"
52
- Requires-Dist: pytest-benchmark; extra == "testing"
53
- Requires-Dist: pytest-icdiff; extra == "testing"
54
- Requires-Dist: pytest-xdist; extra == "testing"
55
- Requires-Dist: robot-descriptions>=1.16.0; extra == "testing"
56
- Requires-Dist: icub-models; extra == "testing"
58
+ Requires-Dist: chex>=0.1.91; extra == 'testing'
59
+ Requires-Dist: icub-models; extra == 'testing'
60
+ Requires-Dist: idyntree>=12.2.1; extra == 'testing'
61
+ Requires-Dist: pytest-benchmark; extra == 'testing'
62
+ Requires-Dist: pytest-icdiff; extra == 'testing'
63
+ Requires-Dist: pytest-xdist; extra == 'testing'
64
+ Requires-Dist: pytest>=6.0; extra == 'testing'
65
+ Requires-Dist: robot-descriptions>=1.16.0; extra == 'testing'
57
66
  Provides-Extra: viz
58
- Requires-Dist: lxml; extra == "viz"
59
- Requires-Dist: mediapy; extra == "viz"
60
- Requires-Dist: mujoco>=3.0.0; extra == "viz"
61
- Requires-Dist: scipy>=1.14.0; extra == "viz"
62
- Provides-Extra: all
63
- Requires-Dist: jaxsim[style,testing,viz]; extra == "all"
64
- Dynamic: license-file
67
+ Requires-Dist: lxml; extra == 'viz'
68
+ Requires-Dist: mediapy; extra == 'viz'
69
+ Requires-Dist: mujoco>=3.0.0; extra == 'viz'
70
+ Requires-Dist: scipy>=1.14.0; extra == 'viz'
71
+ Description-Content-Type: text/markdown
65
72
 
66
73
  # JaxSim
67
74
 
@@ -194,14 +201,14 @@ If you are on Linux and you want to use a `cuda`-powered version of `jax`, remem
194
201
 
195
202
  ~~~toml
196
203
  [system-requirements]
197
- cuda = "12"
204
+ cuda = "13"
198
205
  ~~~
199
206
 
200
207
  if you are using a `pixi.toml` file or
201
208
 
202
209
  ~~~toml
203
210
  [tool.pixi.system-requirements]
204
- cuda = "12"
211
+ cuda = "13"
205
212
  ~~~
206
213
 
207
214
  if you are using a `pyproject.toml` file.
@@ -378,14 +385,15 @@ Please read the [contributing guide](./CONTRIBUTING.md) to get started.
378
385
 
379
386
  ## Citing
380
387
 
381
- If you use JaxSim in your work, please cite our upcoming paper:
388
+ If you use JaxSim in your work, please cite the following paper:
382
389
 
383
390
  ```bibtex
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}
391
+ @article{ferretti_contact_aware_2026,
392
+ author = {Filippo Luca Ferretti and Diego Ferigo and Alessandro Croci and Carlotta Sartore and Omar G. Younis and Silvio Traversaro and Daniele Pucci},
393
+ title = {Contact-Aware Morphology Optimization via Physically Consistent Differentiable Simulation},
394
+ journal = {IEEE Robotics and Automation Letters},
395
+ year = {2026},
396
+ doi = {10.1109/LRA.2026.3678125}
389
397
  }
390
398
  ```
391
399
 
@@ -1,5 +1,5 @@
1
1
  jaxsim/__init__.py,sha256=EKeysKN-7UswwJLCl7n6qIBKQIVUtYsCMYu_tCoFn7g,3628
2
- jaxsim/_version.py,sha256=Ucn2Xt5IFdfJZcP-l6y0CNCVydXlqFtB3ax1gr-AmcE,719
2
+ jaxsim/_version.py,sha256=c8QWAP-WtCA8K__jJbdyXGufguTdnU0MBY66No9gxsk,535
3
3
  jaxsim/exceptions.py,sha256=MQ3LRMfVMX2-g3qYj7mUVNV9OLlIA48TANJegbcQyXI,2641
4
4
  jaxsim/logging.py,sha256=iLZ_zNvZfz5IvQEjxcCi8QUwPsZD5_9dcD0zotpxT78,2573
5
5
  jaxsim/typing.py,sha256=7msl8t5Jt09RNYfKdPJtpjLfWurldcycDappb045Eso,761
@@ -10,14 +10,14 @@ jaxsim/api/common.py,sha256=yTaRXDYkXmISBOhZ93f9TssR0p4wq7qj7B6OsvYzRME,6942
10
10
  jaxsim/api/contact.py,sha256=fiWQYh1y5zD7z4FBvcahMSPNZfRaWrqu5lZIV9KEIE8,20628
11
11
  jaxsim/api/data.py,sha256=9pxug2gFIZPwqi9kNYXhEziA5IQBB9KNNwIfPfc_kAU,23249
12
12
  jaxsim/api/frame.py,sha256=4wg6GsyBQgYhSvc-ry_31JsaL66sZt3TtgwjB7NrHmk,14583
13
- jaxsim/api/integrators.py,sha256=sHdTWw2Z-Q7jggA8zRkA1KYYd4HNIozXPwNvFwt0YBs,9011
13
+ jaxsim/api/integrators.py,sha256=qfe5mnR_PXMifhw063a50V9DUBQ35n20BPpqGC621hI,8971
14
14
  jaxsim/api/joint.py,sha256=AnqlNWmBOay-gsoo0y4AbfFQ2OCJm-8T1E0IMhZeLoY,7457
15
- jaxsim/api/kin_dyn_parameters.py,sha256=gaxXQpWMIXeeI9juoqlebEIzTsLm8vUA486K5KpHhtg,45512
15
+ jaxsim/api/kin_dyn_parameters.py,sha256=DcCth7d4Mx8i4uyJYMOmdWMRqvcovFl5mPm6ZEsHWHc,45504
16
16
  jaxsim/api/link.py,sha256=bSZOYJDY9HJMgY25VzevTTsdFZTJc6yRRpslc5FhGHE,12782
17
- jaxsim/api/model.py,sha256=ktGg2AqxjwPewqKU6Kbc1zkhIfQv6wf8pWNOXXlwfy4,93270
17
+ jaxsim/api/model.py,sha256=omR-jhKebR4g9AQOrYu0wD5eCP9CzPy2JSIhumPv1eA,93145
18
18
  jaxsim/api/ode.py,sha256=RRCgHxFAonZQJoevY9PVjoO4jP6KQ-rX4JIqF7Ftt6g,7688
19
19
  jaxsim/api/references.py,sha256=6x2OnWS3eKUvxVRvSZhKla59Fqku2T0SBB33THGbQ28,20267
20
- jaxsim/math/__init__.py,sha256=dNozvtm8WsB7nxw4uK29yQQKPcDUEczr2zcHoZfMItc,383
20
+ jaxsim/math/__init__.py,sha256=0Jcu8EjkHRwfcX-m6wndcQRRTn6nx-onkYYuxLTe4bk,382
21
21
  jaxsim/math/adjoint.py,sha256=Pb0WAiAoN1ge8j_dPcdK307jmC5LzD1-DeUj9Z_NXkI,4667
22
22
  jaxsim/math/cross.py,sha256=AM4HauuuT09q2TN42qvdXhJ9LvtCh0e7ZyLjP-7sANs,1498
23
23
  jaxsim/math/inertia.py,sha256=T-iAjPYSD_72R0ZG8GDJhe5i3Jc3ojhlbBRSscTdCKg,1577
@@ -26,20 +26,20 @@ jaxsim/math/quaternion.py,sha256=MSaZywzJDxs2te1ZELeIcupKSFIA9q_pdXy7fDAEqM4,453
26
26
  jaxsim/math/rotation.py,sha256=XMBEnyyWF7jAjRvcFPT1SNj4l-ls0nhxZImp-VGMnrM,2220
27
27
  jaxsim/math/skew.py,sha256=z_9YN-NDHL3n4KXWNbzTSMkFDZ0SDpz4RUcwwYFOaao,1402
28
28
  jaxsim/math/transform.py,sha256=d0_m_obmUOmnI8Bte0ktvibR9Hv9M9qpg8tVuLON2g0,3192
29
- jaxsim/math/utils.py,sha256=JgJrBPeuCvi0969VqoNsyk3CflQiLzopngKDjl6RfiE,1898
29
+ jaxsim/math/utils.py,sha256=ncVeQ1HxXOAHAfrjz3TwA3jpNOxuCzTph8Ma2SZcBVw,1899
30
30
  jaxsim/mujoco/__init__.py,sha256=JuXA9H72xZoIawM90dsNEmFp4DRXYfA0-lnVk0uhiXE,228
31
- jaxsim/mujoco/__main__.py,sha256=GBmB7J-zj75ZnFyuAAmpSOpbxi_HhHhWJeot3ljGDJY,5291
32
- jaxsim/mujoco/loaders.py,sha256=ZpkmSGaKr_NHPOe0PC6PP2oA-V_-SSGzWW-CEKStSlA,24217
33
- jaxsim/mujoco/model.py,sha256=bRXo1uhWDN37sP9qdejr_2vq_PXHQ7p6eyBlFff_JcE,16492
34
- jaxsim/mujoco/utils.py,sha256=q75OSjxLU2BromVUejt0DVnSbrV5D177YW6LkOdu78g,8823
31
+ jaxsim/mujoco/__main__.py,sha256=uUWc3Yt13j8QOyOEtrfaqXg3UdoVOMe1Yuet6uQotOw,4886
32
+ jaxsim/mujoco/loaders.py,sha256=_syc15Pf7pDhemRRCCNSz0l3DWUrnr-W8DKilD4bZsY,24214
33
+ jaxsim/mujoco/model.py,sha256=v7k3CFo3ERHQdLunFK0RPIn_w_t1DNa7AX7_xDd78OE,16484
34
+ jaxsim/mujoco/utils.py,sha256=vsFZOpwkINekm0kuSZlQb242EWKQ2yySPbqVGfaqmQ0,8823
35
35
  jaxsim/mujoco/visualizer.py,sha256=m4-oESt3hHkPiDcgaQeb97U3FGpZFpJHXiK49Zq5Y2I,12168
36
36
  jaxsim/parsers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
37
- jaxsim/parsers/kinematic_graph.py,sha256=ARq11Pv6yMDZeRRDlqrWzfVfUS7qSDwR57aWA4k54as,35758
37
+ jaxsim/parsers/kinematic_graph.py,sha256=ZoLztTK93SMVQ0PXDivnW4ENzW12gygvYxX90hib9JA,35734
38
38
  jaxsim/parsers/descriptions/__init__.py,sha256=N_hp8cGI5FyEFiuNx9a-CAGCr0F0QpYEpdMHvwB7_1g,261
39
39
  jaxsim/parsers/descriptions/collision.py,sha256=C6SekAPL2tNG62Y-lTqj1m9BblhoTZDj2F2vgspKNbI,4577
40
40
  jaxsim/parsers/descriptions/joint.py,sha256=MurLIHHmu-y_bwUcR_J1NZ-FjfRZRk166zKsn6VzIwE,4232
41
41
  jaxsim/parsers/descriptions/link.py,sha256=au5XP_7O_UG7WG07RZ6y5VXkLqjgx9aBmlrPCMxgzbo,3495
42
- jaxsim/parsers/descriptions/model.py,sha256=Jd0zQtRgyHZImQ6d52_uwlSoKBaARggjk1Nl3TRjn0k,10233
42
+ jaxsim/parsers/descriptions/model.py,sha256=9WSVjTp8CD1hpt70yRwfjnVg2DzSyVfp6WxviNQLnUw,10152
43
43
  jaxsim/parsers/rod/__init__.py,sha256=G2vqlLajBLUc4gyzXwsEI2Wsi4TMOIF9bLDFeT6KrGU,92
44
44
  jaxsim/parsers/rod/meshes.py,sha256=yAXefG73_zqbVKRUdlcz9yFmypjDIpiP9cO96PeAozE,2842
45
45
  jaxsim/parsers/rod/parser.py,sha256=Qty8QR1ZGunNI0gC3upYECUSVHHlamdbDcAaVZyHVJk,15043
@@ -50,25 +50,24 @@ jaxsim/rbda/collidable_points.py,sha256=XyeV1I43GL22j03rkNVocaIPOGYirt3PiDHrFMnd
50
50
  jaxsim/rbda/crba.py,sha256=DC9kBXMG1qXaoAdo8K7OCnVHT_YUaL_t6Li56sRf8ro,5093
51
51
  jaxsim/rbda/forward_kinematics.py,sha256=qem7Yp-B2oNVOsU3Q2CWV2tbfZKJOCAdDozFgaPB8tg,3838
52
52
  jaxsim/rbda/jacobian.py,sha256=EaMvf073UnLWJGXm4UZIlYd4erulFAGgj_pp89k6xic,11113
53
- jaxsim/rbda/kinematic_constraints.py,sha256=0_H8vSanudp7bHQ_N0yUO_A0BLUdjCNUTVtBWNCi8NA,12138
53
+ jaxsim/rbda/kinematic_constraints.py,sha256=lpc2xbpjOjTXdaWHyOK7mT8QQSWdWjYoOqQVx3aWfFE,12139
54
54
  jaxsim/rbda/mass_inverse.py,sha256=AF3ik9K8kDQmZf-QJ4tV4ed-Zh36xFwvELJOH9UwrW8,6311
55
55
  jaxsim/rbda/rnea.py,sha256=lMU7xxdPqGGzk0QwteB-IYjL4auHOpd78C1YqAXlp9s,7588
56
- jaxsim/rbda/utils.py,sha256=6JwEDQqLMsBX7CUmPYEhdPEscXmGbWVYg6xEriPOgvE,5587
56
+ jaxsim/rbda/utils.py,sha256=j4-fsFc23dZwvUI0dE9ELkEd4BwIEZLOscPl35O2DYg,5603
57
57
  jaxsim/rbda/actuation/__init__.py,sha256=zWqB8VBHadbyf8FAuhQtcfWdetGjfVxuNDwIeUqNOS4,36
58
58
  jaxsim/rbda/actuation/common.py,sha256=DhOAdppQlubWGMA40A6UmDkXE8pkexuyQcOE9ALANhs,565
59
59
  jaxsim/rbda/contacts/__init__.py,sha256=resrBkTdOA-1YMdcdUH2RATEhAf_Ye6MQNtjG3ClMYQ,371
60
60
  jaxsim/rbda/contacts/common.py,sha256=e-NDoC1N9PK5B0e1fQkYtxS495GSpRCGZRzB6-53WS4,9207
61
61
  jaxsim/rbda/contacts/relaxed_rigid.py,sha256=JbDhiKG7zJlk1ii71fr950-4UAtsNQcicC0WO5__54c,21819
62
- jaxsim/rbda/contacts/rigid.py,sha256=RjB5nb42akfkaeUlgQuXIxle-ndh63b36OysA9fUG7s,17616
63
- jaxsim/rbda/contacts/soft.py,sha256=7R5gS77mZRq6ppGXA6aPYnp9K5CpMic4KXoxiEuVKU0,15074
62
+ jaxsim/rbda/contacts/rigid.py,sha256=p0MwXsi_MjT-t7nfkpKLHi8gbC0Kltc_IKeVSbwk37s,17606
63
+ jaxsim/rbda/contacts/soft.py,sha256=O2VvEn5tinorGRJIDB01nKC-LOO7tMS2FMBPss3x5sw,15064
64
64
  jaxsim/terrain/__init__.py,sha256=f7lVX-iNpH_wkkjef9Qpjh19TTAUOQw76EiLYJDVizc,78
65
65
  jaxsim/terrain/terrain.py,sha256=so8kqVsUlPXqOKQ_UaYW6HE4XS8nTZRdFdXQyhB2tG4,6725
66
66
  jaxsim/utils/__init__.py,sha256=Y5zyoRevl3EMVQadhZ4EtSwTEkDt2vcnFoRhPJjKTZ0,215
67
- jaxsim/utils/jaxsim_dataclass.py,sha256=XzmZeIibcaOzaxpprsGSxH3UrM66PAO456rFV91sNXg,11453
67
+ jaxsim/utils/jaxsim_dataclass.py,sha256=GsoGQVJBbu9kgEXsZOF6Cv5So3386R9zudrRtnvXJAo,11373
68
68
  jaxsim/utils/tracing.py,sha256=Btwxdfhb7fJLk3r5PlQkGYj60Y2KbFT1gANGIA697FU,530
69
69
  jaxsim/utils/wrappers.py,sha256=3IMwydqFgmSPqeuUQ3PRmdhDc1IoT6XC23jPC_LjWXs,4175
70
- jaxsim-0.8.2.dev35.dist-info/licenses/LICENSE,sha256=eaYdFmdeMbiIoIiPzEK0MjP1S9wtFXjXNR5er49uLR0,1546
71
- jaxsim-0.8.2.dev35.dist-info/METADATA,sha256=zQ8rN-synyg3cRjFbP5kwZoQUQdQAIoJZZ3R-kbm214,14298
72
- jaxsim-0.8.2.dev35.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
73
- jaxsim-0.8.2.dev35.dist-info/top_level.txt,sha256=LxGMA8FLtXjQ6oI7N5gd_R_oSUHxpXxUEOfT1xS_ni0,7
74
- jaxsim-0.8.2.dev35.dist-info/RECORD,,
70
+ jaxsim-0.8.3.dev33.dist-info/METADATA,sha256=Bp_RpgxT_pdsyn_m9XpfuYBsfRpuVdpu6YhqIiqgnJg,14644
71
+ jaxsim-0.8.3.dev33.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
72
+ jaxsim-0.8.3.dev33.dist-info/licenses/LICENSE,sha256=eaYdFmdeMbiIoIiPzEK0MjP1S9wtFXjXNR5er49uLR0,1546
73
+ jaxsim-0.8.3.dev33.dist-info/RECORD,,
@@ -1,5 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: hatchling 1.29.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
-
@@ -1 +0,0 @@
1
- jaxsim