← Book overviewKorean

QUAD-01 CH11 Changing foot targets (LEG2)

Run video · Q01-11-00

QUAD-01WALKPhysical AI with RoboCo

About this video

A full run of LEG2: changing the quadruped's foot target coordinates and computing joint angles with inverse kinematics (IK) in RoboCo on Steam.

When you set a foot target as x·y·z coordinates, the author's Python library computes the IK and sends the resulting joint angles to RoboCo's ServoMotors.

The selected leg's foot moves forward/back, left/right, and up/down, then follows a circular path, showing how foot position relates to joint angles.

Keys in this exercise

KeyAction
W / SFoot x up / down
A / DFoot y up / down
E / QFoot z up / down
U / O / J / LSelect leg FL / FR / HL / HR
IAutomatic foot-circle test
KSelected leg to the stand pose
F1Key help
F2All four legs to the stand pose
F3Stop the circle

The FK error on screen is the difference between the target and the position computed back from the joint angles. It isn't a separate measurement of where the foot actually is.

The calculation chain on screen

  1. Foot target
  2. IK
  3. HX · HY · KN angles
  4. Servo targets
  5. Compare with FK

What to watch

  • All three joints moving together when the target changes
  • The IK angles and the angles sent to the servos being different numbers
  • The path the foot traces in the circle test

Exercise details

BookLearning Physical AI with RoboCo: Robot Structure and Gait Control (Korean edition)
SeriesPhysical AI with RoboCo · QUAD-01 (WALK)
ChapterPART 3 · CONTROL · CHAPTER 11
Related chaptersCH10·11·12·13
Practice modelBook-QUAD-01-LEG2
Python start fileq01_leg2_ik_start.py
Practice files versionv3.5.0 — download
Video IDQ01-11-00
YouTubeyoutu.be/GdoPi8bZAd0 (opens in a new tab)
Continue in the book · PART 3 · CONTROL · CH11

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.