upkie  13.2.0
Open-source wheeled biped robots

◆ __init__()

def __init__ (   self,
UpkieServos  servos_env,
float   fall_pitch = 1.0,
float   max_ground_velocity = 3.0,
float   max_yaw_velocity = 1.0,
float   leg_length = 0.58,
float   max_ground_accel = 10.0,
float   crouching_height = 0.0 
)

Initialize environment.

Parameters
servos_envUpkie environment to command servomotors.
fall_pitchFall detection pitch angle, in radians.
max_ground_velocityMaximum commanded ground velocity in m/s.
max_yaw_velocityMaximum commanded yaw velocity in rad/s.
leg_lengthPendulum leg-length parameter in meters, forwarded to the internal MPC balancer. This is an estimate of the distance between the center of mass and wheel contacts, rather than the actual length of extended legs.
max_ground_accelMaximum ground acceleration in m/s², forwarded to the internal MPC balancer.
crouching_heightHeight by which the robot crouches, in meters. Defaults to zero, straight legs. See upkie.envs.upkie_gyropod.UpkieGyropod. Crouching shortens the pendulum length parameter: adapt leg_length accordingly.