Skip to content
Physical AI
All experiments

Desired versus actual walking velocity

That the commanded velocity the actor receives is not the velocity the robot achieves, and that the achieved velocity, which a tracking reward and the critic need, is easy to read in simulation but not directly measurable on hardware.

Loading simulation…

What it demonstrates

That the commanded velocity the actor receives is not the velocity the robot achieves, and that the achieved velocity, which a tracking reward and the critic need, is easy to read in simulation but not directly measurable on hardware.

How it works

The actual forward velocity follows the command through a first-order lag with time constant τ, an acceleration limit, a slip factor that removes a fraction of the commanded speed, and Brownian disturbances. Euler integration at 200 Hz.

Adjustable parameters

  • Commanded v_x (−0.5 to 1.2 m/s)
  • Step pattern on/off
  • Slip (0–0.5)
  • τ (0.05–1.5 s)
  • Noise (0–0.3)

Known limitations

  • Not a locomotion simulation: there are no legs, contacts or balance.
  • The tracking reward shape is a common choice in legged RL, not Menlo's documented reward.

Equations

v˙=clip⁡ ⁣((1−s) v∗−vτ, −amax⁡, amax⁡)+σ ξ(t)\dot v = \operatorname{clip}\!\left(\frac{(1-s)\,v^{*} - v}{\tau},\, -a_{\max},\, a_{\max}\right) + \sigma\,\xi(t)
rtrack=exp⁡ ⁣(−(v∗−v)2/σr2)r_{\text{track}} = \exp\!\big(-(v^{*}-v)^2/\sigma_r^2\big)

Core update rule

let a = ((1 - slip) * cmd - v) / tau;
a = clamp(a, -maxAccel, maxAccel);
v += a * dt + noise * Math.sqrt(dt) * gaussian(rng);

Explained in Chapter 9: Actor-Critic