jaxsim 0.6.2.dev273__py3-none-any.whl → 0.6.2.dev275__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
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '0.6.2.dev273'
21
- __version_tuple__ = version_tuple = (0, 6, 2, 'dev273')
20
+ __version__ = version = '0.6.2.dev275'
21
+ __version_tuple__ = version_tuple = (0, 6, 2, 'dev275')
jaxsim/mujoco/utils.py CHANGED
@@ -145,6 +145,7 @@ class MujocoCamera:
145
145
  @staticmethod
146
146
  def build_from_target_view(
147
147
  camera_name: str,
148
+ mode: str = "fixed",
148
149
  lookat: Sequence[float | int] | npt.NDArray = (0, 0, 0),
149
150
  distance: float | int | npt.NDArray = 3,
150
151
  azimuth: float | int | npt.NDArray = 90,
@@ -166,6 +167,12 @@ class MujocoCamera:
166
167
 
167
168
  Args:
168
169
  camera_name: The name of the camera.
170
+ mode: Camera positioning mode:
171
+ - **"fixed"**: Fixed position and orientation relative to the body.
172
+ - **"track"**: Fixed offset from the body in world coordinates, constant orientation.
173
+ - **"trackcom"**: Like `"track"`, but relative to the center of mass of the subtree.
174
+ - **"targetbody"**: Fixed position in body frame, oriented toward a target body.
175
+ - **"targetbodycom"**: Like `"targetbody"`, but targets the subtree's center of mass.
169
176
  lookat: The target point to look at (origin of `T`).
170
177
  distance:
171
178
  The distance from the target point (displacement between the origins
@@ -214,7 +221,7 @@ class MujocoCamera:
214
221
 
215
222
  return MujocoCamera.build(
216
223
  name=camera_name,
217
- mode="fixed",
224
+ mode=mode,
218
225
  fovy=f"{fovy if degrees else np.rad2deg(fovy)}",
219
226
  pos=" ".join(p.astype(str).tolist()),
220
227
  quat=" ".join(Q.astype(str).tolist()),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jaxsim
3
- Version: 0.6.2.dev273
3
+ Version: 0.6.2.dev275
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>
@@ -1,5 +1,5 @@
1
1
  jaxsim/__init__.py,sha256=EKeysKN-7UswwJLCl7n6qIBKQIVUtYsCMYu_tCoFn7g,3628
2
- jaxsim/_version.py,sha256=g83rsbL4zkvgG8-68gdWW28JhpZJIQ93aHKS6g6GVLM,528
2
+ jaxsim/_version.py,sha256=uEPZz1l86LTWP3KMvIugzbiPUShQy5zGVj-JygP8r_A,528
3
3
  jaxsim/exceptions.py,sha256=MQ3LRMfVMX2-g3qYj7mUVNV9OLlIA48TANJegbcQyXI,2641
4
4
  jaxsim/logging.py,sha256=STI-D_upXZYX-ZezLrlJJ0UlD5YspST0vZ_DcIwkzO4,1553
5
5
  jaxsim/typing.py,sha256=7msl8t5Jt09RNYfKdPJtpjLfWurldcycDappb045Eso,761
@@ -31,7 +31,7 @@ jaxsim/mujoco/__init__.py,sha256=1kAWzYOS7nP29S5FGyWPqiAnPf4yPSoaPW-WBGBjVV0,214
31
31
  jaxsim/mujoco/__main__.py,sha256=GBmB7J-zj75ZnFyuAAmpSOpbxi_HhHhWJeot3ljGDJY,5291
32
32
  jaxsim/mujoco/loaders.py,sha256=OCk1T11iIm3qZUibNpo_bxxLgaGSkCpLt7ae_ND0ExA,23272
33
33
  jaxsim/mujoco/model.py,sha256=bRXo1uhWDN37sP9qdejr_2vq_PXHQ7p6eyBlFff_JcE,16492
34
- jaxsim/mujoco/utils.py,sha256=dW3LrcM050-eVVdLuCiN3StIrTEfyk_jJyq1GiNh3fg,8396
34
+ jaxsim/mujoco/utils.py,sha256=r8BFrFAkW3lMAnEM3YUGZYLBNT2ptln4qDPm68CYrJk,8951
35
35
  jaxsim/mujoco/visualizer.py,sha256=cmI6DhFb1XC7oEtg_wl-s-U56dWHA-F7GlBD6EDYTyA,7744
36
36
  jaxsim/parsers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
37
37
  jaxsim/parsers/kinematic_graph.py,sha256=ARq11Pv6yMDZeRRDlqrWzfVfUS7qSDwR57aWA4k54as,35758
@@ -65,8 +65,8 @@ jaxsim/utils/__init__.py,sha256=Y5zyoRevl3EMVQadhZ4EtSwTEkDt2vcnFoRhPJjKTZ0,215
65
65
  jaxsim/utils/jaxsim_dataclass.py,sha256=XzmZeIibcaOzaxpprsGSxH3UrM66PAO456rFV91sNXg,11453
66
66
  jaxsim/utils/tracing.py,sha256=Btwxdfhb7fJLk3r5PlQkGYj60Y2KbFT1gANGIA697FU,530
67
67
  jaxsim/utils/wrappers.py,sha256=3IMwydqFgmSPqeuUQ3PRmdhDc1IoT6XC23jPC_LjWXs,4175
68
- jaxsim-0.6.2.dev273.dist-info/licenses/LICENSE,sha256=eaYdFmdeMbiIoIiPzEK0MjP1S9wtFXjXNR5er49uLR0,1546
69
- jaxsim-0.6.2.dev273.dist-info/METADATA,sha256=ZTap_k9XKf0MfovCWfqp25bmgFIFjVQPgq4KzmJgQ6s,19658
70
- jaxsim-0.6.2.dev273.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
71
- jaxsim-0.6.2.dev273.dist-info/top_level.txt,sha256=LxGMA8FLtXjQ6oI7N5gd_R_oSUHxpXxUEOfT1xS_ni0,7
72
- jaxsim-0.6.2.dev273.dist-info/RECORD,,
68
+ jaxsim-0.6.2.dev275.dist-info/licenses/LICENSE,sha256=eaYdFmdeMbiIoIiPzEK0MjP1S9wtFXjXNR5er49uLR0,1546
69
+ jaxsim-0.6.2.dev275.dist-info/METADATA,sha256=e5w1a7yy022p-SYfLO1ujlQf8zXeqx14Mfk5iZu9lvg,19658
70
+ jaxsim-0.6.2.dev275.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
71
+ jaxsim-0.6.2.dev275.dist-info/top_level.txt,sha256=LxGMA8FLtXjQ6oI7N5gd_R_oSUHxpXxUEOfT1xS_ni0,7
72
+ jaxsim-0.6.2.dev275.dist-info/RECORD,,