Dynamics of a galloping quadruped