A dynamic clearance identification and adaptive compensation method for humanoid robot joint module

By using Kalman filtering and adaptive update algorithms to identify and compensate for the dynamic gaps in the joint modules of humanoid robots, the problems of positioning lag and reversal error caused by transmission gaps are solved, achieving efficient and accurate compensation without the need for additional hardware.

CN123156571APending Publication Date: 2026-11-24XIANGTAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610845810.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-12
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies cannot effectively solve the problems of positioning lag and reversal error caused by transmission gaps in humanoid robot joint modules. Especially in delicate operation scenarios, tiny gap errors may lead to operation failures. Furthermore, existing error compensation methods fail to take into account the characteristics and working conditions of different joint module models.

Method used

The Kalman filter algorithm is used to estimate the transmitted torque. The gap events are identified by combining hysteresis comparison and torque slope auxiliary criteria. The dynamic gap angle is calculated by the Kalman filter residual correction algorithm, and the gap model is corrected online by the adaptive update algorithm to achieve feedforward compensation and dynamically track the gap drift caused by wear and temperature changes.

Benefits of technology

It achieves dynamic gap identification and adaptive compensation without the need for additional hardware installation, reducing deployment and maintenance costs, ensuring accurate compensation and motion stability throughout the entire life cycle, and reducing torque impact and joint vibration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123156571A_ABST
    Figure CN123156571A_ABST
Patent Text Reader

Abstract

This invention discloses a method for dynamic gap identification and adaptive compensation of a humanoid robot joint module, relating to the field of humanoid robot control technology. The method includes: S101, signal acquisition: acquiring measured data from the reducer input; S102, gap event detection: monitoring changes in commutation commands or torque as trigger conditions for gap detection; S103, dynamic gap value identification: determining the dynamic gap angle based on the trigger conditions; S104, adaptive gap model update: updating and correcting the adaptive gap model based on the dynamic gap and operating condition characteristics; S105, feedforward compensation injection: when a commutation trigger is detected again, obtaining the corresponding compensation angle from the online corrected gap model based on the current operating condition characteristics. This invention can effectively combine actual operating conditions and autonomously adjust the control transmission intermittent error compensation amount to achieve precise positioning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of robot control technology, specifically to a method for dynamic gap identification and adaptive compensation of joint modules in a humanoid robot. Background Technology

[0002] As the core carrier of embodied intelligence, robots' joint modules are the core execution units for achieving humanoid movement and fine manipulation. Essentially, they are miniature power assemblies integrating drive, deceleration, sensing, and control. The deceleration devices in joint modules inevitably have a certain amount of transmission backlash. This backlash can lead to a series of control problems in humanoid robot joint modules: when switching between forward and reverse rotation, the motion at the input end cannot be immediately transmitted to the output end, resulting in invalid travel, causing positioning lag and reversal errors, affecting the accuracy of joint repeatability. Especially in fine manipulation scenarios, even small backlash errors can lead to operational failure.

[0003] Common optimization methods include damping adjustment and backlash compensation. However, these error compensation methods have certain limitations and fail to take into account the characteristics and operating conditions of each type of joint module for error compensation. Summary of the Invention

[0004] Based on this, and considering various working conditions and technical deficiencies in compensation, this invention provides a method for dynamic gap identification and adaptive compensation of humanoid robot joint modules, specifically including the following steps:

[0005] S101, Signal Acquisition: Acquire the measured data at the input of the reducer, and acquire the measured torque T. meas Measured rotational speed ω meas Based on the Kalman filter algorithm, the transmitted torque T is estimated. trans ;

[0006] S102. Clearance Event Detection: Monitors changes in commutation commands or torque as trigger conditions for clearance detection; within a time window after triggering, the transmitted torque T is monitored. trans Perform hysteresis comparison to identify when it crosses a preset low torque threshold T. L and high torque threshold T H The time is determined as the start time t of the idle journey. start and contact recovery time t end Furthermore, by combining the torque slope auxiliary criterion, a dual criterion is applied to identify the idle distance;

[0007] S103. Dynamic gap value identification: Based on the triggering conditions, determine the dynamic gap angle. At the start time t of the idle journey start Until the contact recovery time t end Within the time interval, based on the measured rotational speed ωmeas and the transmitted torque T trans The dynamic gap angle is solved using the Kalman filter residual correction algorithm. ;

[0008] S104. Adaptive Clearance Model Update: Based on dynamic clearance and operating condition characteristics, the adaptive clearance model is updated and corrected; specifically, the dynamic clearance angle is... The operating condition characteristics, along with those from before or during the reversing phase, form a learning sample, which is then input into an adaptive update algorithm to correct the preset clearance model online. The operating condition characteristics include at least the measured torque T before the reversing phase. meas Statistical values ​​and transmitted torque T trans The value;

[0009] S105, Feedforward Compensation Injection: When a commutation trigger is detected again, the corresponding compensation angle is obtained from the online corrected gap model based on the current operating condition characteristics. After smoothing, it is superimposed on the position command to achieve adaptive feedforward compensation for transmission backlash.

[0010] Furthermore, the measured torque T meas Measured rotational speed ω meas The equivalent moment of inertia J at the input end is obtained by reading from the input end of the reducer. m ;

[0011] Input equivalent moment of inertia J m This includes the sum of the inertia of the motor rotor and the rotating parts at the input end of the reducer;

[0012] Calculate the transmitted torque T using the following formula. trans for:

[0013]

[0014] in The measured rotational speed ω meas The derivative with respect to time, i.e.: .

[0015] Furthermore, the hysteresis comparison employs Schmitt trigger logic: when the transmitted torque T... trans Decrease and fall below the low torque threshold T L When the torque T is transmitted, it is determined that the system has entered the idle state; trans Rise from idle state and exceed high torque threshold T H When the time comes, it is determined that the contact state has been restored;

[0016] Low torque threshold T L Set to be slightly higher than the total friction torque under no-load conditions.

[0017] High torque threshold TH Set to a value where a load torque is clearly established, and T H >T L .

[0018] Furthermore, the torque slope auxiliary criterion in S102: for the transmitted torque T trans Perform differentiation; if the value is near the point where the contact recovery state is determined, the differential value is... If the impact slope exceeds the preset threshold, it is confirmed as a valid contact event; otherwise, it is considered interference and the identification result is discarded.

[0019] Furthermore, the operating condition characteristics in S104 further include at least one of the following: average measured torque, average measured speed, motor temperature, and cumulative running time of the joint module over a period of time before switching.

[0020] Furthermore, the adaptive update algorithm in S104 is a recursive least squares method with a forgetting factor, used for online updating of linear or polynomial gap models with operating condition characteristics as input; the forgetting factor ranges from 0.9 to 0.999, and the linear or polynomial gap model is suitable for heavy-load nonlinear gap applications.

[0021] Furthermore, the gap model in S104 is a one-dimensional or multi-dimensional lookup table model with the measured torque (or operating condition characteristic quantity) as the abscissa; the adaptive update algorithm is an exponential moving average filter, which only updates the torque interval cell to which the current sample belongs: , of which 0 One-dimensional or multi-dimensional lookup table models are suitable for light-load, small-gap lookup table compensation applications.

[0022] Furthermore, the smoothing process in S105 generates an S-shaped curve trajectory with a steepness limit, or a first-order low-pass filter; compensation angle The sign is taken in the opposite direction to the direction of this reversal; when the measured speed ω meas When the speed exceeds 30% to 50% of the rated speed of the joint module, it is identified as the high-speed stage, and the smoothing process is performed using an S-shaped curve; otherwise, the smoothing process is performed using a first-order low-pass filter.

[0023] Furthermore, before S104, a confidence verification step is included: checking the dynamic gap angle identified this time. With the duration of the idle journey If the ratio is within the preset reasonable speed range, the sample is discarded.

[0024] Furthermore, a method for dynamic clearance identification and adaptive compensation of humanoid robot joint modules is provided, applied to joint modules with the ability to directly detect torque and rotational speed at the input end of the reducer. The system includes:

[0025] The signal acquisition module is used to acquire the measured torque T at the input end of the joint module in real time. meas Measured rotational speed ω meas Based on the Kalman filter algorithm, the transmitted torque T is estimated. trans ;

[0026] The gap event detection module is used to determine the idle start time and contact recovery time based on the hysteresis comparison between the commutation trigger and the measured torque;

[0027] The online identification module is used to obtain the dynamic gap angle in the idle interval based on the Kalman filter residual correction algorithm. ;

[0028] The adaptive model update module is used to update the model in order to ( Using operating condition characteristics as samples, the gap model is corrected online;

[0029] The feedforward compensation module is used to obtain the compensation angle from the gap model during commutation, and then inject the position command after smoothing.

[0030] Furthermore, a humanoid robot joint module includes a controller, a motor, a reducer, and a sensor integration mounted on the input end of the reducer; the sensor integration includes a torque sensor and a speed sensor, and is fixed to the input end of the reducer; the joint module output end has no external sensor elements.

[0031] Due to the adoption of the above technical solution, the beneficial effects of the present invention's method for dynamic gap identification and adaptive compensation of humanoid robot joint modules are as follows:

[0032] 1. This invention utilizes the torque and speed signals already present at the input end of the joint module, eliminating the need to install an encoder or torque sensor at the output end. It does not increase hardware cost, size, or wiring complexity, making it particularly suitable for highly integrated humanoid robot joint modules.

[0033] 2. This invention analyzes the transient waveform characteristics (disappearance, continuous zero, impact reconstruction) of the measured torque during the commutation process, automatically captures the gap event and calculates the dynamic gap value by integration. The entire identification process is completed online, without the need for pre-stop calibration, resulting in low deployment and maintenance costs.

[0034] 3. This invention uses the gap value identified each time as a learning sample and updates the compensation model online through adaptive algorithms such as exponential moving average or recursive least squares. This enables the model to automatically track the long-term drift and short-term fluctuation of the gap caused by wear and temperature changes, achieving accurate compensation throughout the entire life cycle and solving the problem of inaccuracy of fixed parameter compensation schemes.

[0035] 4. This invention uses an S-curve or low-pass filter to smooth the input position command of the compensation angle, thereby reducing the torque impact and joint vibration caused by step compensation, and ensuring the stability of the compensation process and the smoothness of the motion trajectory. Attached Figure Description

[0036] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings:

[0037] Figure 1 This is a logic block diagram of Embodiment 1 of the method for dynamic gap identification and adaptive compensation of joint modules of a humanoid robot according to the present invention.

[0038] Figure 2 This is a flowchart of an embodiment of the method for dynamic gap identification and adaptive compensation of a humanoid robot joint module according to the present invention.

[0039] Figure 3 This is a schematic diagram of the control flow of an embodiment of the dynamic gap identification and adaptive compensation method for a humanoid robot joint module according to the present invention.

[0040] Figure 4 This is a schematic diagram of a module in Embodiment 3 of the method for dynamic gap identification and adaptive compensation of a humanoid robot joint module according to the present invention.

[0041] Figure 5 This is a diagram showing the dynamic model of a joint module of a humanoid robot according to the present invention. Detailed Implementation

[0042] The present invention will now be described in further detail with reference to the accompanying drawings. It should be noted that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention. Example 1

[0043] This embodiment provides a method for dynamic gap identification and adaptive compensation of a humanoid robot joint module, applied to a humanoid robot joint module. The joint module includes a controller, a motor, a reducer, and a sensor integrated at the input end of the reducer. Figure 1 and Figure 2 This embodiment uses the complete compensation process of a single commutation process as an example for illustration, and its specific steps are as follows:

[0044] S101, Signal Acquisition and Preprocessing: The measured torque T at the input of the reducer is acquired in real time through the information acquisition module 1 built into the joint module at an adjustable acquisition frequency. meas Measured rotational speed ωmeas The acquisition period is T. s Its frequency is controlled between 5kHz and 20kHz; and based on the Kalman filter algorithm, the transmitted torque T is estimated. trans Among them, the measured torque T meas The polarity of the signal directly indicates the direction of torque transmission; a positive value represents positive torque transmission, and vice versa. Furthermore, the torque signal is obtained from a strain gauge torque sensor integrated into the sensor suite at the input of the reducer. Measured rotational speed ω meas The signal is acquired by an incremental encoder integrated into the sensor cluster at the input of the reducer. The joint module dynamics model is as follows: Figure 5 As shown.

[0045] J m J is the equivalent rotational inertia at the input end. e J is the moment of inertia of the motor rotor. t1 J t2 J t3 The moment of inertia of the reducer input, the middle of the reducer, and the output of the reducer; T meas T trans Let i1 be the measured torque at the input of the reducer, and i2 be the transmitted torque at the output of the reducer; i1 is the first-stage reduction ratio of the reducer, and i2 is the second-stage reduction ratio of the reducer. Based on the Kalman filter algorithm, the transmitted torque T is... trans The estimation process is as follows:

[0046] Joint module dynamics model:

[0047] The moment of inertia on the right side of the reducer input is converted to the equivalent moment of inertia J at the reducer input. m :

[0048] (1)

[0049] ① Dynamic equations of joint module transmission:

[0050] (2)

[0051] In the formula The measured rotational speed ω meas The derivative with respect to time, i.e.: .

[0052] Differentiate the dynamic equations of the joint module transmission:

[0053] (3)

[0054] ② Construct the Kalman filter state-space model:

[0055] Define the state variables, taking the state vector at discrete time k (k=0, 1, 2, ...):

[0056] (4)

[0057] in Let be the angular velocity at time k. The transmitted torque is to be estimated.

[0058] Based on equation (2) and assuming that the transmitted torque changes slowly, the state equation in the continuous domain is:

[0059] (5)

[0060] First-order Euler discretization is used, with a sampling period T. s, have to:

[0061] (6)

[0062] (7)

[0063] in , The noise is a process noise that follows a zero-mean Gaussian distribution with a covariance matrix of Q.

[0064] Write equations (6) and (7) in matrix form:

[0065] (8)

[0066] In the formula: , , ,

[0067] Process noise covariance matrix:

[0068]

[0069] Using only measured angular velocity meas,k As observed values:

[0070] (9)

[0071] in To observe noise, obey R is the observation noise covariance.

[0072] Observation matrix:

[0073] H=

[0074] ③ Kalman filter recursive formula:

[0075] The transmission torque estimation process based on Kalman filtering mainly includes a prediction process and a correction process, and can be divided into the following steps:

[0076] Initialization: Set the initial state estimates and initial covariance matrix:

[0077] , (10)

[0078] in For the noise variance of rotational speed measurement, The initial torque uncertainty variance.

[0079] Prediction: For times k = 0, 1, 2, ..., predict the state and covariance at the next time step using the current best estimate:

[0080] (11)

[0081] (12)

[0082] Update: New measurements obtained Then, the Kalman gain is calculated and the state estimate is corrected:

[0083] (13)

[0084] (14)

[0085] (15)

[0086] Output transmitted torque estimate:

[0087]

[0088] S102, Clearance Event Detection: The clearance event module 2 built into the joint module detects and judges the signal. When the joint module executes a steering command, the estimated transmitted torque T is analyzed. trans The transient characteristics are accurately captured, precisely identifying the two key moments of "idle start" and "contact recovery" of the transmission backlash. The specific process is as follows:

[0089] The controller continuously monitors two commutation trigger conditions: one is a change in the sign of the velocity direction command issued by the upper motion controller; the other is a change in the transmitted torque T. trans The direction of torque changes (from positive to negative, or vice versa). When either condition is met, a commutation event is determined to have occurred, and a time window is immediately initiated for fine-tuning. (Specific details can be combined with...) Figure 3 analyze.

[0090] Within the time window following the trigger, the transmitted torque Ttrans The hysteresis comparison algorithm is executed, where two torque thresholds are set: a low threshold T L and high threshold T H And T H >T L Among them, the low threshold T L It can be set to a value slightly higher than the motor's no-load friction torque; high threshold T H It can be set to a value where a clear load torque is established. When the transmitted torque T is detected... trans The load area drops and falls below the low threshold T. L When the transmission clearance enters an "unloaded state", the current time is marked as the start time of the unloaded state, denoted as t. start When the transmitted torque T is detected trans The load increases from an idle state and exceeds the high threshold T. H When the transmission clearance enters the "recovery contact" state, the current time is marked as the contact recovery time, denoted as t. end .

[0091] To improve the reliability of detecting the contact recovery time, this invention introduces torque slope auxiliary judgment, which is achieved by analyzing the transmitted torque T. trans By performing the time derivative, the torque change rate is obtained. If the hysteresis comparison determines that the contact recovery time is t... end When near the location, the torque change rate is then detected. Does the impact slope exceed a preset threshold? If it does, it is considered a valid contact event; otherwise, it is considered a false trigger caused by signal noise, external accidental disturbances, etc., and the identification result is discarded. The impact slope threshold is set to 3 to 5 times the maximum torque change rate during normal operation.

[0092] S103. Dynamic gap value identification: The relevant data after discrimination in the gap event module 2 is obtained through the online identification module 3 built into the joint module, and the dynamic gap angle is calculated. Specifically, this involves determining the start time t of the idle journey. start and contact recovery time t end Then, the measured rotational speed ω stored during that time period is extracted. meas Data sequence. This embodiment utilizes the Kalman filter algorithm to fuse the measured torque and measured speed signals, and suppresses interference from abnormal speed observations through a residual correction mechanism to obtain the dynamic clearance angle of this commutation process. The specific process is as follows:

[0093] ① Data extraction and preprocessing:

[0094] At the start time t of the idle journey start With contact recovery time t endAn interval is a sequence of sampled data of length N within the empty interval.

[0095] (16)

[0096] Where i=1 corresponds to t start At time i=N, t end At time t, the sampling period is Δt.

[0097] Calculate the net acceleration torque at each sampling point. :

[0098] (17)

[0099] In the formula, The equivalent frictional torque during the idle phase is obtained by calibrating the average torque value of the low-speed uniform segment offline.

[0100] ② Kalman filter initialization:

[0101] Constructing a state vector using the relative rotation angle and speed of the motor ,in With t start The position at that moment is the reference zero point.

[0102] Determine the initial state:

[0103]

[0104] Set the initial estimation error covariance matrix:

[0105]

[0106] Define the process noise covariance A and the normal observation noise covariance B:

[0107]

[0108] In the formula and These represent the variances of the position process noise and the speed process noise, respectively, reflecting the uncertainty of the dynamic model prediction. B is set based on the measurement variance of the speed sensor under normal operating conditions.

[0109] ③ Establish a state transition model:

[0110] Construct the state transition equation based on the rigid body rotation law:

[0111] (18)

[0112] (19)

[0113] Wherein, the state transition matrix C and the control matrix D are respectively:

[0114] ,

[0115] ④ Construct a rotational speed observation model:

[0116] Based on the measured rotational speed ω meas (i) For the observations, establish the observation equations:

[0117] (20)

[0118] In the formula, The noise from the rotational speed observation is denoted by F, and its statistical variance is F.

[0119] ⑤ Recursive filtering and residual correction:

[0120] For each sampling period k=1,2,…,N within the idle interval, perform the following operations:

[0121] State prediction; based on the state transition equations described above, the optimal state from the previous time step is estimated. and current net acceleration torque Calculate the state prediction value at the current time. and the predicted covariance matrix .

[0122] Calculate the speed residual; calculate the difference between the measured speed and the predicted speed, i.e., the speed residual:

[0123] (twenty one)

[0124] The speed residual It characterizes the degree of deviation between the observed speed at the current moment and the speed predicted based on the torque model.

[0125] Residual anomaly detection and observation noise adaptive adjustment; setting residual anomaly judgment threshold. The threshold The residual statistical distribution of the speed sensor under normal operating conditions is determined based on the residual statistical distribution, which is usually two to three times the standard deviation of the normal residual.

[0126] Based on the residual anomaly detection results, the observation noise covariance F at the current moment is adaptively adjusted. i ;

[0127] like The current rotational speed observation is determined to be normal, and the normal observation noise covariance F is used. i =F0;

[0128] like If an anomaly is detected in the current speed observation, the anomaly includes, but is not limited to, encoder pulse loss, speed jumps caused by low-speed crawl dead zones, or measurement glitches caused by electromagnetic interference; in this case, the observation noise covariance is increased. ,in This is the noise amplification factor, with a value ranging from 10 to 100.

[0129] Calculate the Kalman gain; based on the predicted covariance matrix and the currently acquired noise covariance, calculate the Kalman gain:

[0130] (twenty two)

[0131] when When the residual increases abnormally, the Kalman gain The corresponding reduction causes the correction weight of abnormal observations in state updates to be automatically reduced, based on the state prediction value of the torque model, thereby achieving adaptive suppression of observation anomalies.

[0132] By correcting the state prediction value using Kalman gain and rotational speed residual, the optimal state estimate for the current moment is obtained:

[0133] (twenty three)

[0134] Update the estimated error covariance matrix:

[0135] (twenty four)

[0136] In the formula, It is a 2x2 identity matrix.

[0137] ⑥ Output dynamic gap angle:

[0138] When the recursion is executed to =N (i.e., t) end (Time), estimated from the optimal state Extracting positional components This position component is the dynamic gap angle for this commutation process:

[0139]

[0140] S104. Adaptive gap model update: The dynamic gap angle is obtained by using the adaptive model update module 4 built into the joint module and identifying the online identification module 3. A learning sample is formed by combining the operating condition characteristics over a certain period before the changeover. After acquiring the learning sample, the specific interval into which the average measured torque (or multi-condition characteristic) of the current operating condition falls is first determined. An adaptive algorithm is then used to update the relationship between the gap and torque (or multi-condition characteristic) within this interval online. This invention provides two algorithms applicable to different operating conditions: one is the exponential moving average filter (EMA), used for gap models where the gap and torque (or multi-condition characteristic) have a one-dimensional or multi-dimensional lookup table relationship. The torque (or multi-condition characteristic) is divided into several intervals, and each cell directly stores a compensation angle value, the expression of which is: ,in The value can be obtained from testing each joint module product. This algorithm is suitable for light-load, small-clearance lookup table compensation scenarios. The second is the recursive least squares method with forgetting factor (FF-RLS), which is suitable for clearance models where the clearance and torque (or multi-condition characteristic quantities) have a curve or function relationship. The forgetting factor ranges from 0.9 to 0.999. This algorithm is used to update the original clearance model for heavy-load, nonlinear clearance scenarios.

[0141] S105, Feedforward Compensation Injection: Based on the gap model updated by the adaptive gap model update module 4, the feedforward compensation module 5 built into the joint module detects the next commutation command, obtains the current measured torque value (or multi-condition characteristic value), retrieves the updated gap model from the adaptive gap model update module 4, and calls the corresponding compensation angle. Low-impact response compensation is achieved through smoothing in feedforward compensation module 5, corresponding to the compensation angle. Add it to the rotation command, that is: actual target rotation angle = commanded rotation angle + corresponding compensation angle The sliding process involves generating an S-shaped curve trajectory with a steepness limit, or a first-order low-pass filter; the compensation angle... The sign is taken in the opposite direction to the direction of this reversal; while when the measured speed ω meas When the speed exceeds 30% to 50% of the rated speed of the joint module, it is identified as the high-speed stage, and the smoothing process uses an S-shaped curve; otherwise, the smoothing process uses a first-order low-pass filter.

[0142] In this example, two sets of experimental test data are provided, as shown below:

[0143] Harmonic miniature joint: T L =0.12 N·m, T H =0.8 N·m, impact slope threshold 15 N·m / s, forgetting factor 0.97, EMA coefficient =0.12, sampling frequency is 10kHz;

[0144] Planetary Heavy-Load Joint: T L=0.35 N·m, T H =2.2 N·m, impact slope threshold 32 N·m / s, forgetting factor 0.95, =0.15, sampling frequency is 15kHz. Example 2

[0145] This embodiment provides a temperature-variable coupling adaptive compensation method based on online temperature estimation of winding resistance. Based on Embodiment 1, this embodiment introduces a temperature-variable coupling compensation mechanism for online temperature estimation of motor winding resistance to solve the problem of the influence of the force-temperature composite field on the gap model.

[0146] Online motor temperature estimation:

[0147] In this embodiment, the motor temperature is estimated online using the winding resistance method, eliminating the need for an additional temperature sensor. The specific principle is as follows.

[0148] The copper wire windings of an electric motor have a definite positive temperature coefficient. Within a certain temperature range, the winding resistance R... d With winding temperature T emp Satisfies a linear relationship:

[0149] (25)

[0150] In the formula, For reference The nominal value of the winding resistance (set at the factory). This is the temperature coefficient of resistance of copper (a constant).

[0151] By utilizing the relationship between winding resistance and winding temperature, and based on the q-axis voltage equation, the winding temperature T can be deduced. emp The magnitude of the current. That is, the controller's quadrature axis current. When the amplitude exceeds the preset current threshold, the q-axis command voltage is output using vector control current loop. Measured quadrature-axis current and electric angular velocity Estimate the winding resistance online using the following formula:

[0152] (26)

[0153] In the formula, P is the number of pole pairs of the motor; is the flux linkage constant of the permanent magnet.

[0154] For the estimated A first-order low-pass filter is applied to remove transient disturbances, and the filter time constant is set according to the motor's thermal time constant. Then, the winding temperature T is calculated by using the relationship between winding resistance and winding temperature. emp That is:

[0155] (27)

[0156] Since the motor is the main heat source of the joint module, there is a stable heat transfer relationship between its winding temperature and the internal gear temperature of the reducer. Therefore, the winding temperature is used as the primary heat source. As operating condition correction parameters for the clearance model, torque-temperature multi-operating condition characteristic quantities are introduced. The clearance model is extended to a two-dimensional model with measured torque and motor temperature as dimensions. Based on the two adaptive clearance models in Example 1, this example differs in that:

[0157] For the lookup table-based clearance model, the first dimension is the measured torque, divided into no-load, light-load, medium-load, and heavy-load zones; the second dimension is the motor temperature, divided into cold-start, normal-temperature, and hot-start zones. Each two-dimensional grid point stores an independent compensation value. The dynamic clearance angle is obtained each time. Next, the current average torque and motor temperature are obtained, and the torque interval i and temperature interval j they fall into are determined. An exponential moving average filter is used to update only the values ​​at grid point (i, j):

[0158] (28)

[0159] For gap models of curves or functions, a polynomial model containing temperature correction terms and temperature-torque cross terms can be used. The coefficients of the model are updated globally online using a recursive least squares method with a forgetting factor, where the forgetting factor is between 0.95 and 0.999.

[0160] During subsequent commutation and feedforward compensation, the current measured torque and motor temperature are obtained, the corresponding values ​​are located in the gap model, and the compensation angle θ matching the current thermal state is obtained either directly or through bilinear interpolation. comp Position commands are injected after smoothing.

[0161] The above embodiments address the issue of the influence of the force-temperature composite field on the gap model, thereby reducing gap compensation errors. Example 3

[0162] This embodiment provides a dynamic gap identification and adaptive compensation system for a humanoid robot joint module, corresponding to the method described in Embodiment 1. For example... Figure 4 As shown, the system runs as a software module within the embedded controller of the joint module, including:

[0163] Signal acquisition module 1 is used to acquire the measured torque T at the input end of the joint module in real time. meas Measured rotational speed ω meas Based on the Kalman filter algorithm, the transmitted torque T is estimated.trans ;

[0164] The gap event detection module 2 is used to determine the idle start time and contact recovery time based on the hysteresis comparison between the commutation trigger and the measured torque;

[0165] Online identification module 3 is used to obtain the dynamic gap angle in the idle interval based on the Kalman filter residual correction algorithm. ;

[0166] Adaptive model update module 4, used for ( Using operating condition characteristics as samples, the gap model is corrected online;

[0167] Feedforward compensation module 5 is used to obtain the compensation angle from the gap model during commutation, and inject the position command after smoothing. Example 4

[0168] This embodiment provides a humanoid robot joint module, such as Figure 5 As shown, the system includes a controller, a motor, a reducer, and a sensor integration mounted on the input end of the reducer. The sensor integration includes a torque sensor and a speed sensor, and is fixed to the input end of the reducer. The joint module output end has no external sensor element. The controller includes a memory storing a computer program, which, when executed by a processor, implements the steps of the method as described in Embodiment 1.

Claims

1. A method for dynamic gap identification and adaptive compensation of joint modules in a humanoid robot, characterized in that, include: S101, Signal Acquisition: Acquire the measured data at the input of the reducer, and acquire the measured torque T. meas Measured rotational speed ω meas Based on the Kalman filter algorithm, the transmitted torque T is estimated. trans ; S102, Clearance Event Detection: Monitor changes in commutation commands or torque as trigger conditions for clearance detection; Within the time window following the triggering, the transmitted torque T trans Perform hysteresis comparison to identify when it crosses a preset low torque threshold T. L and high torque threshold T H The time is determined as the start time t of the empty journey. start and contact recovery time t end Furthermore, by combining the torque slope auxiliary criterion, a dual criterion is applied to identify the idle distance; S103. Dynamic gap value identification: Based on the triggering conditions, determine the dynamic gap angle. At the start time t of the idle journey start Until the contact recovery time t end Within the time interval, based on the measured rotational speed ω meas and the transmitted torque T trans The dynamic gap angle is solved using the Kalman filter residual correction algorithm. ; S104. Adaptive Clearance Model Update: Based on the dynamic clearance and operating condition characteristics, the adaptive clearance model is updated and corrected; specifically, the dynamic clearance angle is... The operating condition characteristics, along with those from before or during the reversing phase, form a learning sample, which is then input into an adaptive update algorithm to correct the preset gap model online. The operating condition characteristics include at least the measured torque T before the reversing phase. meas The statistical values ​​and the transmitted torque T trans The value; S105, Feedforward Compensation Injection: When a commutation trigger is detected again, the corresponding compensation angle is obtained from the online corrected gap model based on the current operating condition characteristics. After smoothing, it is superimposed on the position command to achieve adaptive feedforward compensation for transmission backlash.

2. The method according to claim 1, characterized in that, The measured torque T mentioned in S101 meas Measured rotational speed ω meas The equivalent moment of inertia J at the input end is obtained by reading from the input end of the reducer. m ; The equivalent rotational inertia J at the input end m This includes the sum of the inertia of the motor rotor and the rotating components at the input end of the reducer; The transmitted torque T is calculated using the following formula. trans for: ,in The measured rotational speed ω meas The derivative with respect to time, i.e.: .

3. The method according to claim 1, characterized in that, The hysteresis comparison in S102 employs Schmitt trigger logic: when the transmitted torque T trans It drops and falls below the low torque threshold T L When the transmitted torque T is at that time, it is determined that the idle state has been entered; trans The idle state rises and exceeds the high torque threshold T. H When the time comes, it is determined that the contact state has been restored; The low torque threshold T L Set to be slightly higher than the total friction torque under no-load conditions; The high torque threshold T H Set to a value where a load torque is clearly established, and T H >T L .

4. The method according to claim 1 or 3, characterized in that, The torque slope auxiliary criterion described in S102: for the transmitted torque T trans Perform differentiation; if the value is near the contact recovery state as determined, the differential value... If the impact slope exceeds the preset threshold, it is confirmed as a valid contact event; otherwise, it is considered interference and the identification result is discarded.

5. The method according to claim 1, characterized in that, The operating condition characteristic quantities in S104 further include at least one of the following: average measured torque, average measured speed, motor temperature, and cumulative running time of the joint module over a period of time before switching.

6. The method according to claim 1 or 5, characterized in that, The adaptive update algorithm in S104 is a recursive least squares method with a forgetting factor, used to update the linear or polynomial gap model with the operating condition features as input online; the forgetting factor ranges from 0.9 to 0.999, and the linear or polynomial gap model is suitable for heavy-load nonlinear gap scenarios.

7. The method according to claim 1 or 5, characterized in that, The gap model described in S104 is a one-dimensional or multi-dimensional lookup table model with the measured torque (or the operating condition characteristic quantity) as the abscissa; the adaptive update algorithm is an exponential moving average filter, which only updates the interval cell to which the current sample belongs: , of which 0 The one-dimensional or multi-dimensional lookup table model is suitable for light-load, small-gap lookup table compensation applications.

8. The method according to claim 1, characterized in that, The smoothing process described in S105 is either the generation of an S-shaped curve trajectory with a steepness limit, or a first-order low-pass filter; the compensation angle... The sign is taken in the opposite direction to the current reversal direction; when the measured rotational speed ω meas When the speed exceeds 30% to 50% of the rated speed of the joint module, it is determined to be a high-speed stage, and the smoothing process is performed using the S-shaped curve; otherwise, the smoothing process is performed using the first-order low-pass filter.

9. The method according to claim 1, characterized in that, S104 is preceded by a confidence verification step: checking the identified dynamic gap angle. With the duration of the idle journey If the ratio is within the preset reasonable speed range, the sample is discarded.

10. A method for dynamic gap identification and adaptive compensation of joint modules in a humanoid robot, characterized in that, The system, applied to a joint module capable of directly detecting the input torque and speed of the reducer, includes: The signal acquisition module is used to acquire the measured torque T at the input end of the joint module in real time. meas Measured rotational speed ω meas Based on the Kalman filter algorithm, the transmitted torque T is estimated. trans ; The gap event detection module is used to determine the idle start time and contact recovery time based on the hysteresis comparison between the commutation trigger and the measured torque; The online identification module is used to obtain the dynamic gap angle in the idle interval based on the Kalman filter residual correction algorithm. ; The adaptive model update module is used to update the model in order to ( Using operating condition characteristics as samples, the gap model is corrected online; The feedforward compensation module is used to obtain the compensation angle from the gap model during commutation, and then inject the position command after smoothing.

11. A humanoid robot joint module, characterized in that, The device includes a controller, a motor, a reducer, and a sensor integrated at the input end of the reducer; the controller performs the method as described in any one of claims 1 to 9; the sensor integrated includes a torque sensor and a speed sensor, and is fixed at the input end of the reducer; the joint module output end has no external sensor element.