unilab.tasks.motion_tracking.common.tensor_state_store.DeviceStateStore¶
- class unilab.tasks.motion_tracking.common.tensor_state_store.DeviceStateStore[source]¶
Bases:
objectRead qpos/qvel, scalar sensors, and tracked body state on one device.
- Parameters:
Methods
__init__(*, backend, device, num_envs, ...)apply_reset(reset_mask, qpos, qvel)Apply a fixed-width reset through the public mask boundary.
qviews()Return the current backend qpos/qvel views after a full read.
read([rows])Cross the backend's named-sensor projection boundary.
step_tensor(ctrl, nsteps)Step through the negotiated packed plan when one is available.
- __init__(*, backend, device, num_envs, joint_qpos_ids, joint_qvel_ids, body_names, body_ids)[source]¶
- refresh_named_sensors()[source]¶
Cross the backend’s named-sensor projection boundary.
DEVICE_RESIDENT adapters may recompute derived projections when a named sensor view is requested. Unlike
read(), this method performs no row validation, state-view negotiation, or task-buffer copy.- Return type: