Configuration#
- class mink_warp.Configuration[source]#
Bases:
objectBatched robot configuration backed by MuJoCo Warp.
Holds
qwith shape(nworld, nq), device FK buffers, and body-frame Jacobians. Configuration-dependent quantities (frame poses, CoM, contacts) are valid after forward kinematics onwp_data.Device-native API: hot-path arrays are
wp.array. Use.numpy()orSE3helpers only at host boundaries.- update(q: TypeAliasForwardRef('ArrayLike') | array | None = None) None[source]#
Run forward kinematics on device.
- Parameters:
q –
wp.arrayof shape(nworld, nq)or(nq,), or a NumPy array (uploaded once). Prefer device arrays in the hot path.
- get_frame_jacobian(frame_name: str, frame_type: str) array[source]#
Body-frame Jacobian on device, shape
(nworld, 6, nv).The returned buffer is owned by this configuration and overwritten on the next Jacobian query —
wp.copyif you need to keep it.
- get_transform_frame_to_world(frame_name: str, frame_type: str) array[source]#
Frame poses on device as
wxyz_xyz, shape(nworld, 7).The returned buffer is owned by this configuration and overwritten on the next pose query —
wp.copyif you need to keep it.
- get_transform_frame_to_world_se3(frame_name: str, frame_type: str) SE3[source]#
Host
SE3for world 0 (optional convenience).
- get_transform(frame_name: str, frame_type: str, root_name: str, root_type: str) array[source]#
Relative pose
root^{-1} @ frameon device, shape(nworld, 7).
- set_integration_dt(dt: float) None[source]#
Write the integrate timestep to device (call outside CUDA graphs).
- integrate(velocity: TypeAliasForwardRef('ArrayLike') | array, dt: float) array[source]#
Integrate velocity on device; returns new
qof shape(nworld, nq).Uses MuJoCo Warp’s
_next_positionkernel (free / ball / hinge / slide).
- integrate_inplace(velocity: TypeAliasForwardRef('ArrayLike') | array, dt: float | None = None) None[source]#
Integrate velocity into
qon device and refresh kinematics.If
dtis None, uses the value last written byset_integration_dt()(needed inside CUDA graphs, which cannot host-assign).
- property q: array#
Device configuration, shape
(nworld, nq).