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

Model-predictive control sagittal balancer. More...

Public Member Functions

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. More...
 
float compute_ground_velocity (self, float target_ground_velocity, dict spine_observation, float dt)
 Compute a new ground velocity. More...
 

Public Attributes

 commanded_velocity
 Current commanded ground velocity in m/s.
 
 fall_pitch
 Pitch angle threshold for fall detection in radians.
 
 fallen
 Flag indicating whether the robot has fallen.
 
 max_ground_velocity
 Maximum ground velocity constraint in m/s.
 
 mpc_problem
 Model predictive control problem definition.
 
 mpc_qp
 Quadratic program formulation of the MPC problem.
 
 pendulum
 Wheeled inverted pendulum model.
 
 warm_start
 Flag to enable warm-starting the QP solver.
 
 workspace
 ProxQP solver workspace for the MPC optimization.
 

Detailed Description

Model-predictive control sagittal balancer.


The documentation for this class was generated from the following file: