Design of a single-legged robot