Skip to content

Commit

Permalink
Add keyframe fields to mjx.Model.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 721060807
Change-Id: Iae6aa8773e0e9802b0bd1de9a14d83987cd56936
  • Loading branch information
erikfrey authored and copybara-github committed Jan 29, 2025
1 parent 7cdf180 commit 7232a91
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions mjx/mujoco/mjx/_src/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,13 @@ class Model(PyTreeNode):
tuple_objtype: array of object types in all tuples (ntupledata,)
tuple_objid: array of object ids in all tuples (ntupledata,)
tuple_objprm: array of object params in all tuples (ntupledata,)
key_time: key time (nkey,)
key_qpos: key position (nkey, nq)
key_qvel: key velocity (nkey, nv)
key_act: key activation (nkey, na)
key_mpos: key mocap position (nkey, nmocap, 3)
key_mquat: key mocap quaternion (nkey, nmocap, 4)
key_ctrl: key control (nkey, nu)
name_bodyadr: body name pointers (nbody,)
name_jntadr: joint name pointers (njnt,)
name_geomadr: geom name pointers (ngeom,)
Expand Down Expand Up @@ -1157,6 +1164,13 @@ class Model(PyTreeNode):
tuple_objtype: np.ndarray
tuple_objid: np.ndarray
tuple_objprm: np.ndarray
key_time: np.ndarray
key_qpos: np.ndarray
key_qvel: np.ndarray
key_act: np.ndarray
key_mpos: np.ndarray
key_mquat: np.ndarray
key_ctrl: np.ndarray
name_bodyadr: np.ndarray
name_jntadr: np.ndarray
name_geomadr: np.ndarray
Expand Down

0 comments on commit 7232a91

Please sign in to comment.