Skip to content
Physical AI
All experiments

45-dimensional observation inspector

Exactly which 45 numbers Asimov's locomotion policy receives at each 50 Hz step, how they are grouped, where each comes from and what it means physically.

Loading simulation…

What it demonstrates

Exactly which 45 numbers Asimov's locomotion policy receives at each 50 Hz step, how they are grouped, where each comes from and what it means physically.

How it works

The layout (six groups: base angular velocity 3, projected gravity 3, command 3, joint positions 12, joint velocities 12, previous actions 12) and each group's source are taken from Menlo's documentation and stored in lib/sim/ch08-observations.ts.

The live values are synthetic. Every 20 ms the site's hand-written scripted gait produces joint angles, joint velocities are finite differences, a made-up torso sway produces roll and pitch, projected gravity is computed from them, and the previous-action block is an exponentially smoothed history of the scripted pose expressed as actions. No physics engine or trained policy is involved.

Adjustable parameters

  • Command v_x (−1 to 1 m/s)
  • Command v_y (−0.5 to 0.5 m/s)
  • Command w_z (−1 to 1 rad/s)
  • Selected element (0–44)

Known limitations

  • Values are generated by a scripted animation and a hand-made sway model, not by MuJoCo or a policy.
  • Per-element order inside groups, any per-term scaling and the exact smoothing used for previous actions are not documented by Menlo.
  • Joint names shown are the site's illustrative convention.

Equations

ot=[ ωt,  gtb,  ct,  qt,  q˙t,  aˉt−1 ]∈R3+3+3+12+12+12=45o_t = \big[\,\omega_t,\; g^{b}_t,\; c_t,\; q_t,\; \dot q_t,\; \bar a_{t-1}\,\big] \in \mathbb{R}^{3+3+3+12+12+12=45}
gb=R⊤[00−1]=[sin⁡θ−sin⁡ϕcos⁡θ−cos⁡ϕcos⁡θ]g^{b} = R^{\top} \begin{bmatrix}0\\0\\-1\end{bmatrix} = \begin{bmatrix}\sin\theta\\ -\sin\phi\cos\theta\\ -\cos\phi\cos\theta\end{bmatrix}
aˉt=β aˉt−1+(1−β) at(illustrative smoothing)\bar a_{t} = \beta\,\bar a_{t-1} + (1-\beta)\,a_{t}\quad(\text{illustrative smoothing})

Core update rule

// lib/sim/ch08-observation-frame.ts (values illustrative, layout documented)
const obs = concatObservation({
  base_ang_vel: s.angVel,                 // 3, IMU gyro
  projected_gravity: s.gravity,           // 3, FusionX path on hardware
  command: [cmd.vx, cmd.vy, cmd.wz],      // 3
  joint_pos: s.q,                         // 12, CAN timing groups 1-3
  joint_vel: s.qd,                        // 12
  prev_actions: s.prevActions,            // 12, smoothed control history
}); // Float32Array(45)

Explained in Chapter 8: Locomotion Policy