A torso compensation control method for lateral roll stability of a quadruped robot in a same-side gait

By constructing a discrete phase compensation table and an adaptive gain scheduling torso compensation control method, the roll stability problem of quadruped robots in same-side gait was solved, and high-precision attitude control and dynamic balance under different working conditions were achieved.

CN123137344APending Publication Date: 2026-11-20GALILEO (TIANJIN) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611644543.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-23
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Quadruped robots suffer from poor rolling stability in gait on the same side, especially when supported on one side, which can easily lead to the robot tipping over and becoming unstable. Existing technologies lack effective active compensation mechanisms.

Method used

A torso compensation method based on iterative learning feedforward control is adopted. By constructing a discrete phase compensation table and filtering roll state variables, and combining adaptive scheduling of proportional gain and differential gain, feedforward and feedback compensation torques are generated and distributed to the lateral swing drive joint of the same side leg for amplitude limiting protection.

Benefits of technology

It significantly improves the roll suppression rate and steady-state walking accuracy of quadruped robots under different loads and step frequencies, reduces violent shaking caused by resonance, and enhances dynamic balance capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123137344A_ABST
    Figure CN123137344A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of posture stability control of a quadruped robot, in particular to a trunk compensation control method for lateral roll stability of a quadruped robot with the same side gait, which iteratively updates a gait phase and generates a four-leg motion phase mapping according to a desired gait frequency of the quadruped robot and a control cycle length; in gait control, a low-pass filter is used to obtain state quantities of a roll angle and a roll angular velocity; based on a discrete phase iterative learning feedforward control mechanism, a table look-up output feedforward compensation torque is obtained, and iterative updating is performed at the end of a gait cycle in combination with the filtered state quantities; according to a two-dimensional gain scheduling mechanism of a load mass and a gait frequency, proportional and differential gains are adaptively matched, and feedback compensation torque is calculated in combination with the filtered state quantities; the feedforward and feedback torques are combined into total compensation torque, the total torque is distributed to the lateral swing driving joints of the same side legs according to the phase mapping and phase mapping, and amplitude protection is performed, so that high-precision anti-disturbance control is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of quadruped robot posture stabilization control technology, specifically to a trunk compensation control method for same-side gait roll stabilization of a quadruped robot. Background Technology

[0002] Quadruped robots are now widely used in inspection, security, scientific research, and emergency rescue. Among them, the same-side gait (also known as the slippery hoof gait) is a type of gait for quadruped robots: the forelegs and hind legs on the same side swing and support synchronously in phase, while the phase difference between the legs on opposite sides is half a gait cycle. The same-side gait has advantages such as a large stride, small turning radius, good passage through narrow spaces, and high energy efficiency per unit distance, making it particularly suitable for scenarios where the lateral dimensions of the robot body are limited, such as the inspection of narrow passages, pipelines, and pipe corridors.

[0003] However, the same-side gait has an inherent drawback: during the support phase, the entire weight of the aircraft is borne by only the two legs on one side, and the instantaneous support polygon degenerates into a narrow line along the longitudinal axis of the fuselage, resulting in extremely poor lateral stability around the longitudinal axis of the torso. During the alternating movement on the same side, the lateral offset of the center of gravity relative to the support side will generate a strong periodic lateral rolling moment with the switching of support on one side, causing a large periodic sway in the torso roll angle, which can easily induce the fuselage to roll over and become unstable.

[0004] In existing technologies, reference oscillation signals are adjusted for different joints, the trunk posture angle, angular velocity and position are measured and feedback signals are generated, and control signals for each joint are output. Among them, the control signal for the lateral joint includes the oscillation signal, and finally the quadruped robot is controlled to adopt a diagonal gait to reduce the pitch angle and roll angle. However, it only focuses on rhythm generation and joint basic trajectory planning itself, and lacks an active compensation link for the periodic roll impact generated by unilateral support in the same-side gait. Summary of the Invention

[0005] In view of the above, it is necessary to provide a trunk compensation control method for same-side gait roll stabilization of quadruped robots to solve the above problems.

[0006] One embodiment of this application provides a trunk compensation control method for same-side gait roll stabilization of a quadruped robot, the method comprising: Based on the motion law of ipsilateral gait of quadruped robots, combined with the desired gait frequency and the duration of the preset control cycle, the gait phase of each control cycle is iteratively updated, and a four-leg action phase mapping is generated. When the quadruped robot begins same-side gait control, the roll angle and roll angular velocity of each control cycle are low-pass filtered to obtain the filtered roll state variables. The discrete phase-based iterative learning feedforward control mechanism uses the current gait phase to look up the table and output the feedforward compensation torque. At the end of the gait cycle when the gait phase completes a single cycle, iterative updates are performed in combination with the filtered roll state quantity. Based on the two-dimensional gain scheduling mechanism of quadruped robot load mass and gait frequency, the proportional gain and differential gain of each control cycle are adaptively matched, and the feedback compensation torque is calculated in combination with the filtered roll state quantity. The feedforward compensation torque and the feedback compensation torque are combined to obtain the total compensation torque. The current support side is determined according to the phase mapping of the four legs' movements. The combined total compensation torque is then distributed to the lateral swing drive joint of the same-side leg and limited for protection.

[0007] Preferably, the iterative update of the gait phase for each control cycle specifically involves: Obtain the gait phase of the previous control cycle; multiply the desired gait frequency by the duration of the preset control cycle and then multiply by 2π to obtain the phase increment; add the phase increment to the gait phase of the previous control cycle and perform a 2π modulo operation on the addition result to obtain the gait phase of the current control cycle.

[0008] Preferably, the generation of the four-legged motion phase map specifically involves: Set the leg movement phases of the left foreleg and left hindleg to the gait phase of the current control cycle; set the leg movement phases of the right foreleg and right hindleg to the result of the sum of the gait phase of the current control cycle and π modulo 2π.

[0009] Preferably, the low-pass filtering of the roll angle and roll rate for each control cycle specifically involves: Obtain the smooth roll angle and smooth roll velocity of the previous control cycle; Obtain the raw roll angle and raw roll velocity collected by the inertial measurement unit during the current control cycle; The original roll angle and the smoothed roll angle of the previous control cycle are weighted and summed using the first-order low-pass filter coefficients to obtain the smoothed roll angle of the current control cycle. The original roll rate and the smoothed roll rate of the previous control cycle are weighted and summed using the first-order low-pass filter coefficients to obtain the smoothed roll rate of the current control cycle. When the controller of the quadruped robot is powered on and initialized, the initial values ​​of the smooth roll angle and the smooth roll velocity are both set to zero.

[0010] Preferably, the step of using the current gait phase to look up the table to output the feedforward compensation torque, and at the end of the gait cycle when the gait phase completes a single cycle, iteratively updating the output by combining the filtered roll state quantity, specifically involves: A discrete phase compensation table is pre-constructed, and the interval [0, 2π) is divided into a preset number of phase slots at equal intervals, and the initial value of the feedforward compensation torque of each phase slot is set to zero. Calculate the corresponding slot index number based on the gait phase of the current control cycle; read the value of the corresponding slot index number from the phase compensation table as the feedforward compensation torque for the current control cycle; During the gait cycle operation, the smooth roll angle of the current control cycle corresponding to the activation period of each phase slot is counted. When it is determined that the gait phase of the current control cycle is less than the gait phase of the previous control cycle, it is determined that the end of the gait cycle has been reached. The average smooth roll angle of each phase slot in the current gait cycle is calculated. The value of each phase slot in the current gait cycle is subtracted from the product of the preset iterative learning rate and the average smooth roll angle to obtain the updated value, which is then overwritten and stored in the phase compensation table for the feedforward output of the next gait cycle.

[0011] Preferably, the specific process of adaptively matching the proportional gain and derivative gain for each control cycle is as follows: Obtain the current load mass of the quadruped robot and the desired gait frequency of the quadruped robot; calculate the difference between the desired gait frequency and the preset reference gait frequency, and divide the difference by the frequency normalization interval to obtain the frequency correction factor; The proportional gain of the current control cycle is obtained by adding the product of the preset reference proportional gain, the current load quality and the preset proportional load compensation sensitivity coefficient, and the frequency correction factor and the preset proportional frequency correction sensitivity coefficient. The differential gain of the current control cycle is obtained by adding the product of the preset reference differential gain, the current load quality and the preset differential load compensation sensitivity coefficient, and the frequency correction factor and the preset differential frequency correction sensitivity coefficient.

[0012] Preferably, the calculation of the feedback compensation torque specifically involves: Multiply the proportional gain of the current control cycle by the smooth roll angle of the current control cycle to obtain the proportional compensation term; multiply the differential gain of the current control cycle by the smooth roll rate of the current control cycle to obtain the differential compensation term. The proportional compensation term and the differential compensation term are added together and their opposites are taken to obtain the feedback compensation torque for the current control cycle.

[0013] Preferably, the specific method for determining the current supporting side based on the phase mapping of the four leg movements is as follows: If the gait phase of the current control cycle is in the interval [0,π), the two left legs are defined as being in the support phase and the two right legs as being in the swing phase; if the gait phase of the current control cycle is in the interval [π,2π), the two right legs are defined as being in the support phase and the two left legs as being in the swing phase.

[0014] Preferably, the process of distributing the synthesized total compensation torque to the lateral swing drive joint of the same-side leg is as follows: If the current support side is the left side, the initial command torque of the left front leg is set as the product of the total compensation torque and the preset distribution ratio coefficient, and the initial command torque of the left hind leg is set as the difference between the value 1 and the preset distribution ratio coefficient, multiplied by the total compensation torque; if the current support side is the right side, the initial command torque of the right front leg is set as the opposite of the initial command torque of the left front leg; the initial command torque of the right hind leg is set as the opposite of the initial command torque of the left hind leg. Set the command torque of both suspended legs on the non-supported side to zero.

[0015] Preferably, the specific process of the amplitude limiting protection is as follows: If the absolute values ​​of the initial command torques of the front and hind legs of the quadruped robot exceed the preset single-joint roll compensation torque thresholds, the corresponding initial command torques are limited to the single-joint roll compensation torque thresholds with the same sign as the original, and then sent to the corresponding lateral drive motors as effective command torques.

[0016] This application has at least the following beneficial effects: This application fully leverages the physical characteristic that gait disturbances on the same side strictly repeat with phase, and innovatively introduces a discrete phase iterative learning feedforward control mechanism. By constructing a discrete phase compensation table and using the filtered roll state variable for error iterative update at the end of each gait cycle, the system can autonomously learn and compensate for periodic disturbances without requiring a precise dynamic model. This mechanism enables the quadruped robot to perfectly meet the stringent requirements of the main working conditions of 22kg self-weight, 12kg full load, and 2.0Hz step frequency, significantly improving steady-state walking accuracy.

[0017] To address the issue of drastic changes in the dynamic characteristics of quadruped robots under varying loads and step frequencies, this application constructs a two-dimensional gain scheduling mechanism covering loads from 0 to 12 kg and step frequencies from 1.5 to 2.5 Hz. This mechanism can match the optimal proportional gain and derivative gain in real time according to the current operating conditions, ensuring that the controller is always in its best working state. Especially under the extreme low-frequency condition of 1.5 Hz, close to the system's natural resonant frequency, this mechanism exhibits excellent robustness, reducing the peak roll angle from 18.13° without compensation to 1.92°. This not only effectively eliminates control mismatch under varying operating conditions but also avoids severe shaking caused by resonance, greatly enhancing the quadruped robot's dynamic balance capability and anti-interference performance under all operating conditions. Attached Figure Description

[0018] Figure 1 A flowchart illustrating a trunk compensation control method for same-side gait roll stabilization of a quadruped robot provided in this application; Figure 2 This is a schematic diagram of the gait phase of the quadruped robot provided in this application. Detailed Implementation

[0019] This application addresses scenarios where a quadruped robot can move in a unilateral gait in narrow, confined spaces, on soft or slippery surfaces. The quadruped robot employs a biomimetic design without an active spine, featuring 12 active joints (3 degrees of freedom per leg) and a total weight of 22 kg. In terms of motion control and actuation performance, its gait frequency is set at 1.5–2.5 Hz, the underlying control cycle is 2 ms, the peak torque limit per joint is 40 N·m, and it supports a dynamic load range of 0–12 kg.

[0020] In ipsilateral gait, the torso roll disturbance is mainly generated by the alternating left and right sides of the center of mass, exhibiting a repetitive change with the gait cycle. Under steady-state conditions, the disturbance shape of the quadruped robot is basically the same at different times within each gait cycle, with the differences mainly originating from load changes and external environmental factors such as ground undulations.

[0021] Under stable external conditions, a phase compensation table is constructed using the periodic gait disturbances. The quadruped robot queries the table in real-time according to its current gait to obtain the precise feedforward compensation torque corresponding to that phase. Based on the measured roll error of the current cycle, the value of the corresponding slot in the compensation table is updated; the compensation torque is distributed to the lateral joints of the two legs on the same side according to a preset ratio, with amplitude limiting.

[0022] Based on the above scenario, this application proposes a trunk compensation control method for same-side gait roll stabilization of a quadruped robot, applied in the field of quadruped robot posture stabilization control technology, as shown in the appendix. Figure 1 The method includes the following steps: Step S1: Generate ipsilateral gait rhythm.

[0023] In nature, many rhythmic movements require the combined efforts of the cerebellum, brainstem, and spinal cord. The rhythmicity and coordination of overall movement originate from the central pattern generator (CPG) in neural network systems. The motion control of quadruped robots is derived from a simulation of the central pattern generator. Considering the unique movement patterns of ipsilateral gait—that is, the almost simultaneous lifting and landing of the ipsilateral legs and the alternating movements of the contralateral legs—a strict and smooth relative relationship needs to be established for the four legs of the quadruped robot.

[0024] In this embodiment, the specific generation process of gait rhythm and phase is as follows: Let the desired gait frequency of the quadruped robot be... In each control cycle The time is linearly accumulated to generate a normalized value. Gait phase within the interval For the (n+1)th control cycle: In the formula: The gait phase is the phase of the nth control cycle; The desired gait frequency ranges from 1.5 to 2.5 Hz, and in this embodiment, it is set to 1.5 Hz. For the underlying control loop cycle; To ensure the gait phase is within the modulo operation, Within the range; This represents the phase increment.

[0025] To achieve precise temporal synchronization of gait on the same side, the movement phases of the four legs are... Using a pre-defined fixed phase bias matrix as a basis, hard decoupling mapping is performed. The topological relationships of the left front leg (LF), left hind leg (LH), right front leg (RF), and right hind leg (RH) are set to satisfy: the phase difference between legs on the same side is... (Strictly synchronized), the phase difference between the opposite legs is (Inverted phase alternation). The real-time motion phase of each of the four legs. ( The calculation is as follows, for the nth control cycle: in: , These represent the movement phases of the left front leg and left hind leg respectively within the nth control cycle. , These represent the movement phases of the right foreleg and right hind leg respectively within the nth control cycle. At that time, the left legs LF and LH are in the support phase, and the right legs are in the swing phase; when At that time, the left two legs enter the swing phase, and the right two legs enter the support phase.

[0026] The above steps allow us to calculate the gait phase of the nth control cycle, establishing an index for further calculations. A schematic diagram of the quadruped robot's gait phase is shown below. Figure 2 As shown.

[0027] Step S2: Roll state perception.

[0028] When the quadruped robot begins same-side gait control, the initial values ​​of the filtered history of roll angle and roll velocity are all set to 0; the initial values ​​of the feedforward compensation torque for all slots in the phase compensation table are all set to 0.

[0029] During the same-side gait movement of a quadruped robot, the alternating support and lift of the two legs on the same side causes the robot's center of gravity to periodically lateralize, resulting in violent rolling motion of the torso. To accurately control the robot's rolling posture, it is first necessary to accurately sense the current actual rolling state of the quadruped robot. The mechanical vibrations generated by the quadruped robot's feet striking the ground or the motors reversing are represented on the IMU as high-frequency pulses with large amplitude and extremely rapid alternation of positive and negative polarities (mean close to 0). By weighting and calculating multiple historical frames of data, the high-frequency impacts cancel each other out during the accumulation process, thereby filtering out high-frequency disturbance interference signals.

[0030] In this embodiment of the application, the specific implementation process of roll state awareness is as follows: In the formula: and These represent the raw roll angle and raw roll velocity acquired by the IMU during the nth control cycle, respectively. , They represent the first The smooth roll angle and smooth roll velocity output after each control cycle are low-pass filtered; and They represent the first The roll angle and roll rate after filtering in each control cycle; The coefficients of a first-order low-pass filter satisfy... (This embodiment is preferred) ), The smaller the value, the stronger the smoothing effect, which is used to achieve a balance between the smoothness of the filter and the dynamic response delay of the sensor. This indicates the first weight.

[0031] Because the raw data collected by the airborne inertial measurement unit (IMU) under the high-frequency foot-to-ground impact and motor vibration conditions of the quadruped robot is often mixed with significant high-frequency measurement noise, if the raw noise signal is directly sent to the controller, it is very easy to induce high-frequency jitter and reduce control stability. Therefore, a low-pass filter is used for output in this step.

[0032] The above steps are used to calculate the first... Filtered roll state quantity per control cycle On the one hand, it provides a smooth and reliable error statistics input for the reverse iterative learning of the feedforward compensation table at the end of the cycle in step S3. On the other hand, it directly inputs the data into step S4 to participate in the calculation of the real-time gain scheduling PD feedback torque, thus ensuring the stability and dynamic response quality of the closed-loop control loop.

[0033] Step S3: Phase lookup table feedforward compensation.

[0034] During the same-side gait movement of a quadruped robot, the synchronous swinging and support of the two legs on the same side causes the robot's center of mass to experience strong, alternating periodic lateral impacts as it moves. Under steady-state conditions, the roll disturbances at different phases within each gait cycle exhibit high repetition, with their morphology primarily changing cyclically with the gait phase. Given this periodicity, performing complex dynamic modeling and optimization for each control cycle is not only computationally complex but also extremely sensitive to unmodeled errors. Therefore, this embodiment employs an iterative learning feedforward control mechanism based on discrete phases. This mechanism constructs a phase compensation table to "memorize" the disturbance morphology and iteratively updates the compensation table at the end of the cycle based on the measured roll error, achieving adaptive feedforward cancellation without requiring a roll dynamics model.

[0035] In this embodiment, the specific implementation process of phase lookup table feedforward compensation is as follows: A discrete phase compensation table indexed by gait phase is pre-built. , to a single gait cycle Divided into equal intervals One phase slot (preferred in this embodiment) That is, each Gait phase corresponds to one slot.

[0036] In the current number Within each control cycle, based on the gait phase transmitted in step S1 This is mapped to the corresponding phase slot index. : Based on the calculated slot index number The feedforward compensation torque corresponding to the current phase is read directly from the phase compensation table. : In the formula: This is the slot index number corresponding to the current gait phase, with a value range of... ; The total number of discrete slots for a complete gait cycle (in this embodiment, we take...) ); For the first Gait phase of each control cycle; This is a floor function; For the first in the phase compensation table The current feedforward torque value stored in each phase slot; For the first The feedforward compensation torque output in each control cycle.

[0037] During each gait cycle, the system continuously records and analyzes each phase slot. The filtered roll angle output from step S2 during activation If the current control cycle is Less than the previous control cycle When the gait phase flips, marking the end of a complete gait cycle, an asynchronous iterative learning update is performed in the background to correct the values ​​of each slot in the phase compensation table for the feedforward output of the next gait cycle. In the formula: For the first slot within each gait cycle The feedforward compensation torque value; For the updated version used in the first Each gait cycle slot The feedforward compensation torque value; For the first slot within each gait cycle The average value of the filtered roll angle within the corresponding time interval; The iterative learning rate (preferred in this embodiment) Its value satisfies the convergence condition. (in the formula) To measure the equivalent static gain from compensation torque to fuselage roll angle, the following measurements were performed. ).

[0038] When a certain phase slot The fuselage tilts in a certain direction ( When the roll disturbance occurs, a counter-current compensation torque is applied at the corresponding phase slot in the next gait cycle to correct the roll; conversely, the same applies. After self-learning for several gait cycles, the compensation table can automatically converge and evolve into a counter-current compensation torque curve that highly matches the roll disturbance of the current travel condition.

[0039] The high-precision feedforward compensation torque for the current control cycle is calculated using the above steps. It is then synchronously output to step S5 to participate in the synthesis and execution of the total compensation torque, thereby achieving active cancellation of periodic roll disturbances while ensuring extremely low table lookup calculation overhead.

[0040] Step S4: Gain scheduling PD feedback compensation.

[0041] In the actual motion control of quadruped robots, their dynamic response characteristics change significantly with variations in the external load mass and gait frequency. If traditional fixed-gain PD feedback control is used, when the actual load (0~12kg) or gait frequency (1.5~2.5Hz) deviates from the calibrated operating conditions, the control gain cannot be precisely matched with the current physical characteristics of the mechanical system, easily leading to insufficient feedback suppression or inducing high-frequency overshoot oscillations. Therefore, this embodiment constructs a two-dimensional gain scheduling mechanism dependent on load mass and gait frequency, adaptively matching the proportional gain and derivative gain to achieve high-precision posture under all operating conditions.

[0042] In this embodiment, the specific calculation process of the gain scheduling PD feedback compensation torque is as follows: Based on the current total load mass of quadruped robots With gait frequency Calculate the first through a preset mapping model Adaptive proportional gain for each control cycle With differential gain : In the formula: The current load mass of the quadruped robot is 0-12kg. The value can be preset by the host computer according to the current configuration and working conditions, and then sent to the onboard controller for acquisition. The desired gait frequency for a quadruped robot; and These represent the reference proportional gain and reference differential gain under no-load reference conditions, respectively (preferred in this embodiment). , ); As the reference gait frequency, For the frequency normalization interval (preferred in this embodiment) , ); and All are load compensation sensitivity coefficients (preferred in this embodiment) , ), and All are frequency-corrected sensitivity coefficients (preferred in this embodiment) =34, =4.8); This represents the frequency correction factor. The load compensation sensitivity coefficient and the frequency correction sensitivity coefficient are determined by least squares fitting.

[0043] The calculated adaptive gain The instantaneous roll state quantity output after filtering in step S2 Combined, calculate the current number. The feedback compensation torque acting on the torso during each control cycle : In the formula: For the first Feedback compensation torque output per control cycle ( The negative sign before the formula indicates negative feedback reverse control (that is, when the roll angle produces a positive deviation, a negative restoring torque is output to reduce the roll angle). and The output of step S2 is the first Smoothed roll angle and smoothed roll velocity after each control cycle; Indicates the proportional compensation item; This represents the differential compensation term.

[0044] The real-time feedback compensation torque matching the current working condition is calculated through the above steps. It is then synchronously transmitted to step S5 for use in combining the feedforward torque with the total driving compensation torque.

[0045] Step S5: Torque distribution and execution.

[0046] The calculated feedforward compensation torque Primarily used to counteract the periodic roll impacts that recur with the gait phase, the feedback compensation torque output in step S4 This is used to suppress sudden aperiodic disturbances and residual attitude errors in real time. To achieve active correction of torso roll, the total roll torque synthesized from the two channels needs to be reasonably mapped and distributed to the lateral swing drive joints of the two legs on the same side, and dynamic limiting protection should be implemented within the physical boundaries of the driver hardware output capability to avoid motor overload or sudden torque saturation.

[0047] In this embodiment, the specific processes of torque synthesis, joint allocation, and amplitude limiting are as follows: Before determining the left and right sides, define the total compensation torque. ; in the current number Within each control cycle, determine whether the current gait phase has entered the left support phase, i.e., when... When both left legs are in contact with the ground, the following control assignments are performed: The additional roll control torque of the two right-side suspended legs is set to zero; Determine whether the current gait phase has entered the right support phase, i.e., when When both right legs are in contact with the ground, the following control assignments are performed: The additional roll control torque of the two suspended legs on the left is set to zero.

[0048] in, and These refer to the initial command torques allocated to the side-swing drive motors of the left front and rear legs, respectively. and These refer to the initial command torques allocated to the side swing drive motors of the front and rear legs on the right side, respectively. It is the distribution ratio coefficient along the front and rear sections of the mechanism on the same side, satisfying In this embodiment, a fixed support is taken under conventional symmetrical support conditions. That is, each leg on the same side bears 50% of the roll compensation load. Before the initial command torque is sent to the driver, the obtained initial command torque needs to be dynamically limited and protected to finally obtain the effective command torque: if its absolute value exceeds the preset single-joint roll compensation torque threshold (such as 20 N·m), the extreme value is forcibly output to prevent the motor from being overloaded after the superposition of the basic motion torque.

[0049] The effective torque command of the joint is calculated through the above steps and sent to the motor driver of each leg joint to drive the coordinated movement of the side swing joints of the two legs on the same side, and complete the active and stable control of the fuselage roll attitude in a closed loop within the embedded control cycle.

Claims

1. A trunk compensation control method for same-side gait roll stabilization of a quadruped robot, characterized in that, The method includes the following steps: Based on the motion law of ipsilateral gait of quadruped robots, combined with the desired gait frequency and the duration of the preset control cycle, the gait phase of each control cycle is iteratively updated, and a four-leg action phase mapping is generated. When the quadruped robot begins same-side gait control, the roll angle and roll angular velocity of each control cycle are low-pass filtered to obtain the filtered roll state variables. The discrete phase-based iterative learning feedforward control mechanism uses the current gait phase to look up the table and output the feedforward compensation torque. At the end of the gait cycle when the gait phase completes a single cycle, iterative updates are performed in combination with the filtered roll state quantity. Based on the two-dimensional gain scheduling mechanism of quadruped robot load mass and gait frequency, the proportional gain and differential gain of each control cycle are adaptively matched, and the feedback compensation torque is calculated in combination with the filtered roll state quantity. The feedforward compensation torque and the feedback compensation torque are combined to obtain the total compensation torque. The current support side is determined according to the phase mapping of the four legs' movements. The combined total compensation torque is then distributed to the lateral swing drive joint of the same-side leg and limited for protection.

2. The trunk compensation control method for same-side gait roll stabilization of a quadruped robot as described in claim 1, characterized in that, The iterative update of the gait phase for each control cycle is specifically as follows: Obtain the gait phase of the previous control cycle; multiply the desired gait frequency by the duration of the preset control cycle and then multiply by 2π to obtain the phase increment; The phase increment is added to the gait phase of the previous control cycle, and the addition result is modulo 2π to obtain the gait phase of the current control cycle.

3. The trunk compensation control method for same-side gait roll stabilization of a quadruped robot as described in claim 1, characterized in that, The generation of the four-legged motion phase mapping is specifically as follows: Set the leg movement phases of the left foreleg and left hindleg to the gait phase of the current control cycle; set the leg movement phases of the right foreleg and right hindleg to the result of the sum of the gait phase of the current control cycle and π modulo 2π.

4. The trunk compensation control method for same-side gait roll stabilization of a quadruped robot as described in claim 1, characterized in that, The low-pass filtering of the roll angle and roll rate for each control cycle is specifically as follows: Obtain the smooth roll angle and smooth roll velocity of the previous control cycle; Obtain the raw roll angle and raw roll velocity collected by the inertial measurement unit during the current control cycle; The original roll angle and the smoothed roll angle of the previous control cycle are weighted and summed using the first-order low-pass filter coefficients to obtain the smoothed roll angle of the current control cycle. The original roll rate and the smoothed roll rate of the previous control cycle are weighted and summed using the first-order low-pass filter coefficients to obtain the smoothed roll rate of the current control cycle. When the controller of the quadruped robot is powered on and initialized, the initial values ​​of the smooth roll angle and the smooth roll velocity are both set to zero.

5. The trunk compensation control method for same-side gait roll stabilization of a quadruped robot as described in claim 1, characterized in that, The method of using the current gait phase to look up the table and output the feedforward compensation torque, and then iteratively updating it at the end of the gait cycle when the gait phase completes a single cycle, in conjunction with the filtered roll state quantity, specifically involves: A discrete phase compensation table is pre-constructed, and the interval [0, 2π) is divided into a preset number of phase slots at equal intervals, with the initial value of the feedforward compensation torque of each phase slot set to zero. Calculate the corresponding slot index number based on the gait phase of the current control cycle; Read the value corresponding to the slot index number in the phase compensation table and use it as the feedforward compensation torque for the current control cycle; During the gait cycle operation, the smooth roll angle of the current control cycle corresponding to the activation period of each phase slot is calculated; When it is determined that the gait phase of the current control cycle is less than the gait phase of the previous control cycle, it is determined that the end of the gait cycle has been reached. The average smooth roll angle corresponding to each phase slot in the current gait cycle is calculated. The value of each phase slot in the current gait cycle is subtracted from the product of the preset iterative learning rate and the average smooth roll angle to obtain the updated value, which is then overwritten and stored in the phase compensation table for feedforward output in the next gait cycle.

6. The trunk compensation control method for same-side gait roll stabilization of a quadruped robot as described in claim 1, characterized in that, The specific process of adaptively matching the proportional gain and derivative gain for each control cycle is as follows: Obtain the current load mass of the quadruped robot and the desired gait frequency of the quadruped robot; calculate the difference between the desired gait frequency and the preset reference gait frequency, and divide the difference by the frequency normalization interval to obtain the frequency correction factor; The proportional gain of the current control cycle is obtained by adding the product of the preset reference proportional gain, the current load quality and the preset proportional load compensation sensitivity coefficient, and the frequency correction factor and the preset proportional frequency correction sensitivity coefficient. The differential gain of the current control cycle is obtained by adding the product of the preset reference differential gain, the current load quality and the preset differential load compensation sensitivity coefficient, and the frequency correction factor and the preset differential frequency correction sensitivity coefficient.

7. The trunk compensation control method for same-side gait roll stabilization of a quadruped robot as described in claim 1, characterized in that, The calculated feedback compensation torque is specifically as follows: Multiply the proportional gain of the current control cycle by the smooth roll angle of the current control cycle to obtain the proportional compensation term; multiply the differential gain of the current control cycle by the smooth roll rate of the current control cycle to obtain the differential compensation term. The feedback compensation torque for the current control cycle is obtained by adding the proportional compensation term and the differential compensation term together and taking their opposites.

8. The trunk compensation control method for same-side gait roll stabilization of a quadruped robot as described in claim 1, characterized in that, The specific method for determining the current supporting side based on the phase mapping of the four leg movements is as follows: If the gait phase of the current control cycle is in the interval [0,π), the two left legs are defined as being in the support phase and the two right legs as being in the swing phase; if the gait phase of the current control cycle is in the interval [π,2π), the two right legs are defined as being in the support phase and the two left legs as being in the swing phase.

9. The trunk compensation control method for same-side gait roll stabilization of a quadruped robot as described in claim 1, characterized in that, The specific process of distributing the synthesized total compensation torque to the lateral swing drive joint of the same-side leg is as follows: If the current support side is the left side, the initial command torque of the left front leg is set as the product of the total compensation torque and the preset distribution ratio coefficient, and the initial command torque of the left rear leg is set as the difference between the value 1 and the preset distribution ratio coefficient, multiplied by the total compensation torque. If the current support side is the right side, the initial command torque of the right front leg is set to the opposite of the initial command torque of the left front leg; the initial command torque of the right hind leg is set to the opposite of the initial command torque of the left hind leg. Set the command torque of both suspended legs on the non-supported side to zero.

10. The trunk compensation control method for same-side gait roll stabilization of a quadruped robot as described in claim 1, characterized in that, The specific process of the amplitude limiting protection is as follows: If the absolute values ​​of the initial command torques of the front and hind legs of the quadruped robot exceed the preset single-joint roll compensation torque thresholds, the corresponding initial command torques are limited to the single-joint roll compensation torque thresholds with the same sign as the original, and then sent to the corresponding lateral drive motors as effective command torques.