The invention provides a quadruped
robot body
attitude control system and method, and the method comprises the steps: sensing a first
contact force when each foot is in contact with the ground based on a force feedback device, and collecting a first real-time roll angle and a first real-time
pitch angle of a body based on an
inertia measurement sensor; determining a first roll angle deviation based on the target roll angle and the first real-time roll angle, and determining a first
pitch angle deviation based on the target
pitch angle and the first real-time
pitch angle; determining a first supporting foot based on the first
contact force of each foot, and determining a first height adjustment amount of the first supporting foot in the vertical direction based on the first roll angle deviation and the first
pitch angle deviation in combination with position coordinates of the first supporting foot relative to the
gravity center of the
fuselage; joint movement of the first supporting foot is driven based on the first height adjustment amount of the first supporting foot, so that the first supporting foot is subjected to position adjustment in the vertical direction according to the first height adjustment amount. The
adaptive capacity and the motion reliability of the quadruped
robot in a complex environment are improved.