﻿# RDT unified action vectors need an availability map and robot-specific inverse

Follow RDT robot-state placement into named unified slots, distinguish unavailable components from measured zeros, and preserve independent observation and command scaling.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-rdt-unified-state-vector-availability-map/
Language: en

## A larger vector is not a universal joint order

A robot adapter may pad its joint-state array to the width expected by RDT and assume the result is compatible. Padding alone does not place each value into the intended semantic slot. A model designed to represent several robot forms needs an explicit mapping from local components to shared positions.

The [RDT project](https://raw.githubusercontent.com/thu-ml/RoboticsDiffusionTransformer/main/README.md) provides robot-specific deployment examples. This guide examines their representation boundary rather than claiming an arbitrary robot becomes supported by matching array width.

## Named slots establish shared meaning

The [state-vector mapping](https://raw.githubusercontent.com/thu-ml/RoboticsDiffusionTransformer/main/configs/state_vec.py) assigns names for joint, gripper, end-effector, and other state components. Some names are aliases, while other positions describe different physical quantities.

Construct local-to-unified mapping from those definitions. Preserve left/right arm identity instead of copying whichever local order a middleware message provides. The [tensor-axis guide](/journal/tensor-axes-batch-sequence-hidden/) explains why compatible storage dimensions do not establish aligned component semantics.

## Availability is not inferred from numerical zero

The [AgileX model adapter](https://raw.githubusercontent.com/thu-ml/RoboticsDiffusionTransformer/main/scripts/agilex_model.py) inserts local state into selected slots and creates a separate availability mask. Unused positions can contain zeros without meaning that those physical measurements were observed at zero.

Keep the mask aligned with the mapping. If a source sensor disappears, represent that condition according to the selected trained interface rather than silently retaining an old value or declaring every padded component available.

## The inverse path has its own scaling

The example extracts predicted local action components from the unified result and applies robot-specific gripper scaling. Its comments distinguish proprioceptive ranges from action ranges. The output transform is therefore not automatically the literal inverse of every observation normalization step.

Record state preparation and command postprocessing as separate functions. A successful state round trip cannot validate the command path if these two physical interfaces intentionally use different conventions.

## Validate slots before evaluating manipulation

An offline fixture can label each local component, inspect its unified position and availability, then reconstruct a chosen predicted action. Include asymmetric left/right values so a swapped-arm mapping cannot accidentally pass a test using identical entries.

The [artifact validation guide](/journal/safetensors-artifact-validation/) motivates preserving these mappings with the model and configuration. Correct placement establishes computational compatibility; it does not demonstrate task success, calibrated actuator behavior, or transfer to an untested embodiment.
