MotorCommands builds actions from joint names. Joint names are resolved
from any RobotConfig’s joint list, so there are no hardcoded indices in
policy code.
Construct
Convert
Factory
Why it exists
Hardcoded tensor indices are a bug source every time a robot config changes.MotorCommands pins joint names as the contract, so:
- Swapping a SO-101 for a different 6-DOF arm only requires a new config, not a policy rewrite.
- Adding a joint does not shift the meaning of existing indices.
- Policy code reads like intent, not like array plumbing.

