← Book overviewKorean

QUAD-01 CH17 Comparing body tilt and turn (BALANCE)

Run video · Q01-17-00

QUAD-01WALKPhysical AI with RoboCo

About this video

A full run of BALANCE: the quadruped uses its IMU and PID control to correct its balance on a tilting test platform in RoboCo on Steam.

The three-axis platform changes roll, pitch, and yaw, and the robot computes correction angles from the attitude its IMU measures.

It compares balance correction off and on, and changes the PID gains KP, KI, and KD to show how the control response differs.

Keys in this exercise

KeyAction
W / SPlatform pitch up / down
A / DPlatform roll down / up
Q / EPlatform yaw up / down
1Direction check: platform and robot IMU
2Balance test
3Compare balance off / on
4Balance control on / off
5Level the platform
6 / 7Platform speed down / up
8Sway test
U / JKP up / down
I / KKI up / down
O / LKD up / down
F1Key help
F2Back to the stand pose and zero
F3Stop the test

BALANCE uses two Microcontrollers. The robot's joints and sensors and the platform's servos are run by separate Python scripts.

Control structure

  1. Platform tilt
  2. IMU reading
  3. Filtering
  4. PID correction
  5. New joint targets
  6. Posture response

What to watch

  • How far the body tilts with balance off versus on
  • How quickly the body levels out after the platform stops
  • What the console logs when KP, KI, and KD change

Exercise details

BookLearning Physical AI with RoboCo: Robot Structure and Gait Control (Korean edition)
SeriesPhysical AI with RoboCo · QUAD-01 (WALK)
ChapterPART 4 · EXPERIMENT · CHAPTER 17
Related chaptersCH17·20·24
Practice modelBook-QUAD-01-BALANCE
Robot start fileq01_balance_test_start.py
Platform start fileq01_balance_test_platform_start.py
Practice files versionv3.5.0 — download
Video IDQ01-17-00
YouTubeyoutu.be/9OVq32vbYC0 (opens in a new tab)
Continue in the book · PART 4 · EXPERIMENT · CH17

Book and web

RoboCo is a robot building and programming simulation game developed by Filament Games. This video and the practice files are the author's teaching materials, not official RoboCo content.