A Strategy of Wave Gait for a Walking Machine Traversing a Rough Planar Terrain