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

Hopper

State and action spaces

The default 11-value observation is qpos[1..] followed by all velocities clipped to \([-10,10]\); retaining root x adds one value. The default action is 3 controls in \([-1,1]\).

Dynamics and reward

\[ r=w_fv_x+r_{healthy}-w_u\lVert u\rVert_2^2. \]

Health requires every simulator-state component after the first two positions to lie strictly in healthy_state_range, root height in healthy_z_range, and torso angle in healthy_angle_range. Info reports x position/velocity, z displacement from reset, and reward components.

Episode end

Unhealthy state terminates when terminate_when_unhealthy is true. The horizon truncates.

Configuration

FieldDefaultMeaning
xml_file, frame_skipembedded, 4Model and action duration
forward_reward_weight1Velocity reward coefficient
ctrl_cost_weight0.001Control penalty coefficient
healthy_reward1Reward while healthy
terminate_when_unhealthytrueEnable health termination
healthy_state_range(-100,100)Strict finite-state bounds
healthy_z_range(0.7,∞)Strict height range
healthy_angle_range(-0.2,0.2)Strict torso-angle range
reset_noise_scale0.005Uniform qpos/qvel noise
exclude_current_positions_from_observationtrueOmit root x
max_episode_steps1000Horizon

Reference: Gymnasium Hopper.