Skip to content
generated from upkie/new_agent

Model predictive control to balance Upkie wheeled bipeds

License

Notifications You must be signed in to change notification settings

upkie/mpc_balancer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MPC balancer

The MPC balancer allows Upkie to stand upright, balancing with its wheels only, by closed-loop model predictive control. It performs better than the previous PID balancer, with significantly less hacks.

Installation

We recommend using Anaconda to install the agent and all its dependencies in a clean environment:

conda create -f environment.yaml
conda activate mpc_balancer

Alternatively, you should be able to install the packages listed in the environment file from PyPI.

Usage

Start the pi3hat spine to run the agent on your robot, or the Bullet spine to check the agent first in simulation (recommended). Then, run the agent by:

python mpc_balancer.py