Kinematic Analysis and Application to Control Logic Development for RHex Robot Locomotion