Skip to content

About

Upkie agent that can balance and crouch using Pinker inverse kinematics

Topics

Resources

Stars

3 stars

Watchers

2 watching

Forks

Repository files navigation

Pinker balancer

upkie

An agent for Upkie that combines wheeled balancing with inverse kinematics computed by Pinker.

Installation

This agent uses pixi to manage its Python environment, both on your machine and on your Upkie. The first installation compiles Pinker's C extension, which takes a few seconds.

Usage

In simulation

Start a simulation spine:

./start_simulation.sh

Then, in a separate terminal, run the agent:

pixi run agent

To visualize the inverse kinematics of the legs in a Viser browser tab, run instead:

pixi run agent-viz

The Viser panel has a crouch height slider that works like the directional pad of the gamepad.

On your Upkie

Upload the agent to your robot (this assumes there is an upkie host in your SSH configuration):

make upload

Then, start the pi3hat spine on the robot and run the agent from there:

$ ssh upkie
user@upkie:~$ cd pinker_balancer
user@upkie:pinker_balancer$ pixi run agent

Gamepad commands

Once the agent is running, you can direct your Upkie using the game controller 🎮

  • Left joystick: go forward or backward
  • Right joystick: turn left or right
  • Directional pad: down to crouch, up to stand up
  • Right button: (B on an Xbox controller, red circle on a PS4 controller) emergency stop 🚨 all motors will turn off

About

Upkie agent that can balance and crouch using Pinker inverse kinematics

Topics

Resources

Stars

3 stars

Watchers

2 watching

Forks

Used by

Contributors

Languages