A four-legged robotic system for playing soccer on various terrains