Skip to content
generated from upkie/new_agent

Upkie agent that can balance and crouch

License

Notifications You must be signed in to change notification settings

upkie/pink_balancer

Repository files navigation

Pink balancer

upkie

An agent for Upkie that combines wheeled balancing with inverse kinematics computed by Pink. This is the controller that runs in the first two videos of Upkie.

Installation

On your machine

conda env create -f environment.yaml
conda activate ppo_balancer

On your Upkie

The PPO balancer uses pixi and pixi-pack to pack a standalone Python environment to run policies on your Upkie. First, create environment.tar and upload it by:

make pack_pixi_env
make upload

Then, unpack the remote environment:

$ ssh user@your-upkie
user@your-upkie:~$ cd ppo_balancer
user@your-upkie:ppo_balancer$ make unpack_pixi_env

Usage

Start the simulation or pi3hat spine, then run:

make run_agent