← All BooksKorean

Learning Physical AI with RoboCo: Robot Structure and Gait Control

Change a four-legged robot's gait and posture in RoboCo and see how walking works

QUAD-01WALKPhysical AI with RoboCo

SAMPLE · Preview

Walking on legs
instead of wheels

Excerpts from the prologue and the opening of Chapter 1, translated from the Korean edition.

Prologue

What it means to walk on legs instead of wheels

A wheeled robot moves by pushing its wheels against the floor. A legged robot also has to lift a foot and set it down somewhere else. Which foot lifts first, where does the lifted foot land, and meanwhile, how do the remaining feet hold up the body? These questions come up naturally the moment you watch the robot actually walk.

Two robots seen from the left. The wheeled robot rolls with all four wheels on the floor; the legged robot has to decide (1) which foot to lift, (2) where to land it, and (3) how to hold up the body. Below, the scope of this book: 12 joints (servo angles) → 4 feet (foot coordinates) → body posture (height and tilt) → step and gait (step order); sensing and deciding are covered in QUAD-02.
Figure Q01-00-02 | Rolling on wheels versus walking on legsZoom ↗ (open larger in a new tab)

Load the finished QUAD-01 and press W, and the body moves forward. Let go of the key and it stops walking and returns to its default pose. In the first chapter, that experience is enough. Follow the robot's four feet and watch the body move. If it moves in a way you didn't expect, you don't need to look up a formula or fill in a record sheet yet.

A little later you switch to the ACTION model and run a standing greeting, sitting and waving, and a leg stretch. It becomes clear that the robot isn't just something that walks; it's a machine that combines its joints into many different poses.

The core subject of QUAD-01 is how to control joints, feet, and the body to produce walking. Once you can explain how twelve joint commands become one step, the AI control in the next stage reads much more clearly.

PART 1 · EXPERIENCE

CHAPTER 01. Get a four-legged robot walking from its first step

1.2 Stand, walk forward, and stop

Tap W. The robot holds its body up and starts moving forward. At first, press it only briefly and let go. When you release the key, it stops walking and returns to the default pose. Press W again and it starts walking forward from where it is.

Now press X once. In WALK, X sets the stop pose. Press Z and the robot lowers into a relaxed pose. Switch between X and Z and just watch how the way it stands changes.

KeyWhat happens on screenHow to press
WWalk forwardHold it down
XSteady stop posePress once
ZLowered, relaxed posePress once
0Relax, then end the WALK scriptPress once to finish

1.3 Watch the feet move and the body follow

When the robot moves forward, its four feet don't all lift at once. Some feet stay planted while others lift and move ahead. Turn the camera to the side and zoom in a little, and you can see the moment a foot leaves the floor and the moment it comes back down. For now, it's enough to come away with this: one key moves all four feet together.

You can watch Chapter 1 in the WALK video. Which foot lifts when, and how to change that order, continue in PARTs 2 and 5 of the book.