Text this: Dynamic Stability Analysis of a Trotting Quadruped Robot Based on Switching Control