Stability Study and Simulation of Quadruped Robots with Variable Parameters