Based on the ankylosaurus, a four-legged robot structure with 14 degrees of freedom was designed in this study. The kinematic model was established using the Denavit-Hartenberg (D-H) method. The inverse kinematics of the robot was analyzed, and the angle equations of each leg joint were obtained. In order to reduce the kinetic energy generated when leaving the ground and landing, the compound cycloid was modified. The modified foot curve effectively reduces energy and meets the kinematic requirements. On the basis of the foot trajectory, the diagonal leg phase difference was set to 0.5, and the diagonal gait was adopted as the gait of the bionic quadrupled robot. Simulink software was used to construct the simulation environment, and the maximum error of the simulation results and the theoretical step height was 2.05%, and the step length maximum error was 2.39%. During walking, the thigh joint angle was −92.82° to −80.21°, and the hip joint angle was 22.23° to 43.83°. Compared with the simulation trajectory and the theoretical curve, because the experiment did not consider the balance of the fuselage, there was a certain error when the leg was raised to the highest point. Overall, the gait planning strategy designed in this study basically achieves the expected effect, lays a certain foundation for the practical application of the bionic quadruped dinosaur robot, and also provides a reference for the subsequent research.