Simulation of a six-legged robot walking on granular terrain.