A Simulation-based Approach to Kinematics Analysis of a Quadruped Robot and Prototype Leg Testing