“wheel as a whole automatically adjusts its wiggling motion to compensate for uneven terrain.”

Link. Simple rules, emergent travel behavior. Fun video.