Geometric Design of a Walking Machine for Optimal Mobility