unilab.tasks.motion_tracking.common.tensor_state_store¶
Device-resident robot state reads for tensor motion-tracking owners.
The store consumes only SimBackend public tensor APIs. It owns stable view
negotiation and full/selected-row ingestion, while task owners remain responsible
for their semantic contracts and downstream finite checks.
Classes
Read qpos/qvel, scalar sensors, and tracked body state on one device. |
- 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:
- __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: