upkie 9.0.1
Open-source wheeled biped robots
Loading...
Searching...
No Matches

◆ __init__()

def __init__ (   self,
float   fall_pitch = 1.0,
float   leg_length = 0.58,
float   max_ground_accel = 10.0,
float   max_ground_velocity = 3.0,
int   nb_timesteps = 50,
float   sampling_period = 0.02,
float   stage_input_cost_weight = 1e-3,
float   stage_state_cost_weight = 1e-3,
float   terminal_cost_weight = 1.0,
bool   warm_start = True 
)

Initialize balancer.

Parameters
fall_pitchFall pitch threshold, in radians.
leg_lengthLeg length in meters.
max_ground_accelMaximum commanded ground acceleration no matter what, in m/s².
max_ground_velocityMaximum commanded ground velocity no matter what, in m/s.
nb_timestepsNumber of MPC steps.
sampling_periodDuration of an MPC step in seconds.
stage_input_cost_weightWeight for the stage input cost.
stage_state_cost_weightWeight for the stage state cost.
terminal_cost_weightWeight for the terminal cost.
warm_startIf set, use the warm-starting feature of ProxQP.