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

HalfCheetah

State and action spaces

The default 17-value observation is qpos[1..] followed by all qvel; retaining root x produces 18 values. The default action is 6 controls in \([-1,1]\).

Dynamics, reward, and info

\[ v_x=\frac{x_{t+1}-x_t}{\Delta t},\qquad r=w_fv_x-w_u\lVert u\rVert_2^2. \]

Info contains x_position, x_velocity, reward_forward, and reward_ctrl. Reset adds uniform position noise and Gaussian velocity noise of configured scale.

Episode end

There is no state termination. The episode truncates at max_episode_steps.

Configuration

Builder settingDefaultMeaning
XMLembedded modelCustom model source
frame_skip5Positive number of MuJoCo steps per action
forward weight1Velocity reward coefficient
control weight0.1Squared-action penalty coefficient
reset noise0.1Non-negative initialization-noise scale
position exclusiontrueOmit root x from observation
horizon1000Truncation limit

Reference: Gymnasium HalfCheetah.