Robot testing strategy adjustment method and system based on environment coupling error compensation

By employing an environmental coupling error compensation testing strategy, the robot pose is corrected in real time and the testing strategy is dynamically adjusted. This solves the problems of environmental interference affecting measurement accuracy and lack of real-time adjustment, thus achieving high efficiency and accuracy in robot testing.

CN122851718BActive Publication Date: 2026-11-24NANJING INST OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611354957.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-09-03
Publication Date
2026-11-24
Estimated Expiration
2046-09-03

AI Technical Summary

Technical Problem

Existing robot testing methods suffer from environmental interference affecting measurement accuracy, and lack real-time prediction and closed-loop adjustment capabilities, resulting in low reliability and efficiency of test data.

Method used

A test strategy based on environmental coupling error compensation is adopted. By collecting environmental parameters and robot body state data, the pose is corrected in real time using a digital twin error prediction model. Dynamic error compensation is performed by combining a rigid-flexible coupling dynamic model and a long short-term memory network. The test strategy is dynamically adjusted according to the comprehensive performance index.

Benefits of technology

It effectively eliminates environmental interference errors, ensuring the accuracy and reliability of robot test data, improving testing efficiency and robustness, and adapting to different robot models and testing scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122851718B_ABST
    Figure CN122851718B_ABST
Patent Text Reader

Abstract

This invention discloses a method and system for adjusting robot testing strategies based on environmental coupling error compensation, belonging to the field of robot testing technology. The method collects environmental parameters and the robot's original pose during testing; corrects the original pose based on the environmental parameters to obtain the measured pose; drives the robot to move along a preset trajectory; reads the controller status and vibration signals; inputs them into a digital twin error prediction model; and outputs the predicted pose deviation and uncertainty. Weights are determined based on the uncertainty and measurement signal quality; the predicted and measured deviations are fused to obtain a comprehensive pose deviation, and a comprehensive performance index is calculated. Based on the comprehensive performance index, a preset pass / fail threshold library, and a strategy library, a graded adjustment action is triggered, and the rule weights are updated. A pass / fail report is output after the test. This invention achieves online environmental error compensation and closed-loop adaptive adjustment of the testing strategy, significantly improving the accuracy and intelligence level of robot dynamic performance testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of robot testing technology, and specifically to a method and system for adjusting robot testing strategies based on environmental coupling error compensation. Background Technology

[0002] With the development of industrial automation and intelligent manufacturing, industrial robots are widely used in various fields such as material handling, welding, assembly, and painting. The robot's pose accuracy, dynamic performance, and operational reliability directly affect processing quality and production efficiency. Therefore, comprehensive and accurate performance testing is required for robots in scenarios such as factory inspection, periodic retesting, or fault diagnosis.

[0003] Currently, the following problems exist in the testing process: First, environmental interference affects the measurement accuracy. At present, spatial pose measurement devices such as laser trackers are usually used to directly measure the pose of the robot end effector. However, environmental factors such as temperature changes and air pressure fluctuations at the test site can cause laser wavelength drift and thermal deformation of the measurement structure, resulting in significant environmental coupling errors mixed into the measurement results. Existing methods often ignore such real-time environmental interference or only use simple fixed parameter compensation, which cannot achieve online accurate correction of environmental errors under dynamically changing field conditions, thus affecting the reliability of test data.

[0004] Secondly, the testing process relies on offline analysis and lacks real-time prediction and closed-loop adjustment capabilities. Existing technologies typically complete all test movements according to a preset program first, and then export the collected data for offline processing and qualification judgment. This approach not only has a long testing cycle and delayed feedback, but is also detrimental to the subsequent operation of the robot. Summary of the Invention

[0005] The purpose of this invention is to provide a robot testing strategy adjustment method and system based on environmental coupling error compensation, in order to solve the technical problems in existing robot testing, where changes in environmental parameters are coupled with dynamic factors such as the flexibility and vibration of the robot body structure, resulting in a decrease in the accuracy of end-effector pose measurement, and the lack of online compensation and adaptive adjustment capabilities for testing strategies.

[0006] To achieve the above objectives, the technical solution provided by this invention is: a robot testing strategy adjustment method based on environmental coupling error compensation, comprising the following steps: S1: Collect environmental parameters at the robot test site, send motion control commands to the robot controller, and drive the robot to perform test motions according to the preset test trajectory; obtain the original pose through the spatial pose measurement device, correct the original pose in real time according to the environmental parameters, and obtain the measured pose after environmental compensation; read internal state data through the controller communication interface, and collect structural vibration signals through vibration sensors arranged on the surface of the robot body. S2: Input the internal state data and structural vibration signal into the digital twin error prediction model, and output the predicted pose deviation and prediction uncertainty; the digital twin error prediction model includes a rigid-flexible coupling dynamic model and an error compensation network, and the predicted pose deviation is obtained by superimposing the theoretical dynamic deformation output by the rigid-flexible coupling dynamic model with the residual dynamic error output by the error compensation network. S3: Determine the fusion weights based on the prediction uncertainty and the real-time signal quality of the spatial pose measurement device; normalize and weight the predicted pose deviation and the measured pose deviation according to the fusion weights to obtain the comprehensive pose deviation; calculate the comprehensive performance index based on the comprehensive pose deviation; the measured pose deviation is the difference between the measured pose after environmental compensation and the target pose. S4: Trigger test strategy adjustment actions based on comprehensive performance indicators, a preset pass / fail threshold library, and a test strategy library. The test strategy library contains graded adjustment rules corresponding to different performance margin ranges. After triggering, reissue motion control commands to continue executing test motion. Update the corresponding rule weights according to the adjustment effect. Use the triggered adjustment actions and the comprehensive performance indicators before and after the adjustment as associated samples to train the test strategy library. S5: After the test is completed, the comprehensive performance indicators are judged as qualified according to the aforementioned qualification threshold library, and a test report is output. To optimize the above technical solution, specific measures also include: In step S1, the spatial pose measurement device is an absolute range laser tracker, and a reflective ball target is fixed at the end of the robot. The laser tracker emits a laser beam to the target and receives the reflected laser beam. The slant distance is obtained through the phase difference. Combined with the readings of the two angle encoders of the laser tracker, the original three-dimensional position data of the target in the tracker coordinate system is calculated. The end pose is obtained with visual assistance to form an original pose containing six degrees of freedom. The environmental parameters of the robot test site include ambient temperature and air pressure.

[0007] Further, in step S1, the step of correcting the original pose based on environmental parameters to obtain the environmentally compensated measured pose specifically involves: using the real-time collected ambient temperature and air pressure values, calculating the current air refractive index based on the Edren refractive index correction formula, and compensating the laser wavelength according to the refractive index to correct the ranging error in the original pose; using the real-time temperature value and the material thermal expansion coefficient, calculating the thermal deformation offset of the target mounting base and robot linkage, and superimposing this offset onto the wavelength-compensated pose data to obtain the environmentally compensated measured pose.

[0008] In step S2, the rigid-flexible coupled dynamic model receives joint position commands from the robot controller and the difference between the measured torque and the dynamic feedforward torque of each joint, and calculates the theoretical dynamic deformation using the modal superposition method. The error compensation network adopts a long short-time memory network, whose input features include the theoretical dynamic deformation, the joint motor current following error extracted from the internal state data, and the characteristic frequency band amplitude extracted after performing a fast Fourier transform on the structural vibration signal, and outputs the residual dynamic error. The long short-time memory network synchronously outputs the prediction uncertainty during inference.

[0009] Furthermore, the error compensation network's processing of structural vibration signals also includes abnormal vibration mode determination: The structural modal parameters of the robot under test are obtained through finite element modal analysis, and the characteristic frequency bands related to structural resonance are determined. The mode vector is constructed from the baseline vibration level of each characteristic frequency band. During real-time testing, the extracted frequency band amplitude vector and the mode vector are matched for similarity. The deviation of the amplitude of each characteristic frequency band from its baseline vibration level is considered. When the distribution pattern of the frequency band amplitude vector and the amplitude level of a single characteristic frequency band deviate from the baseline state, an abnormal vibration mode is determined. When an abnormal vibration mode is determined, the contribution of the characteristic frequency band amplitude that deviates from the baseline state to the input features is reduced, and the current target pose is retested. The environmentally compensated measured pose obtained from the retest is used in the weighted fusion of step S3.

[0010] In step S3, the comprehensive performance index includes dynamic pose accuracy and dynamic pose repeatability. The dynamic pose accuracy is obtained by calculating the Euclidean norm of the mean of the position deviation components of the comprehensive pose deviation obtained by multiple measurements at the same target pose. The dynamic pose repeatability is obtained by calculating the standard deviation of each position deviation component and each attitude deviation component respectively, and taking the maximum value of the standard deviation of each component.

[0011] Further, in step S4, the triggering of the test strategy adjustment action based on comprehensive performance indicators, a preset pass / fail threshold library, and a test strategy library specifically includes: Call the pass / fail threshold library to obtain the pose accuracy tolerance threshold and pose repeatability tolerance threshold, calculate the accuracy margin ratio of dynamic pose accuracy to pose accuracy tolerance threshold and the repeatability margin ratio of dynamic pose repeatability to pose repeatability tolerance threshold respectively, and obtain the rate of change of the accuracy margin ratio within the time window. Based on the performance margin range of the accuracy margin ratio and repeatability margin ratio, as well as the sign of the rate of change, the corresponding graded adjustment rules are matched to trigger speed-up optimization, speed-down fine-tuning detection, failure judgment and test termination, or maintenance of the current test configuration. The effective condition of each graded adjustment rule includes the minimum cooldown time interval between two adjacent similar test strategy adjustment actions. The graded adjustment rule with the lowest weight after multiple updates is removed.

[0012] Furthermore, the test strategy library is constructed and operates as follows: Before the test strategy library is used for the first time, it is initialized and constructed, including: collecting historical test data of different robot models from factory testing to use, extracting related samples of the comprehensive performance index before adjustment, the triggering action for adjustment, and the change of comprehensive performance index after adjustment to form a sample library; performing cluster analysis on the related samples to identify typical degradation patterns and their corresponding effective adjustment strategies to form an initial rule set; supplementing the recommended values ​​of abnormal vibration amplitude safety threshold and warning interval with expert experience, and converting each rule into an event-condition-action triplet structure; adding applicable condition tags to each rule, including robot model identifier, joint structure type, rated load range and the test standard number on which it is based, and establishing a multi-level index table to realize automatic filtering and loading of rules according to robot model and test standard; After completing all target poses of the test trajectory and outputting the test report each time, the weight of each rule triggered in this test is updated according to its adjustment effect: the adjustment effect is determined by the change in the dynamic pose accuracy at the same target pose after adjustment relative to the amount before adjustment. If the accuracy is improved, the weight of the corresponding rule is increased; if the accuracy is not improved or deteriorated, the weight of the corresponding rule is decreased. Rules whose weights are lower than the preset elimination weight after the update are removed.

[0013] Furthermore, in step S5, the test report is a three-dimensional visualization test report, which includes a dynamic characteristic waterfall plot, a comparison curve before and after environmental compensation, and a calibration convergence curve.

[0014] As another important technical solution, the present invention also provides a robot testing strategy adjustment system based on environmental coupling error compensation, which implements the robot testing strategy adjustment method based on environmental coupling error compensation as described above, including: The environmental pose compensation module is used to collect environmental parameters at the robot test site, send motion control commands to the robot controller, and drive the robot to perform test motions according to the preset test trajectory; it obtains the original pose through a spatial pose measurement device, corrects the original pose in real time according to environmental parameters, and obtains the measured pose after environmental compensation; it reads internal state data through the controller communication interface and collects structural vibration signals through vibration sensors arranged on the surface of the robot body. The dynamic error prediction module is used to input internal state data and structural vibration signals into the digital twin error prediction model and output the predicted pose deviation and prediction uncertainty. The digital twin error prediction model includes a rigid-flexible coupled dynamic model and an error compensation network. The predicted pose deviation is obtained by superimposing the theoretical dynamic deformation output by the rigid-flexible coupled dynamic model with the residual dynamic error output by the error compensation network. The fusion deviation calculation module is used to determine the fusion weight based on the prediction uncertainty and the real-time signal quality of the spatial pose measurement device, and to normalize and weight the predicted pose deviation and the measured pose deviation according to the fusion weight to obtain the comprehensive pose deviation; the comprehensive performance index is calculated based on the comprehensive pose deviation; the measured pose deviation is the difference between the measured pose after environmental compensation and the target pose; The strategy triggering adjustment module is used to trigger test strategy adjustment actions based on comprehensive performance indicators, a preset pass / fail threshold library, and a test strategy library. The test strategy library contains graded adjustment rules corresponding to different performance margin ranges. After triggering, motion control commands are reissued to continue executing test motion. The corresponding rule weights are updated according to the adjustment effect. The triggered adjustment actions and the comprehensive performance indicators before and after the adjustment are used as correlation samples to train the test strategy library. The standard pass / fail judgment module is used to judge the overall performance index as pass / fail based on the pass / fail judgment threshold library after the test exercise is completed, and output a test report.

[0015] The present invention also proposes an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, it implements a robot testing strategy adjustment method based on environmental coupling error compensation as described above.

[0016] The present invention also proposes a computer-readable storage medium storing a computer program that causes a computer to execute a robot testing strategy adjustment method based on environmental coupling error compensation as described above.

[0017] Compared with the prior art, the beneficial effects of the present invention are: This invention uses the Edren formula to calculate the air refractive index in real time to dynamically compensate for the laser wavelength. At the same time, it combines the thermal expansion coefficient of the material to correct the thermal deformation of the target base and connecting rod. This overcomes the shortcomings of traditional fixed parameter compensation methods that cannot adapt to dynamic changes in the field environment. It effectively eliminates the ranging error and structural thermal deformation error introduced by temperature and air pressure fluctuations. This ensures that the end pose measured by the laser tracker truly reflects the robot's performance rather than environmental coupling interference, thus guaranteeing the accuracy and reliability of the test data from the source.

[0018] This invention organically combines a rigid-flexible coupled dynamic model with a long short-term memory network: the former calculates low-frequency quasi-static structural deformation based on joint torque and position commands using modal superposition, while the latter uses current following error and frequency domain characteristics of vibration signals to compensate for high-frequency unmodeled dynamics. The two work together to achieve full-band coverage and real-time prediction of the dynamic pose deviation of the robot end effector, overcoming the shortcomings of insufficient accuracy of pure physical models and poor generalization of pure data models.

[0019] This invention dynamically determines the fusion weights based on the real-time signal quality of the spatial pose measurement device and the prediction uncertainty of the long short-term memory network output. When the measurement signal is blocked or interfered with by noise, the measurement weights are reduced. When the input conditions deviate from the distribution of the training data, the prediction uncertainty increases and the prediction weights are reduced, so that the overall pose deviation always tends to the one with higher credibility, effectively improving the robustness and reliability of performance index evaluation under complex field conditions.

[0020] This invention combines the ratio of dynamic pose accuracy to tolerance threshold and its changing trend, divides different performance margin ranges, and provides corresponding graded adjustment actions such as speed-up optimization and speed-down fine detection. It can actively speed up to improve test efficiency when performance is sufficient, and slow down to encrypt sampling when performance approaches the limit to accurately diagnose the degradation trend. It also has a limit line to directly determine non-compliance and stop the test, which greatly improves test efficiency and safety while ensuring test quality.

[0021] This invention scores the effectiveness of the triggered adjustment actions after each test, dynamically updates the rule weights and eliminates invalid rules, and feeds new samples back to the sample library for subsequent retraining, so that the test strategy library can continuously evolve in long-term application and has good adaptability to different robot models and diverse test scenarios. Attached Figure Description

[0022] Figure 1 This is a flowchart of the method of the present invention.

[0023] Figure 2 This is a flowchart of the digital twin error prediction model in an embodiment of the present invention.

[0024] Figure 3 This is a flowchart of the adaptive adjustment logic for the test strategy in an embodiment of the present invention. Detailed Implementation

[0025] The present invention will be further described in detail below through specific embodiments, but it should not be construed as limiting the scope of the subject matter of the present invention to the following embodiments. All technologies implemented based on the above content of the present invention fall within the scope of the present invention.

[0026] This invention provides a method for adjusting robot testing strategies based on environmental coupling error compensation, comprising the following steps: S1: Collect environmental parameters at the robot test site, send motion control commands to the robot controller, and drive the robot to perform test motions according to the preset test trajectory; obtain the original pose through the spatial pose measurement device, correct the original pose in real time according to the environmental parameters, and obtain the measured pose after environmental compensation; read internal state data through the controller communication interface, and collect structural vibration signals through vibration sensors arranged on the surface of the robot body. The environmental parameters of the robot test site are collected in real time by an environmental sensor array. The environmental parameters of the robot test site include ambient temperature and air pressure. The spatial pose measurement device is an absolute range laser tracker, and a reflective ball target is fixed at the end of the robot. The laser tracker emits a laser beam to the target and receives the reflected laser. It obtains the slant distance through the phase difference. Combined with the readings of the two angle encoders of the laser tracker itself, it calculates the original three-dimensional position data of the target in the coordinate system of the laser tracker. The end pose is obtained with visual assistance, forming the original pose containing six degrees of freedom.

[0027] In some implementations, an attitude measurement component is installed at the robot's end effector. The attitude measurement component is a six-degree-of-freedom probe that integrates a tilt sensor and a visual marker. The laser tracker images the visual marker on the attitude measurement component while measuring distance, and calculates the rotation angle of the end effector around the three coordinate axes of the base coordinate system to obtain the end effector attitude. The end effector attitude is combined with the original three-dimensional position data to form the original pose containing six degrees of freedom. It should be noted that this attitude measurement method is the prior art of the six-degree-of-freedom measurement accessory of the laser tracker. Only the implementation method of this application is described here. Based on environmental parameters, the three-dimensional position data in the original pose are analyzed. (mm) is corrected to obtain the measured pose after environmental compensation. Specifically, the real-time collected temperature and air pressure values ​​are input into the wavelength compensation model based on the Edren refractive index correction formula to calculate the current air refractive index. : ; in, This is a constant value representing the refractive index of air under standard conditions (0℃, 101325Pa) minus 1. It is a dimensionless quantity, and its value is related to the laser wavelength, corresponding to a 633nm laser. Take 2.765×10 4; The ambient temperature is collected in real time, in degrees Celsius (°C). The ambient air pressure is collected in real time, in Pa. Standard atmospheric pressure The standard thermodynamic temperature.

[0028] In some implementations, the humidity at the test site is maintained relatively stable by an air conditioning system, and the refractive index change introduced by the humidity term can be ignored; the dispersion term has been processed by the multi-wavelength dispersion compensation built into the laser tracker, so only the temperature and air pressure terms are retained to meet the accuracy requirements of robot pose testing, and therefore the simplified Edren formula is adopted.

[0029] The actual laser wavelength in the current environment is calculated based on the ratio of the nominal wavelength of the laser in a vacuum to the refractive index of air in the current environment. The original pose measurement value is then corrected using the actual laser wavelength. ; in, The pose measurement value (mm) after the first correction; The nominal wavelength of the laser in vacuum (nm); The actual wavelength of the laser (nm).

[0030] Using real-time temperature values ​​and the coefficient of thermal expansion of materials, the thermal deformation offset of the target mounting base and robot linkage is calculated. : ; in, For components at reference temperature The nominal length at (e.g., 20℃) is the coefficient of linear expansion of the material.

[0031] The thermal deformation correction vector is formed by each offset component. The position data after the first correction is added to the corresponding component of the thermal deformation correction vector and combined with the original attitude data to obtain the measured pose after environmental compensation.

[0032] The test management platform retrieves the corresponding test points and trajectory planning rules from the standard library and the kinematic parameters, joint limits, and controller communication interfaces of the robot model from the robot model library, based on the selected test standard and the robot model model under test. It automatically plans all target poses and test trajectories that meet the standard requirements. Through inverse kinematics calculation, singularity avoidance, and path optimization, it compiles and generates an initial test motion program adapted to the robot controller. The test motion program is then converted into a sequence of motion control instructions and sent to the robot controller. The motion control instructions include joint position instructions and velocity instructions for each joint. Based on these instructions, the robot controller drives the robot to move to each target pose according to the preset test trajectory to perform the test motion.

[0033] In some implementations, the test management platform is a software system deployed on a host industrial control computer. It is responsible for test task scheduling, data synchronization and acquisition, digital twin error prediction model inference, fusion deviation calculation, test strategy triggering decisions, and test report generation. It is the main execution entity for steps S1-S5. The test management platform has a built-in standard library, robot model library, and a pre-loaded pass / fail threshold library matching the current robot model and test standard. The standard library stores the number and distribution of test points, test trajectory types, number of cyclic tests, and sampling requirements specified in various robot performance test standards (such as GB / T 12642, ISO 9283), indexed by standard number. The robot model library stores the kinematic parameters, joint limits, rated speed and rated load, and controller communication protocols of different robot models, indexed by robot model identifier. The pass / fail threshold library stores the pose accuracy tolerance threshold and pose repeatability tolerance threshold corresponding to different robot models and different test standards. The standard library specifies how to test, and the pass / fail threshold library specifies how to determine pass / fail; the two are independent and indexed separately.

[0034] Inverse kinematics is used to convert the target pose into the joint positions of each joint. Singularity avoidance is used to avoid configurations with divergent joint velocities in trajectory planning to avoid stopping the test midway. Path optimization is used to smoothly connect each target pose while satisfying joint constraint. After the above processing, an initial test motion program adapted to the robot controller is generated and converted into a sequence of motion control instructions to be sent to the robot controller.

[0035] The internal state data consists of servo operation data periodically output by the robot controller through the communication interface, including joint position commands for each joint, measured torque for each joint, dynamic feedforward torque, and motor current following error. The measured torque for each joint is measured by a joint torque sensor or calculated by the robot controller based on the motor current of each joint. The dynamic feedforward torque is the compensation torque calculated and issued by the robot controller's internal dynamic compensation module to compensate for gravity and inertial forces. The motor current following error is the difference between the commanded current and the actual current. The structural vibration signal is collected by triaxial accelerometers located on the robot's wrist and elbow. The internal state data and structural vibration signal are timestamped based on the same clock source during acquisition, aligned according to the timestamps to form a synchronized data stream, and then input into step S2.

[0036] S2: Input the internal state data and structural vibration signal into the digital twin error prediction model, and output the predicted pose deviation and prediction uncertainty; the digital twin error prediction model includes a rigid-flexible coupled dynamic model and an error compensation network. The theoretical dynamic deformation output by the rigid-flexible coupled dynamic model is superimposed with the residual dynamic error output by the error compensation network to obtain the predicted pose deviation, such as... Figure 2 As shown; In some implementations, the rigid-flexible coupling dynamic model is established and solved as follows: each link of the robot is treated as a flexible body, and each joint is treated as a torsional spring-damped unit, thus establishing a rigid-flexible coupling dynamic model; during the solution, the nominal motion of the robot is determined by the joint position command in the motion control command, and the rigid-flexible coupling dynamic model is driven by the net torque of each joint. The net torque is the difference between the measured torque of each joint and the dynamic feedforward torque; since the dynamic feedforward torque is a torque component that has been pre-issued by the robot controller to compensate for gravity and inertial forces, and this component is already included in the measured torque of each joint, direct input would cause the excitation of flexible deformation to be repeatedly calculated. The difference between the two is taken to obtain the net excitation that actually causes structural deformation.

[0037] Modal truncation is performed on each flexible link. The first m natural frequencies are selected from low to high to participate in the response superposition, and higher-order modes are discarded. The value of m is chosen so that the m-th natural frequency is not lower than the upper limit frequency of vibration signal analysis. In this embodiment, m is taken as 4. The reason for modal truncation is that the low-order modes concentrate most of the energy of structural vibration, and the contribution of the high-order modes to the end deformation is negligible. Truncation can reduce the solution scale while ensuring the accuracy of calculation. Modal truncation and modal superposition are existing technologies in the field of structural dynamics. The elastic displacement of each link is obtained by superimposing the modal responses of each order according to the modal superposition method. The elastic displacement of each link is transferred and accumulated to the end of the robot through forward kinematics to obtain the theoretical dynamic deformation.

[0038] The theoretical dynamic deformation is the component caused by structural flexibility in the deviation of the robot end effector's output pose from the relatively rigid ideal model. It includes three position components and three attitude components. It corresponds to low-frequency quasi-static load deformation, which is the slow elastic deformation of the links and joints of the robot under the action of load gravity and motion inertia.

[0039] In some implementations, the error compensation network employs a Long Short-Term Memory (LSTM) network. The LSM network structure is as follows: the input feature vector is sequentially processed through two LSM network layers (each with 128 hidden units) to extract temporal features. The output is divided into two fully connected output heads: a mean output head outputs the six-dimensional residual dynamic error, and a variance output head outputs the corresponding six-dimensional predicted variance. The input feature vector is composed of the theoretical dynamic deformation (6-dimensional), the motor current following error of each joint extracted from internal state data (J-dimensional, where J is the number of joints), and the characteristic frequency band amplitude extracted after performing a Fast Fourier Transform on the structural vibration signal (B-dimensional, where B = number of characteristic frequency bands × number of accelerometers). The characteristic frequency band amplitude is obtained by performing a Fast Fourier Transform on the time-domain vibration acceleration signals collected by triaxial accelerometers installed on the robot's wrist and elbow, and extracting the frequency band amplitude corresponding to the modal frequencies of the robot's body structure.

[0040] Long Short-Term Memory (LSTM) networks output residual dynamic errors that rigid-flexible coupled dynamic models fail to capture, thus predicting pose deviations. The output is in the form of, where, These represent the predicted position deviations of the end effector along the X, Y, and Z axes of the robot's base coordinate system, respectively, in mm; These are the predicted attitude deviation angles of the end effector around the X, Y, and Z axes of the base coordinate system, respectively, in rad.

[0041] In some implementations, the training process of the digital twin error prediction model is as follows: Under different loads and operating speeds of the robot under test, the theoretical dynamic deformation, joint motor current following error, characteristic frequency band amplitude, and measured pose deviation after environmental compensation are recorded simultaneously from the rigid-flexible coupling dynamic model. The measured pose deviation after environmental compensation includes all end-effector deviations caused by structural flexible deformation, unmodeled dynamics, and residual disturbances, while the theoretical dynamic deformation only covers the component caused by structural flexibility. Therefore, the difference between the measured pose deviation after environmental compensation and the theoretical dynamic deformation at the same moment is used as the training label for the residual dynamic error to supervise the training of the long short-term memory network. Since both the theoretical dynamic deformation and the measured pose deviation are represented in the robot's base coordinate system, the residual dynamic error vector output by the long short-term memory network is also in the robot's base coordinate system and can be directly added to the theoretical dynamic deformation vector. After training, the network parameters are fixed for real-time inference.

[0042] In some implementations, the prediction uncertainty includes position prediction uncertainty and attitude prediction uncertainty, specifically: During training, the negative log-likelihood is used as the loss function, enabling the network to learn the fluctuation range of predicted values ​​under various input conditions while learning the error mapping. This loss function is an existing technique in the field of uncertainty estimation in deep learning. After training, the arithmetic square root of the mean variance of the position component prediction is used as the position prediction uncertainty, and the arithmetic square root of the mean variance of the attitude component prediction is used as the attitude prediction uncertainty (the units of the two are mm and rad, respectively, and they are used to determine the weights of the corresponding components in step S3 to avoid mixing different units). During inference, the prediction uncertainty is directly given by the variance output head, without the need to separately calculate the difference between the input features and the distribution of the training data.

[0043] The error compensation network's processing of structural vibration signals also includes abnormal vibration mode determination: establishing a finite element model of the robot under test and performing modal analysis to obtain the natural frequencies and mode shapes of each order; determining the corresponding characteristic frequency bands based on the half-power bandwidth of each mode, with each natural frequency as the center; running a preset test trajectory under the condition that the robot under test is brand new and in good condition, performing a fast Fourier transform on the collected structural vibration signals, extracting the amplitude within each characteristic frequency band, and taking the average of multiple runs as the baseline vibration level; and constructing mode vectors from the baseline vibration levels of each characteristic frequency band. Q .

[0044] During real-time testing, the structural vibration signal is also subjected to Fast Fourier Transform to extract the amplitude within each characteristic frequency band, thus constructing a frequency band amplitude vector. V ; Calculate the frequency band amplitude vector V With pattern vector Q The cosine similarity is calculated using existing technology, which will not be elaborated further. When the cosine similarity is not greater than the similarity limit, it is determined that the distribution pattern of the frequency band amplitude vector deviates from the baseline state. The similarity limit is the lower limit of the cosine similarity for determining whether the spectrum distribution pattern deviates from the baseline. The closer the cosine similarity is to 1, the more consistent the distribution pattern of the frequency band amplitude vector and the mode vector are. Therefore, the similarity limit is taken as a value close to 1, preferably 0.9~0.95. The specific value is determined based on the vibration data statistics of the preset test trajectory run multiple times in the new state of the robot under test.

[0045] In some implementations, the frequency band amplitude vector V The i Each component is denoted as That is, the first i Real-time amplitude of each characteristic frequency band; mode vector Q The i Each component is denoted as That is, the first i Baseline vibration levels in each characteristic frequency band; , The number of characteristic frequency bands; the amplitude deviation is calculated for each characteristic frequency band. That is, the first i The absolute value of the difference between the real-time amplitude of each characteristic frequency band and its baseline vibration level. When the amplitude deviation of any characteristic frequency band is greater than 2 to 3 times the standard deviation of the baseline vibration amplitude of that frequency band, the amplitude level of that characteristic frequency band is determined to be deviating from the baseline. Among them, the standard deviation of the baseline vibration amplitude is the standard deviation of the amplitude of the corresponding characteristic frequency band when the robot under test runs the preset test trajectory multiple times under the condition of being brand new and in good condition. It reflects the inherent fluctuation range of the characteristic frequency band under normal conditions. The reason for taking 2 to 3 times the standard deviation for the deviation limit is that the fluctuation of the frequency band amplitude under normal conditions falls within several times the standard deviation of the mean. Exceeding 2 to 3 times the standard deviation can be considered as deviating from normal fluctuation, which is a commonly used judgment limit in statistics. When both the deviation in distribution pattern and the deviation in amplitude level are met simultaneously, an abnormal vibration mode is determined to have occurred. The reason for using the simultaneous occurrence of both criteria as the judgment condition is that instantaneous impacts may cause a sudden increase in the amplitude of a single characteristic frequency band, but the overall spectral distribution pattern remains unchanged. Relying solely on the amplitude criterion would misjudge normal impacts as abnormal vibrations. On the other hand, chronic degradation such as structural loosening is first manifested as a slow change in the spectral distribution pattern.

[0046] In some implementations, when an abnormal vibration mode is determined to occur, the contribution of the characteristic frequency band amplitude deviating from the baseline state to the input features is reduced, and the current target pose is re-measured, with the environmentally compensated measured pose obtained from the re-measurement participating in the weighted fusion in step S3.

[0047] S3: Determine the fusion weights based on the prediction uncertainty and the real-time signal quality of the spatial pose measurement device; normalize and weight the predicted pose deviation and the measured pose deviation according to the fusion weights to obtain the comprehensive pose deviation; calculate the comprehensive performance index based on the comprehensive pose deviation; the measured pose deviation is the difference between the measured pose after environmental compensation and the target pose. In some implementations, real-time signal quality is a parameter characterizing the integrity of the returned measurement signal during the current measurement process of the spatial pose measurement device. It reflects the extent to which the measurement results are affected by on-site interference. The returned optical power level of the laser tracker and the measurement continuity are used as evaluation indicators, and the measurement reliability is used as the value. Real-time signal quality participates in the determination of fusion weight through measurement reliability, that is, the measurement weight is equal to the ratio of measurement reliability to the sum of measurement reliability and prediction reliability. The weights of position component and attitude component are determined independently according to this ratio rule. Among them, the prediction reliability is divided into position and attitude paths, which are quantified by position prediction uncertainty and attitude prediction uncertainty respectively. The measurement reliability is shared by both paths.

[0048] The measured pose deviation is the deviation between the measured pose after environmental compensation and the target pose planned by the test trajectory. Both the measured pose deviation and the predicted pose deviation are six-dimensional deviation vectors. The fusion weights include the predicted weights and the measured weights.

[0049] Composite pose deviation vector Calculate using the following formula: ; in, To predict weights, For measurement weights, prediction weights, and measurement weights, the results are determined independently for the position and attitude components: for the three position components, Take the prediction weights determined by the location prediction uncertainty. The measurement weights, determined by the real-time signal quality, are summed to 1; for the three attitude components, Take the prediction weights determined by the attitude prediction uncertainty. The measurement weights are determined by the real-time signal quality, and the sum of the two is 1. To synthesize the pose deviation vector, To predict pose deviation; The measured pose deviation is a six-dimensional deviation vector between the measured pose after environmental compensation and the target pose, with each component in units of 1 and 2. The corresponding components are consistent.

[0050] In some implementations, the fusion weight is determined based on the reliability of each of the two data streams: the fusion weight of any data stream is the proportion of its reliability to the sum of the reliability of the two data streams; wherein, the reliability of the predicted pose deviation stream is quantified by the prediction uncertainty, and the reliability of the measured pose deviation stream is quantified by the real-time signal quality; the real-time signal quality refers to the integrity of the measurement signal returned by the spatial pose measurement device during the current measurement process, reflecting the extent to which the measurement results are affected by on-site interference, and is embodied in the returned optical power level and measurement continuity; the reliability of the two data streams is quantified as follows: The spatial pose measurement device uses measurement reliability to quantify its real-time signal quality: the measurement reliability is the ratio of the laser tracker's returned optical power to its rated received power, ranging from 0 to 1; the measurement reliability is 1 when the returned optical power equals the rated received power, and the returned optical power is lower than the rated received power, indicating that the laser beam is affected by obstruction, smoke, or alignment deviation during transmission and reflection, and the measurement reliability decreases as the returned optical power decreases; when beam obstruction or a jump between two adjacent measurements occurs, the minimum measurement reliability within the current measurement window is taken, so that the measurement reliability does not recover with a single measurement during the duration of beam obstruction or jump; wherein, a jump is determined to have occurred when the difference between two adjacent measurement positions is greater than the maximum displacement of the robot at the current movement speed within one sampling period; the current measurement window is a time window containing the most recent M measurements with the current time as the endpoint, where M is a positive integer, and in this embodiment, M is 10, and the value of M is not less than the number of sampling periods required from the occurrence to the completion of the beam obstruction event; The digital twin error prediction model uses a prediction confidence metric to measure the confidence level of its prediction results: the prediction confidence is the ratio of the training baseline uncertainty to the sum of the training baseline uncertainty and the current prediction uncertainty, with a value ranging from 0 to 1; this ratio is 1 when the current prediction uncertainty is zero, and 0.5 when the current prediction uncertainty equals the training baseline uncertainty, and decreases as the current prediction uncertainty increases; the training baseline uncertainty is the median of the prediction uncertainties counted on the training sample set during the training phase, and is fixed after training is completed; both position prediction confidence and attitude prediction confidence are calculated using the above ratio method, and the training baseline uncertainty is also counted and fixed separately for position components and attitude components; In some implementations, the path for determining the measurement weights based on real-time signal quality is as follows: the return optical power level and measurement continuity determine the value of the measurement confidence; the ratio between the measurement confidence and the prediction confidence determines the allocation of the measurement weights and the prediction weights; the path for determining the prediction weights based on prediction uncertainty is similar; when the confidence of one data path decreases, the fusion weight of that path decreases synchronously, and the fusion weight of the other path increases accordingly; and the measurement weights and prediction weights determined in this way make the comprehensive pose deviation a convex combination of the two estimates without introducing additional scale offset.

[0051] The comprehensive performance indicators include dynamic pose accuracy and dynamic pose repeatability: At the same target pose along the planned test trajectory, N comprehensive pose deviation vectors are collected, where N is a positive integer, and the value is determined according to the number of cyclic tests specified in GB / T12642; the average value of each component of the N comprehensive pose deviation vectors is calculated to obtain the average deviation vector, and the Euclidean norm of the position component in the average deviation vector is used as the dynamic pose accuracy. : ; in, , and These are the mean values ​​of the positional deviation components; In some implementations, the standard deviation of each position component of the N comprehensive pose deviation vectors is calculated, and the maximum value of the standard deviation of each position component is taken as the dynamic pose repeatability at the target pose. The same target pose refers to the point where data is collected each time the robot repeatedly executes the test trajectory and reaches the same desired position and posture.

[0052] S4: Based on comprehensive performance indicators, a pre-loaded pass / fail threshold library matching the current robot model and test standards, and a preset test strategy library, a test strategy adjustment action is triggered. The test strategy library contains multiple graded adjustment rules corresponding to different performance margin ranges. After the test strategy adjustment action is triggered, motion control commands are reissued according to the adjusted test configuration, and the test motion continues to be executed.

[0053] In some implementations, such as Figure 3 As shown, before the test begins, a pass / fail threshold library matching the current robot model and test standard is retrieved and loaded into the test management platform. The pass / fail threshold library stores pose accuracy tolerance thresholds and pose repeatability tolerance thresholds corresponding to different robot models and test standards. Both the trigger judgment in step S4 and the pass / fail judgment in step S5 obtain the tolerance thresholds from the loaded pass / fail threshold library. When the trigger judgment is performed, the pose accuracy tolerance threshold is obtained. and pose repeatability tolerance threshold .

[0054] Calculate the dynamic pose accuracy and Accuracy margin ratio Dynamic pose repeatability and Repeatability margin ratio and obtain The rate of change within a preset time window; the rate of change is measured by the change within the time window. The value sequence is obtained by least-squares linear fitting, and a non-positive rate of change indicates no deterioration trend.

[0055] In some implementations, the time window is a time interval that ends at the current time and includes the results of the most recent target pose tests. In this embodiment, the test results of the most recent 10 target poses are taken.

[0056] The judgment logic for the tiered adjustment rule is as follows: when or When the tolerance limit ratio is reached or exceeded, the dynamic pose performance at the current target pose is judged to be out of tolerance, marked as unqualified, the unqualified event is recorded, and the test is terminated; when Within the ample range and with a non-positive rate of change, and When the robot is not in the warning zone, acceleration optimization is triggered, actively increasing the joint speed and acceleration of the robot's test movements to shorten the test cycle. Simultaneously, the acceleration process itself can reveal potential weaknesses of the robot under high dynamic loads. or When the system enters the warning range but does not exceed the tolerance, it triggers a speed reduction fine detection, actively reduces the joint speed and acceleration, and inserts supplementary sampling points on the current motion trajectory. Reducing the motion speed can reduce dynamic deformation and vibration noise, and inserting supplementary sampling points can obtain more dense performance data; in other states, the current test configuration is maintained.

[0057] Among them, when and If all conditions are within the maintenance range, or if any of the above triggering conditions are not met, the current test configuration is maintained; acceleration optimization is to increase the joint speed and acceleration of the robot's test motion; deceleration refinement detection is to reduce the joint speed and acceleration and insert supplementary sampling points on the current motion trajectory.

[0058] In some implementations, the tolerance limit ratio is set to 1.0, the sufficient range is a margin ratio greater than or equal to 0 and less than 0.5, the maintenance range is a margin ratio greater than or equal to 0.5 and less than 0.8, and the warning range is a margin ratio greater than or equal to 0.8 and less than the tolerance limit ratio. The above values ​​are preferred values ​​determined based on the statistical analysis of historical robot test data. In actual applications, they can be adjusted according to the robot model and test standard calibration.

[0059] It should be noted that the above values ​​are chosen because: when the margin ratio reaches 1.0, the measured performance reaches the tolerance limit, and the physical meaning is clear, so 1.0 is used as the out-of-tolerance judgment line; when the margin ratio is less than 0.5, the measured performance is less than half of the tolerance, and the additional dynamic deformation and vibration introduced by speeding up are insufficient to make the test results approach the limit value, so it is used as a sufficient boundary to allow for speed-up optimization; when the margin ratio exceeds 0.8, the remaining margin is less than 20%, and after taking into account the measurement uncertainty and the fluctuation between successive tests, continuing to maintain the original speed may exceed the tolerance limit in the current test cycle, so 0.8 is used as the warning boundary to reserve a buffer for speed-down and refined testing.

[0060] In some implementations, the effective condition for each graded adjustment rule includes the minimum cooling time interval between two adjacent adjustment actions of the same type of test strategy. The minimum cooling time interval is no less than the sum of the motion transition time of the corresponding adjustment action and the time of a complete sampling cycle after the adjustment. The motion transition time is the time required for the joint velocity and acceleration to transition from the current value to the adjusted target value. For example, the minimum cooling time interval for the acceleration optimization action is the sum of the speed ramp time and the time to complete a test cycle after acceleration. The reason for this setting is that after an adjustment action takes effect, its impact on performance indicators needs a complete sampling cycle to become stable. If a similar action is triggered again before the adjustment effect becomes apparent, it will cause the old and new states to overlap, and the adjustment direction will oscillate repeatedly during consecutive sampling cycles.

[0061] The test strategy library is constructed and operates as follows: Historical test data from various retests of different robot models from factory testing to usage is collected. Correlated samples of pre-adjustment comprehensive performance indicators, triggering adjustment actions, and post-adjustment changes in comprehensive performance indicators are extracted to form a sample library. Cluster analysis is performed on these related samples to identify typical degradation patterns and corresponding effective adjustment strategies, forming an initial rule set. Recommended values ​​for abnormal vibration amplitude safety thresholds and warning intervals are supplemented based on expert experience. Each rule is transformed into an event-condition-action triplet structure. The event field defines the comprehensive performance indicator or change pattern that triggers monitoring; the condition field defines the additional constraints that make the rule effective; and the action field defines the type of operation to be performed and its parameters. Applicable condition tags are added to each rule, including robot model identifier, joint structure type, rated load range, and the test standard number on which it is based. A multi-level index table is established to automatically filter and load rules according to robot model and test standard.

[0062] After the test strategy adjustment action is triggered, the test management platform reissues motion control commands to the robot controller according to the adjusted test configuration, driving the robot to continue to perform test motion, that is, returning to the execution step S1.

[0063] In some implementations, after the test at the current target pose is completed, if there are untested target poses in the test trajectory, the process returns to steps S1 to S4 for the next target pose; until all target poses of the test trajectory are completed, then step S5 is executed.

[0064] S5: After the test is completed, retrieve the pass / fail threshold library that matches the current robot model and test standard, determine the pass / fail status of the comprehensive performance index according to the pass / fail threshold library, and output the test report.

[0065] The pass / fail threshold library is loaded before the test begins and can be directly read and used in step S5; the test report is a three-dimensional visualization test report, which includes a dynamic characteristic waterfall chart and a comparison curve before and after environmental compensation.

[0066] In some implementations, after completing all target poses of the test trajectory and outputting a test report each time, the weights of each rule triggered in this test are updated according to its adjustment effect: the adjustment effect is determined by the change in the dynamic pose accuracy at the same target pose after adjustment relative to the amount before adjustment. If the accuracy is improved, the weight of the corresponding rule is increased; if the accuracy is not improved or deteriorated, the weight of the corresponding rule is decreased. Rules whose weights are lower than the preset elimination weight after the update are removed. The newly generated associated samples in this test are fed back to the sample library. After the accumulated feedback samples reach a training batch, retraining is performed. Cluster analysis is re-performed with the updated sample library to correct the performance margin interval values ​​corresponding to each grade adjustment rule. The training batch is the number of feedback samples required to perform one retraining. In this embodiment, 50 groups are used.

[0067] Example 1 This embodiment uses a typical six-axis industrial robot factory testing scenario as an example to explain in detail the implementation process of the method of the present invention: The robot under test is a six-axis articulated industrial robot of a certain model, with a rated load of 20 kg. The test standard is based on ISO 9283. The spatial pose measurement device uses an absolute ranging laser tracker with a vacuum nominal wavelength of 633 nm. Three-axis accelerometers are installed on the robot's upper arm and wrist. The test environment temperature is 22℃ and the air pressure is 101325 Pa.

[0068] The refractive index of air is: ; The target mounting base of the structural thermal deformation compensation tracker is made of aluminum alloy, with a linear expansion coefficient of 23 × 10⁻⁶. 6 / ℃, nominal length is 200mm, reference temperature is 20℃, and the thermal deformation model is substituted; the thermal deformation correction vector is applied to the position data that has been wavelength compensated to obtain the measured pose after environmental compensation.

[0069] The robot moves to a test point according to the test trajectory, and simultaneously collects: the measured pose after environmental compensation, the torque of each joint and the motor current following error fed back by the controller, and the time-domain vibration signal collected by the wrist and elbow accelerometers; the above data are then input into a pre-trained digital twin error prediction model after being timestamped. The rigid-flexible coupled dynamic model receives joint position commands and the difference between the measured torques and the dynamic feedforward torques of each joint, and calculates the theoretical dynamic deformation caused by the flexibility of the links and joints. The long short-time memory network receives the theoretical dynamic deformation, the motor current following error, and the characteristic frequency band amplitude of the vibration signal, and outputs the residual dynamic error. The two are vector-summed to obtain the predicted pose deviation. .

[0070] During the data fusion phase, assuming the laser tracker returns a good signal, its measurement weights... The uncertainty is relatively high; however, the prediction uncertainty given by the differential output head under the current operating conditions is higher than the training baseline uncertainty, and its prediction weights... The corresponding reduction; the system dynamically allocates weights and obtains weighted fusion. ; At the target pose, the dynamic pose accuracy was calculated after 30 repeated measurements. And pose repeatability (taking the maximum standard deviation of each position component). According to ISO 9283 standard, the tolerance threshold for this test point of this robot model is [value missing]. , ; The ratio was calculated. , If the rate of change is not positive and is within the margin range, the speed-up optimization is triggered, and the system automatically increases the speed of the test joint to 115% of the rated speed. Subsequent tests will continue to monitor the speed, and if any margin ratio enters the warning range, the system will immediately restore the original speed.

[0071] Conversely, if another robot measures but If the system enters the warning zone but does not exceed the tolerance, it triggers a speed reduction fine-tuning detection. The system reduces the speed to 40% of the rated speed and inserts supplementary sampling points in the current trajectory segment; if the calculated... This leads to If the tolerance limit ratio is reached, the system will directly determine that the current pose is unqualified, record the event, and stop the test.

[0072] This invention eliminates the coupling interference of the on-site environment on the measurement through online compensation of environmental parameters, realizes real-time prediction of dynamic pose deviation across the entire frequency band using a digital twin model, and performs weighted fusion based on prediction uncertainty and real-time signal quality. Then, it adaptively adjusts the comprehensive performance index according to a hierarchical test strategy library and continuously evolves and updates the strategy library, thus forming a closed-loop automated testing system of environmental compensation measurement, virtual-real fusion evaluation, and adaptive strategy decision-making and evolution. This allows for obtaining test results that truly reflect the dynamic performance of the robot body under complex on-site conditions, significantly improving the accuracy and intelligence level of robot performance testing.

[0073] The threshold is set to facilitate comparison. The size of the threshold depends on the amount of sample data and the number of bases set by those skilled in the art for each set of sample data; as long as it does not affect the ratio between the parameter and the quantized value, it is acceptable.

[0074] In another embodiment, this invention proposes a robot testing strategy adjustment system based on environmental coupling error compensation, which implements the robot testing strategy adjustment method based on environmental coupling error compensation as described above, including: The environmental pose compensation module is used to collect environmental parameters at the robot test site, send motion control commands to the robot controller, and drive the robot to perform test motions according to the preset test trajectory; it obtains the original pose through a spatial pose measurement device, corrects the original pose in real time according to environmental parameters, and obtains the measured pose after environmental compensation; it reads internal state data through the controller communication interface and collects structural vibration signals through vibration sensors arranged on the surface of the robot body. The dynamic error prediction module is used to input internal state data and structural vibration signals into the digital twin error prediction model and output the predicted pose deviation and prediction uncertainty. The digital twin error prediction model includes a rigid-flexible coupled dynamic model and an error compensation network. The predicted pose deviation is obtained by superimposing the theoretical dynamic deformation output by the rigid-flexible coupled dynamic model with the residual dynamic error output by the error compensation network. The fusion deviation calculation module is used to determine the fusion weight based on the prediction uncertainty and the real-time signal quality of the spatial pose measurement device, and to normalize and weight the predicted pose deviation and the measured pose deviation according to the fusion weight to obtain the comprehensive pose deviation; the comprehensive performance index is calculated based on the comprehensive pose deviation; the measured pose deviation is the difference between the measured pose after environmental compensation and the target pose; The strategy triggering adjustment module is used to trigger test strategy adjustment actions based on comprehensive performance indicators, a preset pass / fail threshold library, and a test strategy library. The test strategy library contains graded adjustment rules corresponding to different performance margin ranges. After triggering, motion control commands are reissued to continue executing test motion. The corresponding rule weights are updated according to the adjustment effect. The triggered adjustment actions and the comprehensive performance indicators before and after the adjustment are used as correlation samples to train the test strategy library. The standard pass / fail judgment module is used to judge the overall performance index as pass / fail based on the pass / fail judgment threshold library after the test exercise is completed, and output a test report.

[0075] In another embodiment of the present invention, an electronic device is proposed, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, it implements a robot testing strategy adjustment method based on environmental coupling error compensation as described above.

[0076] In another embodiment of the present invention, a computer-readable storage medium is provided storing a computer program that causes a computer to execute a robot testing strategy adjustment method based on environmental coupling error compensation as described above.

[0077] In the embodiments disclosed in this application, a computer storage medium may be a tangible medium that may contain or store programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of computer storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0078] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any way. Any simple modifications, equivalent substitutions, and improvements made by those skilled in the art to the above embodiments without departing from the scope of the technical solution of the present invention, based on the technical essence of the present invention, shall still fall within the protection scope of the technical solution of the present invention.

Claims

1. A robot test policy adjustment method based on environment coupling error compensation, characterized in that, Includes the following steps: S1: Collect environmental parameters at the robot test site, send motion control commands to the robot controller, and drive the robot to perform test motions according to the preset test trajectory; obtain the original pose through the spatial pose measurement device, correct the original pose according to the environmental parameters, and obtain the measured pose after environmental compensation; obtain internal state data and structural vibration signals through the controller communication interface and vibration sensor. The process of correcting the original pose based on environmental parameters to obtain the environmentally compensated measured pose involves: using real-time collected ambient temperature and air pressure values, calculating the current air refractive index based on the Edren refractive index correction formula, and compensating for the laser wavelength based on this refractive index to correct the ranging error in the original pose; using real-time temperature values ​​and the material's thermal expansion coefficient, calculating the thermal deformation offset of the target mounting base and robot links, and superimposing this offset onto the wavelength-compensated pose data to obtain the environmentally compensated measured pose. S2: Input the internal state data and structural vibration signal into the digital twin error prediction model, and output the predicted pose deviation and prediction uncertainty; The digital twin error prediction model comprises a rigid-flexible coupled dynamics model and an error compensation network. The rigid-flexible coupled dynamics model receives joint position commands from the robot controller and the difference between the measured torque and the dynamic feedforward torque of each joint, and calculates the theoretical dynamic deformation using the modal superposition method. The error compensation network employs a long short-time memory (LSTM) network, whose input features include the theoretical dynamic deformation, the joint motor current following error extracted from internal state data, and the characteristic frequency band amplitude extracted after performing a fast Fourier transform on the structural vibration signal. It outputs the residual dynamic error, and the predicted pose deviation is obtained by superimposing the theoretical dynamic deformation and the residual dynamic error. The LSM network synchronously outputs the prediction uncertainty during inference. S3: Determine the fusion weights based on the prediction uncertainty and the real-time signal quality of the spatial pose measurement device; normalize and weight the predicted pose deviation and the measured pose deviation according to the fusion weights to obtain the comprehensive pose deviation; calculate the comprehensive performance index based on the comprehensive pose deviation; the measured pose deviation is the difference between the measured pose after environmental compensation and the target pose. The comprehensive performance indicators include dynamic pose accuracy and dynamic pose repeatability. The dynamic pose accuracy is obtained by calculating the Euclidean norm of the mean of the position deviation components from the comprehensive pose deviation obtained from multiple measurements at the same target pose. The dynamic pose repeatability is obtained by calculating the standard deviation of each position deviation component and each attitude deviation component separately, and taking the maximum value of the standard deviation of each component. S4: Trigger test strategy adjustment actions based on comprehensive performance indicators, a preset pass / fail threshold library, and a test strategy library. The test strategy library contains graded adjustment rules corresponding to different performance margin ranges. After triggering, reissue motion control commands and continue to execute test motion. Update the corresponding rule weights according to the adjustment effect. Use the triggered adjustment actions and the comprehensive performance indicators before and after the adjustment as related samples to update the graded adjustment rules in the test strategy library. The test strategy adjustment action triggered based on comprehensive performance indicators, a preset pass / fail threshold library, and a test strategy library is specifically as follows: Call the pass / fail threshold library to obtain the pose accuracy tolerance threshold and pose repeatability tolerance threshold corresponding to the current robot model and test standard. Calculate the accuracy margin ratio of dynamic pose accuracy to pose accuracy tolerance threshold and the repeatability margin ratio of dynamic pose repeatability to pose repeatability tolerance threshold, and obtain the rate of change of the accuracy margin ratio within the time window. Based on the performance margin range of the accuracy margin ratio and repeatability margin ratio, as well as the sign of the rate of change, the corresponding graded adjustment rules are matched to trigger acceleration optimization, deceleration fine detection, determination of non-compliance and termination of testing, or maintenance of the current motion parameters; the acceleration optimization is to increase the joint speed and acceleration of the robot test motion, and the deceleration fine detection is to reduce the joint speed and acceleration and insert supplementary sampling points on the current motion trajectory; S5: After the test is completed, the comprehensive performance index is compared with the pass / fail threshold library. If the comprehensive performance index meets the tolerance threshold in the pass / fail threshold library, it is confirmed as qualified and a test report is output.

2. The robot test strategy adjustment method based on environment coupling error compensation according to claim 1, characterized in that: In step S1, the spatial pose measurement device is an absolute range laser tracker, and a reflective ball target is fixed at the end of the robot. The laser tracker emits a laser beam to the target and receives the reflected laser beam. The slant distance is obtained through the phase difference. Combined with the readings of the two angle encoders of the laser tracker, the original three-dimensional position data of the target in the tracker coordinate system is calculated. The end pose is obtained with visual assistance to form an original pose containing six degrees of freedom. The environmental parameters of the robot test site include ambient temperature and air pressure.

3. The robot testing strategy adjustment method based on environmental coupling error compensation according to claim 1, characterized in that: The error compensation network's processing of structural vibration signals also includes abnormal vibration mode determination: The structural modal parameters of the robot under test are obtained through finite element modal analysis, and the characteristic frequency bands related to structural resonance are determined. The mode vector is constructed from the baseline vibration level of each characteristic frequency band. During real-time testing, the extracted frequency band amplitude vector and the mode vector are matched for similarity. The deviation of the amplitude of each characteristic frequency band from its baseline vibration level is considered. When the distribution pattern of the frequency band amplitude vector and the amplitude level of a single characteristic frequency band deviate from the baseline state, an abnormal vibration mode is determined. When an abnormal vibration mode is determined, the contribution of the characteristic frequency band amplitude that deviates from the baseline state to the input features is reduced, and the current target pose is retested. The environmentally compensated measured pose obtained from the retest is used in the weighted fusion of step S3.

4. A robot testing strategy adjustment system based on environmental coupling error compensation, used to implement the robot testing strategy adjustment method based on environmental coupling error compensation as described in any one of claims 1 to 3, characterized in that, include: The environmental pose compensation module is used to collect environmental parameters at the robot test site, send motion control commands to the robot controller, and drive the robot to perform test motions according to the preset test trajectory; it obtains the original pose through a spatial pose measurement device, corrects the original pose in real time according to environmental parameters, and obtains the measured pose after environmental compensation; it reads internal state data through the controller communication interface and collects structural vibration signals through vibration sensors arranged on the surface of the robot body. The dynamic error prediction module is used to input internal state data and structural vibration signals into the digital twin error prediction model and output the predicted pose deviation and prediction uncertainty. The digital twin error prediction model includes a rigid-flexible coupled dynamic model and an error compensation network. The predicted pose deviation is obtained by superimposing the theoretical dynamic deformation output by the rigid-flexible coupled dynamic model with the residual dynamic error output by the error compensation network. The fusion deviation calculation module is used to determine the fusion weight based on the prediction uncertainty and the real-time signal quality of the spatial pose measurement device, and to normalize and weight the predicted pose deviation and the measured pose deviation according to the fusion weight to obtain the comprehensive pose deviation; the comprehensive performance index is calculated based on the comprehensive pose deviation; the measured pose deviation is the difference between the measured pose after environmental compensation and the target pose; The strategy trigger adjustment module is used to trigger test strategy adjustment actions based on comprehensive performance indicators, a preset pass / fail threshold library, and a test strategy library. The test strategy library contains graded adjustment rules corresponding to different performance margin ranges. After triggering, motion control commands are reissued to continue executing test motion. The corresponding rule weights are updated according to the adjustment effect. The triggered adjustment action and the comprehensive performance indicators before and after the adjustment are used as correlation samples to update the graded adjustment rules in the test strategy library. The standard pass / fail judgment module is used to judge the overall performance index as pass / fail based on the pass / fail judgment threshold library after the test exercise is completed, and output a test report.

5. An electronic device, characterized in that, include: The system includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, it implements a robot testing strategy adjustment method based on environmental coupling error compensation as described in any one of claims 1 to 3.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer program causes the computer to execute a robot testing strategy adjustment method based on environmental coupling error compensation as described in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Robot grinding and polishing constant force control method and system based on neural network force compensation

    CN121870753A

  • Method and apparatus for digitally based high speed x-ray spectrometer

    US5684850A