Robot Learning · Learning for Manipulation and Locomotion · M9-L2 · Intermediate
Shape a Gait Reward
Experiment log · Scout at Meridian General Hospital
Experiment log, Meridian General Hospital, Scout's legged prototype. The team trains a two-legged walker for the hospital's stairwell corridor. The reward is a weighted sum: speed forward, a penalty for energy, a penalty for falling. The first trained gait was fast, graceful and a disaster: it fell on every run. After the fall penalty was raised, the walker stopped falling and started to shuffle, sliding its feet along the floor, which a camera crew called "the corridor mop".
You will not write learning code. You set the weights; the page searches about a thousand gaits for the one with the highest reward (an exhaustive search standing in for training) and draws what comes out: the height of each foot over a stride, and the speed, fall probability, energy and scuffing of the gait. In the last stage the same weights are tried on robots with shorter strides, stronger legs or worn ankles.
Your task
Lab complete: post-mortem
You have passed every stage. Now connect it back to the theory and move on:
Output
What Python can I use?
Plain Python with math and heapq. Your code runs in a background worker: an endless loop is stopped after a few seconds and the page stays usable. It runs in your browser and is never sent anywhere.