Kinematic primitives for a quadruped robot walk and trot with compliant legs