Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

HumanoidStandup

State and action spaces

The default 348-value observation has the same groups and switches as Humanoid: qpos[2..], qvel, non-world cinert, non-world cvel, actuator generalized forces after the root DOFs, and non-world external forces. The default action is 17 controls in \([-0.4,0.4]\).

Dynamics, reward, and info

Let \(z\) be root height, \(h\) the MuJoCo model timestep, \(u\) the simulator controls, and \(f_c\) external contact forces:

\[ r=w_h\frac{z}{h}-w_u\lVert u\rVert_2^2- \operatorname{clip}(w_i\lVert f_c\rVert_2^2,i_{min},i_{max})+1. \]

Info includes x/y position, distance from origin, summed tendon length/velocity, and upright/control/impact reward components.

Episode end

There is no state termination. The horizon truncates.

Configuration

FieldDefaultMeaning
xml_file, frame_skipembedded, 5Model and action duration
uph_cost_weight1Upright reward weight
ctrl_cost_weight0.1Control penalty
impact_cost_weight/range5e-7, (-∞,10]Impact penalty and clamp
reset_noise_scale0.01Uniform qpos/qvel noise
exclude x/ytrueObservation root-position switch
include cinert, cvel, qfrc_actuator, cfrc_extall trueAuxiliary observation groups
max_episode_steps1000Horizon

Reference: Gymnasium HumanoidStandup.