Robot trajectory anomaly monitoring system and method based on visual residual and joint time difference
By using visual residuals and joint time differences, the visual residuals of the trajectory are compared along the robot's motion chain and closure verification is performed. This solves the problem of accurate location of trajectory anomalies in serial joint robots, and improves the completeness of anomaly correlation position determination and the accuracy of monitoring results.
Patent Information
- Application Number
- CN202611349927.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-02
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies struggle to accurately pinpoint the first occurrence of trajectory anomalies and the joint response state in serial articulated robots. Furthermore, the temporal shift of multi-source data leads to a lack of spatial closure verification in the monitoring results, making it difficult to distinguish abnormal joints and providing insufficient evidence for their localization.
By comparing the visual residuals and joint time differences along the robot's motion chain, the trajectory visual residuals are compared sequentially to determine the location where the anomaly first appears. The closure verification is performed using independent visual data, and a clear correspondence between joint states is established by combining the control follow time difference and the feedback closure time difference.
It enables accurate location of the first occurrence of trajectory anomalies and joint response status under multi-joint collaborative operation conditions, reduces the interference of time offset on monitoring results, and provides clear data sources and spatial verification basis.
Smart Images

Figure CN123149984A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of robot operation monitoring technology, specifically a robot trajectory anomaly monitoring system and method based on visual residuals and joint time differences. Background Technology
[0002] In repetitive trajectory operations such as welding, assembly, handling, and precision machining, serial articulated robots typically generate target positions for each joint according to a predetermined trajectory by a control system, and obtain joint feedback positions through position detection devices such as encoders. To monitor the actual operating status, existing technologies can also introduce visual measurement to collect the actual pose of the robot's end effector or each link, and compare the visually measured pose with the target pose, kinematically calculated pose, or joint feedback data to determine whether the trajectory has deviated.
[0003] In a serial robot, the joints and rigid components are connected sequentially. A local position or posture deviation generated by one joint will be reflected in subsequent components under the action of the current downstream joint configuration. When a trajectory deviation occurs at a certain downstream position, it is difficult to determine whether the deviation is generated by the current joint or transmitted from the upstream joint based solely on the visual residual at that position. Furthermore, the encoder feedback position mainly represents the feedback state of the position detection device. In cases of transmission gaps, loose connections, or mechanical response lag, it cannot be automatically equated to the actual mechanical output of the joint. Therefore, it is difficult to establish a definite correspondence between the local joint state and the downstream trajectory deviation by simply comparing the target position with the feedback position or the predicted pose with the visually measured pose.
[0004] Meanwhile, the time processes from the target position to the feedback position, from the feedback position to the actual mechanical output, and visual acquisition and processing are different. When comparing multi-source data directly, the time offsets of each link are easy to accumulate. Although existing monitoring methods can detect trajectory deviations, joint following errors, or visual pose abnormalities, they usually lack a verification relationship between the first occurrence position of the abnormality in the kinematic chain, the deviation between the feedback state and the actual mechanical output, and whether the local deviation can correspond to the actual spatial deviation downstream. Therefore, under the working conditions of multi-joint collaborative operation, there are still problems such as insufficient basis for abnormal joint positioning, difficulty in distinguishing abnormal response links, and lack of spatial closure verification of monitoring results. Summary of the Invention
[0005] This invention provides a robot trajectory anomaly monitoring system and method based on visual residuals and joint time differences, which is used to monitor the location of trajectory anomalies in the robot's kinematic chain and the corresponding joint response status during the operation of a serial joint robot according to a predetermined multi-joint cooperative trajectory.
[0006] When a tandem articulated robot is running, there may be varying degrees of deviation between the target position, feedback position, and actual mechanical output of a certain joint. Furthermore, the local spatial deviation formed by this joint will be transmitted to subsequent rigid components along with the positions of its downstream joints. It is difficult to determine the specific location in the kinematic chain where the deviation first occurred based solely on the end-effector trajectory deviation, and it is also difficult to determine whether the feedback position corresponds to the actual mechanical output based solely on the joint feedback position or response time difference. Based on this, the present invention first determines the location where the anomaly first occurs based on the visual trajectory residual distributed along the kinematic chain, then measures the local actual motion state of the joint corresponding to that location, and maps the local motion state to the downstream verification position according to the downstream joint feedback position when the anomaly occurred. The mapping result is then closed-loop verified by independently obtained downstream visual data.
[0007] The robot trajectory anomaly monitoring system includes a data interface, a vision acquisition device, and a processor.
[0008] The data interface is connected to the robot control system and is used to acquire the target position sequence, feedback position sequence, and control time corresponding to each position data of each joint during the robot's execution of a predetermined multi-joint cooperative trajectory.
[0009] The vision acquisition device is used to acquire visual data and corresponding acquisition time of multiple observation points set sequentially on different rigid components along the robot's motion chain. Each observation point maintains a fixed spatial relationship with its corresponding rigid component. The rigid components of two adjacent observation points are connected by a joint, so that two adjacent observation points along the motion chain correspond to a specific robot joint.
[0010] A spatial coordinate transformation relationship is pre-established between the vision acquisition device and the robot's base coordinate system. For any observation point, the processor determines the target predicted pose of the observation point at the corresponding motion moment based on the target positions of each joint in the kinematic chain from the robot base to the rigid component where the observation point is located, as well as the robot's kinematic parameters. Based on the visual data of the observation point, the fixed spatial relationship between the observation point and the rigid component, and the spatial coordinate transformation relationship between the vision acquisition device and the robot's base coordinate system, the processor determines the visually measured pose of the observation point in the robot's base coordinate system.
[0011] The processor unifies the target's predicted pose and the corresponding visually measured pose into the same coordinate system, and determines the trajectory visual residual of the corresponding observation part based on the relative pose transformation from the target's predicted pose to the visually measured pose. The trajectory visual residual includes position deviation and attitude deviation, and establishes a correspondence with the observation part according to the corresponding trajectory progress.
[0012] Based on the baseline running data obtained when the robot executes the same predetermined multi-joint cooperative trajectory, the processor establishes the baseline visual residual range for each observation point according to the trajectory progress. When the robot executes the trajectory to be monitored, the processor compares the trajectory visual residuals of adjacent observation points sequentially from upstream to downstream along the robot's motion chain. When the trajectory visual residual of an upstream observation point is within the baseline visual residual range of the corresponding trajectory progress, and the trajectory visual residual of the downstream observation point adjacent to it exceeds the corresponding baseline visual residual range for the first time, the joint connecting the rigid component where the two observation points are located is identified as a candidate joint.
[0013] When using the above determination method, the candidate joints are derived from the first spatial boundary where the trajectory visual residual moves from the normal range to the abnormal range along the kinematic chain, rather than pre-specifying a specific joint for verification, so that the subsequent joint state analysis has a definite kinematic chain position basis.
[0014] For a candidate joint, the processor determines the target relative pose of the rigid components on both sides based on the target position of the candidate joint, the joint axis, and the pre-determined geometric relationship between the rigid components on both sides of the candidate joint; and determines the actual relative pose of the rigid components on both sides based on the visually measured pose of the rigid components on both sides of the candidate joint at the same motion moment.
[0015] The target relative pose and the actual relative pose use the same local coordinate reference. Specifically, the upstream rigid component of the candidate joint is used as the local coordinate reference, and the target pose and the visually measured pose of the downstream rigid component of the candidate joint are respectively converted to the local coordinate reference to obtain the target relative pose and the actual relative pose.
[0016] After the candidate joint is determined, at least one verification observation site is selected downstream of the candidate joint. The visual data of the verification observation site is not involved in the determination of the actual relative pose of the candidate joint, so that the visual measurement data of the local state of the candidate joint is independent of the visual measurement data used for downstream verification.
[0017] The processor determines the coordinate transformation relationships at each level in sequence based on the feedback positions of each joint after the candidate joint and before the rigid component where the verification observation site is located at the same motion moment, as well as the predetermined geometric relationships between adjacent rigid components. The downstream feedback configuration corresponding to the motion moment is formed by the coordinate transformation relationships at each level.
[0018] The processor combines the target relative pose of the candidate joint with the downstream feedback configuration according to the connection order of the robot's kinematic chain to obtain the verification reference pose corresponding to the verification observation part; and combines the actual relative pose of the candidate joint with the same downstream feedback configuration at the same motion moment in the same order to obtain the verification prediction pose.
[0019] The verification reference pose and the verification predicted pose use the exact same downstream feedback configuration. Therefore, the difference between the two corresponds to the spatial deviation formed by the local difference between the candidate joint target relative pose and the actual relative pose in the current downstream joint state. The changes between different downstream joint states are not mixed into this comparison process.
[0020] The relative pose transformation from the verification reference pose to the verification predicted pose is used as the downstream prediction residual.
[0021] The processor also determines the actual relative pose of the rigid component at the verification observation location relative to the rigid component upstream of the candidate joint based on the visually measured pose of the rigid component upstream of the candidate joint and the visually measured pose of the rigid component at the verification observation location. This actual relative pose is then determined as the verification measured pose. The verification measured pose, the verification reference pose, and the verification predicted pose all use the same local coordinate reference.
[0022] The relative pose transformation from the verification reference pose to the verification measured pose is used as the downstream measured residual, and the relative pose transformation from the downstream predicted residual to the downstream measured residual is used as the closed residual. The closed residual retains the translation component and the rotation component respectively, and is compared with the corresponding allowable range of the closed residual.
[0023] When the above-mentioned closed relationship is adopted, the downstream prediction residual comes from the actual relative pose of the candidate joint and the actual downstream feedback configuration at that time, and the downstream measured residual comes from the downstream visual data that did not participate in the solution of the actual relative pose of the candidate joint. Thus, the determination of the local state of the candidate joint, the kinematic mapping of the local state to the downstream, and the visual measurement of the actual motion state of the downstream have clear data sources.
[0024] The processor also determines the control follow time difference based on the target position sequence and feedback position sequence of the candidate joints, and determines the feedback closure time difference based on the feedback position sequence and vision-mechanical output position sequence of the candidate joints.
[0025] The visual-mechanical output position sequence is determined by continuous actual relative poses based on the joint type of the candidate joint. When the candidate joint is a rotational joint, the relative rotation angle around the axis of the candidate joint is obtained from the continuous actual relative poses and arranged according to the acquisition time of the corresponding visual data to form the visual-mechanical output position sequence. When the candidate joint is a kinetic joint, the relative displacement along the kinetic axis of the candidate joint is obtained from the continuous actual relative poses and arranged according to the acquisition time to form the visual-mechanical output position sequence. This allows the visual-mechanical output position sequence and the corresponding feedback position sequence to use the same joint motion amount to represent them.
[0026] Furthermore, the processor determines monotonic motion intervals with a common time range from the target position sequence and the feedback position sequence, as well as from the feedback position sequence and the visual mechanical output position sequence. Within the monotonic motion interval, the cumulative position change of the two position sequences to be compared is greater than the corresponding position measurement resolution.
[0027] Within the maximum allowable following delay range given by the robot control parameters, the processor sequentially changes the time shift of the subsequent position sequence relative to the previous position sequence according to the sampling time interval of the position data, and calculates the sum of squares of the position increment difference between the two position sequences in the overlapping motion interval under different time shifts. The processor determines the control following time difference of the target position sequence relative to the feedback position sequence and the feedback closure time difference of the feedback position sequence relative to the vision mechanical output position sequence by taking the time shift corresponding to the minimum value of the sum of squares of the position increment difference.
[0028] For the time offset generated by the visual acquisition, data transmission and visual processing links, when the feedback closure time difference of at least two joints can be obtained within the same visual acquisition period, the difference between the current feedback closure time difference of each joint and the corresponding reference feedback closure time difference is calculated. The median of each difference is used to determine the visual link time offset correction amount for the visual acquisition period. The acquisition time of the corresponding visual data is then corrected using the visual link time offset correction amount. After correction, the feedback closure time difference of the candidate joints is re-determined based on the feedback position sequence and the visual machine output position sequence.
[0029] The reference visual residual range, the reference control follow time difference range, the reference feedback closure time difference range, and the allowable closure residual range are all established from the reference operating data.
[0030] The baseline operating data is obtained after the robot completes joint zero-position calibration, visual acquisition device spatial calibration, and visual link time calibration. When obtaining the baseline operating data, the robot repeatedly runs using the same predetermined multi-joint cooperative trajectory, tool, and load. The robot does not have any joint fault alarms within the corresponding operating cycle, and the repeated positioning deviation does not exceed the allowable value specified in the robot equipment technical parameters.
[0031] The baseline running data establishes a correspondence between trajectory point number or trajectory path parameter and trajectory progress. For different trajectory progresses, a baseline visual residual range is established based on the trajectory visual residual of each observation point, a baseline control following time difference range is established based on the control following time difference of each joint, a baseline feedback closing time difference range is established based on the feedback closing time difference of each joint, and a corresponding allowable closing residual range is established based on the translation and rotation components of the closing residual.
[0032] When the control follow time difference of a candidate joint exceeds the baseline control follow time difference range of the corresponding trajectory progress, or the feedback closure time difference exceeds the baseline feedback closure time difference range of the corresponding trajectory progress, and the translation and rotation components of the closure residual are respectively within the allowable range of the closure residual of the corresponding trajectory progress, the candidate joint is identified as a trajectory abnormal associated joint.
[0033] Furthermore, a first verification observation site and a second verification observation site are set downstream of the candidate joint on different rigid components. The visual data of the first verification observation site and the second verification observation site are not involved in the determination of the actual relative pose of the candidate joint.
[0034] The processor determines the verification reference pose based on the target relative pose of the candidate joint and the corresponding downstream feedback configuration for the first verification observation site and the second verification observation site, respectively. It determines the verification prediction pose based on the actual relative pose of the candidate joint and the same downstream feedback configuration, and determines the verification measured pose based on the visual measured pose of the corresponding verification observation site. Thus, the first closure residual and the second closure residual are formed respectively. When the translation and rotation components of the first closure residual and the second closure residual are within their respective allowable ranges of the closure residual, the downstream spatial closure state of the candidate joint is determined by the closure results of the two verification observation sites.
[0035] Furthermore, the processor determines the relative position of the feedback prediction based on the feedback position of the candidate joint and the predetermined geometric relationship between the rigid members on both sides of the candidate joint.
[0036] The relative pose transformation from the target relative pose to the feedback predicted relative pose is used as the control local residual, and the relative pose transformation from the feedback predicted relative pose to the actual relative pose is used as the mechanical closure residual. Based on the reference running data, the reference range of the control local residual and the reference range of the mechanical closure residual are established according to the trajectory progress.
[0037] When the control follow time difference of the candidate joint exceeds the reference control follow time difference range, the control local residual exceeds the reference range of the control local residual, while the feedback closure time difference is within the reference feedback closure time difference range and the mechanical closure residual is within the reference range of the mechanical closure residual, the abnormal position of the candidate joint is determined to be in the control follow link corresponding to the target position to the feedback position.
[0038] When the control follow time difference of the candidate joint is within the reference control follow time difference range, the control local residual is within the reference range of the control local residual, and the feedback closure time difference exceeds the reference feedback closure time difference range and the mechanical closure residual exceeds the reference range of the mechanical closure residual, the abnormal position of the candidate joint is determined to be the mechanical response link corresponding to the actual mechanical output from the feedback position.
[0039] When the control follow-up time difference, control local residual, feedback closure time difference, and mechanical closure residual all exceed their respective reference ranges, the abnormal position of the candidate joint is determined to involve both the control follow-up link and the mechanical response link.
[0040] This invention also provides a method for monitoring robot trajectory anomalies based on visual residuals and joint time differences. The method involves acquiring the target position sequence, feedback position sequence, and visual data of each observation point set along the robot's motion chain during the execution of a predetermined multi-joint cooperative trajectory by a serially articulated robot. Based on the target position sequence and visual data, the method forms the target predicted pose, the visually measured pose, and the trajectory visual afterimage for each observation point. Following the motion chain from upstream to downstream, the method determines the position where the trajectory visual residual first exceeds the corresponding baseline visual residual range, and uses the joint corresponding to that position as a candidate joint.
[0041] After the candidate joints are determined, the target relative pose and the actual relative pose of the candidate joints are obtained respectively. The target relative pose and the actual relative pose are then combined with the downstream feedback configuration formed by the downstream joint feedback position at the same motion moment to obtain the verification reference pose and the verification prediction pose. The verification measured pose is obtained based on the downstream visual data that did not participate in the determination of the actual relative pose of the candidate joints. The downstream prediction residual, the downstream measured residual, and the closure residual are formed based on the verification reference pose, the verification prediction pose, and the verification measured pose.
[0042] Simultaneously, the control following time difference is determined based on the target position sequence and feedback position sequence of the candidate joints, the feedback closure time difference is determined based on the feedback position sequence and the visual-mechanical output position sequence, and the correlation between the candidate joints and trajectory anomalies is determined by combining the corresponding reference time difference range and the allowable range of closure residual.
[0043] The beneficial effects of this invention are as follows: 1. This invention obtains the trajectory visual afterimages of each observation part sequentially along the robot's motion chain, and determines candidate joints by the position where adjacent observation parts change from within the reference range to the first time exceeding the reference range. Then, the target relative pose and actual relative pose of the candidate joint are combined with the downstream feedback configuration at the same motion moment. The downstream visual data that did not participate in the solution of the actual relative pose of the candidate joint are used to form an independent closure verification, so that the local state change of the candidate joint is correlated with the actual spatial deviation of the downstream. This achieves the effect of distinguishing the upstream deviation transmission from the abnormality of the current joint under the condition of multi-joint cooperative operation, and improving the integrity of the judgment basis of the abnormal correlation position.
[0044] 2. This invention determines the control following time difference and feedback closure time difference by comparing the target position sequence with the feedback position sequence and the vision-mechanical output position sequence respectively. It corrects the common time offset of the vision link based on the changes in the feedback closure time difference of multiple reference joints. At the same time, it combines the local control residual and the mechanical closure residual to segment and judge the local state of the candidate joints. This achieves the effect of separately identifying the control following anomaly between the target position and the feedback position, the inconsistency between the feedback position and the actual mechanical output, and the anomaly state where both exist. This reduces the interference of vision acquisition and processing time offset on the joint response state judgment.
[0045] 3. This invention obtains benchmark operating data under the same predetermined trajectory, tool, and load conditions, and establishes benchmark visual residual range, benchmark control following time difference range, benchmark feedback closure time difference range, and closure residual allowable range according to the trajectory progress. At the same time, it judges the translational and rotational components of the closure residual, and can use multiple verification observation points located in different downstream rigid components to perform cross-closure, so as to achieve the effect of corresponding anomaly judgment with the robot's specific operating conditions and actual measurement capabilities. This makes the monitoring results have clear data sources and spatial verification basis, and provides a traceable judgment basis for robot operating status recording, anomaly investigation, and subsequent maintenance. Attached Figure Description
[0046] Figure 1 This is a block diagram of the overall structure of the robot trajectory anomaly monitoring system of the present invention; Figure 2 This is a schematic diagram showing the correspondence between the kinematic chain, joints, and visual observation parts of the serial robot of the present invention; Figure 3 This is a schematic diagram showing the spatial calibration relationship between the visual acquisition device, the robot's base coordinate system, and the visual feature group of the present invention. Figure 4 This is a schematic diagram illustrating the relationship between the relative pose of the candidate joint target, the feedback predicted relative pose, and the actual relative pose in this invention. Figure 5 This is a schematic diagram illustrating the determination of the control tracking time difference and feedback closure time difference in this invention; Figure 6 This is a schematic diagram of the common time offset correction process for the visual acquisition link in this invention; Figure 7 This is a schematic diagram illustrating the combined relationship between the local state of the candidate joint and the downstream feedback configuration of the present invention. Figure 8 This is a schematic diagram illustrating the formation relationship between the verification of the reference pose, the verification of the predicted pose, the verification of the measured pose, and the closure residual in this invention. Figure 9This is a schematic diagram illustrating the dual downstream closed relationship between the first and second verification observation sites of the present invention. Figure 10 This is an overall flowchart of the robot trajectory anomaly monitoring method of the present invention. Detailed Implementation
[0047] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0048] The following example illustrates a robot trajectory anomaly monitoring system and method based on visual residuals and joint time differences, using a fixed-station serial articulated robot repeatedly executing the same predetermined multi-joint cooperative trajectory. In this scenario, the robot's mounting base, the installation position of the visual acquisition device, the tool installation status, the load status, and the predetermined trajectory remain unchanged within a monitoring batch. The predetermined trajectory includes at least one cooperative motion interval where two or more joints simultaneously undergo position changes. The monitoring object is the trajectory deviation that occurs under this repetitive running condition. The technical contradiction lies in the fact that the joint feedback position can only reflect the output of the position detection device and cannot be automatically equated to the actual mechanical relative state of the rigid components on both sides of the joint. At the same time, the local spatial deviation formed by a joint will be mapped to the subsequent rigid components according to the configuration of the downstream joint when the anomaly occurs. Therefore, simply observing the robot's end effector deviation or simply comparing the target position with the feedback position cannot directly determine the position where the trajectory deviation first enters the kinematic chain and the local mechanical state at that position.
[0049] This implementation method forms the following processing chain around the above working condition: First, the trajectory visual afterimages of each rigid component are compared along the robot's kinematic chain to determine the first spatial boundary where the trajectory visual residual changes from within the reference range to outside the reference range, and candidate joints are determined accordingly; then, the target relative pose, feedback predicted relative pose, and actual relative pose of the candidate joint are obtained; subsequently, the target relative pose and actual relative pose of the candidate joint are combined with the same downstream feedback configuration at the same monitoring time to form the reference result and prediction result of the downstream verification position; finally, the verification measurement result is obtained from the downstream visual data that did not participate in the solution of the actual relative pose of the candidate joint, forming a spatial closure relationship, and the association between the candidate joint and the current trajectory anomaly is determined by combining the two time relationships from the target position to the feedback position and from the feedback position to the visual mechanical output position.
[0050] like Figures 1 to 10 As shown, embodiments of the present invention provide a robot trajectory anomaly monitoring system and method based on visual residuals and joint time differences.
[0051] I. System Composition, Kinematic Chain, and Unified Data Definition The robot trajectory anomaly monitoring system includes a data interface, a vision acquisition device, and a processor. The data interface establishes a data connection with the robot control system or servo drive system to obtain the target position sequence, feedback position sequence, and control time corresponding to each sampling point when the robot executes a predetermined multi-joint cooperative trajectory. For rotary joints, the target position and feedback position are represented by angular position; for traverse joints, the target position and feedback position are represented by linear position along the traverse axis. The target position sequence comes from the trajectory execution data of the robot control system, and the feedback position sequence comes from the data output by the position detection device of the corresponding joint through the robot control system or servo drive system.
[0052] The trajectory progress referred to in this embodiment is an index used to correspond to the same trajectory position between different repeated running cycles. When the robot runs according to discrete trajectory points, the trajectory progress is represented by the trajectory point number. When the robot runs continuously for interpolation, the trajectory progress is represented by the path parameters given by the control program. If the control program does not directly output the path parameters, a monotonically increasing trajectory parameter is established based on the cumulative path length between each target pose of the predetermined trajectory, and the same trajectory parameter definition is used in the baseline run and the run to be monitored.
[0053] The robot consists of multiple joints and rigid components connected in sequence to form a series of kinematic chains. The motion type of each joint, the joint axis, the fixed geometric relationship between adjacent rigid components, and the connection order of the kinematic chains are all based on the robot manufacturing data, mechanical structure parameters, or kinematic parameters already configured in the control system. These structural parameters are not changed within a monitoring batch.
[0054] Multiple observation points are set sequentially along the kinematic chain segment to be monitored. Each observation point is fixed on a rigid component and maintains an unchanged spatial relationship with the rigid component. Two adjacent observation points along the kinematic chain are located on two adjacent rigid components directly connected by a joint. Therefore, each pair of adjacent observation points corresponds one-to-one with a specific joint.
[0055] II. Definitions of coordinate system, relative pose, and residual components To ensure consistent calculation directions across all poses, the robot's base coordinate system is used as the global reference coordinate system. Let the poses of two coordinate systems A and B in the same reference coordinate system R be T(R→A) and T(R→B), respectively. Then, the relative pose transformation from coordinate system A to coordinate system B is defined as: T(A→B)=[T(R→A)]^(-1)·T(R→B) The target relative pose, feedback predicted relative pose, actual relative pose, verification reference pose, verification predicted pose, verification measured pose, and various relative pose residuals mentioned below all adopt the above-mentioned directional definitions. Rigid body pose transformation consists of rotation and translation. In order to ensure that objects within the reference range have definite judgment objects, for any residual pose, the magnitude of its translation vector is defined as the translation component of the residual, and the minimum rotation angle corresponding to its rotation part is defined as the rotation component of the residual. The translation component and the rotation component establish the reference range and allowable range respectively, and the length and angle quantities are not combined into a comprehensive score.
[0056] III. Visual Feature Sets, Visual Measured Pose, and Spatial Calibration The visual acquisition device is fixedly installed in the robot's working area and covers the kinematic chain segment to be monitored. Each observation point is equipped with a visual feature group that is rigidly fixed to the rigid component. The visual feature group contains multiple feature points with known geometric relationships. The spatial position of the feature points in the coordinate system of the corresponding rigid component is obtained by mechanical measurement or calibration before monitoring. The internal imaging parameters of the visual acquisition device and the fixed spatial coordinate transformation relationship between the visual acquisition device and the robot's base coordinate system are calibrated before monitoring.
[0057] In one feasible method for solving visual pose, the processor obtains the image coordinates of each feature point of the visual feature group from the visual image. Based on the known spatial coordinates of the feature points in the rigid component coordinate system, the imaging parameters of the visual acquisition device, and the perspective projection relationship, it solves the rotation and translation of the rigid component relative to the visual acquisition device, minimizing the sum of squared reprojection errors of all effective feature points. Then, using the fixed spatial coordinate transformation relationship between the visual acquisition device and the robot base coordinate system, the obtained pose is converted into the visual measured pose of the rigid component in the robot base coordinate system. If the number of visual feature points is insufficient to uniquely solve the pose, feature recognition fails, or the reprojection relationship has no effective solution, the visual measured pose is not generated for that frame.
[0058] The repeatability of visual pose is determined by actual calibration records. After spatial calibration, under the condition that both the robot and the vision acquisition device remain stationary, a set of repeated pose measurements are continuously performed on the same visual feature group. The translation repeatability margin is half of the maximum distance between any two translation positions in the set of measurements, and the rotation repeatability margin is half of the maximum relative rotation angle between any two poses. The repeatability margin is only used to extend the upper limit of the residual formed by the reference running data and does not adopt empirical values that are independent of the specific vision device.
[0059] IV. Time Base and Visual Acquisition Time Correction The target position sequence and feedback position sequence use robot control time, while the visual data uses the acquisition time recorded by the visual acquisition device. Before formal monitoring, the two sets of time data establish a correspondence through synchronization events unrelated to joint mechanical movement. When the visual acquisition device and the robot control system have a common hardware trigger signal, the same trigger signal is simultaneously sent to the trigger input terminal of the visual acquisition device and the time recording terminal of the robot control system, and a fixed time offset is established with the same trigger edge recorded at both ends. When there is no common hardware trigger interface, a synchronization indicator directly driven by the digital output of the robot control system is set in the visual field of view. The robot control system records the control time of the change in the state of the digital output, and the visual acquisition device records the first valid visual acquisition time when the synchronization indicator changes its corresponding state. The median of the time difference obtained from multiple repeated triggers is used as the fixed time offset of the visual acquisition link. The state change of the synchronization indicator does not pass through the robot joint, deceleration mechanism, or end effector mechanical transmission. Therefore, this calibration does not include the actual mechanical response time of the joint in the fixed time offset of the visual acquisition link.
[0060] After fixed time offset correction, the visual acquisition time is mapped to the robot control time. When the visual acquisition moment is between two adjacent control sampling moments, time interpolation is only performed between two adjacent valid visual sampling points. If the time interval between the current adjacent valid visual frames is greater than the maximum value of the time interval between consecutive valid visual frames in the baseline operation, no interpolation is performed in that time interval, and the corresponding visual data is marked as invalid in time correspondence. The synchronization event used for fixed time offset calibration is independent of the subsequent joint motion time difference calculation. The subsequent feedback closure time difference is still obtained separately from the motion time relationship between the feedback position sequence and the vision-mechanical output position sequence.
[0061] V. Visual Residuals of Target Prediction Pose and Trajectory For each observation point, the processor reads the target positions of each joint involved from the robot base to the rigid component where the observation point is located at the corresponding control moment according to the actual motion chain sequence of the robot. Based on the existing kinematic parameters, it calculates the target predicted pose of the rigid component in the robot base coordinate system step by step. The target predicted pose is determined only by the target position and the robot's existing geometric parameters, without using the current visual measurement results for correction.
[0062] The processor places the target predicted pose and the time-corresponding visual measured pose in the robot's base coordinate system. According to the aforementioned relative pose direction, the relative pose transformation from the target predicted pose to the visual measured pose is used as the trajectory visual residual of the observed part under the current trajectory progress, and the translation and rotation components of the trajectory visual afterimage are recorded respectively.
[0063] VI. Formation of Benchmark Operating Data and Benchmark Ranges Before formal monitoring, the robot continuously and repeatedly runs under the conditions of fixed workstation, fixed visual acquisition device installation state, same tools, same load, and the same predetermined multi-joint cooperative trajectory to form benchmark running data. The running cycle of the benchmark data should meet the following requirements: the robot control system does not record joint fault status within the cycle; each observation part that needs to participate in the calculation has continuous and effective visual measured pose; the robot completes joint zero position confirmation before benchmark running; the tool and load status are consistent with the working conditions to be monitored; and the exposure, imaging, and external lighting configuration of the visual acquisition device remain unchanged within the same monitoring batch.
[0064] The baseline visual residual range is established separately according to the observation location and trajectory progress. For each observation location under the same trajectory progress, the maximum value of the translation component and the maximum value of the rotation component of the trajectory visual residual are obtained respectively. The baseline upper limit of the translation component is obtained by adding the aforementioned translation repeatability margin to the maximum value, and the baseline upper limit of the rotation component is obtained by adding the corresponding maximum value to the rotation repeatability margin. Since both components are non-negative, the baseline visual residual range is composed of zero to the corresponding baseline upper limit. When neither the translation component nor the rotation component of the trajectory visual residual exceeds its respective baseline upper limit, it is considered to be within the corresponding baseline visual residual range; when any component exceeds the corresponding baseline upper limit, it is considered to be outside the range.
[0065] The motion interval that satisfies the time difference calculation conditions is used as the data unit for control follow time difference and feedback closure time difference. Each effective motion interval records its initial trajectory progress and final trajectory progress. Therefore, the reference time difference range can be associated with the corresponding trajectory progress segment. For the same joint and the same trajectory progress segment, the control follow time difference and feedback closure time difference are stored separately. The upper limit of the reference control follow time difference is the maximum value of the effective reference period control follow time difference plus the time repeatability margin. The upper limit of the reference feedback closure time difference is established by the feedback closure time difference in the same way. Both types of time differences are searched starting from zero delay. Therefore, the corresponding reference time difference ranges are respectively composed of zero to the corresponding upper limit of the reference time difference. The time repeatability margin is half the difference between the maximum and minimum values of the repeated results of the fixed time calibration of the synchronization event, and is at least not less than the larger time quantization resolution between the robot control time and the vision acquisition time.
[0066] The allowable range of closed residuals, the reference range of control local residuals, and the reference range of mechanical closed residuals all use the same calculation steps as the process to be monitored to process the reference operation data. The upper limit of each type of residual is the maximum translation component plus the translation repeatability margin in the effective reference period as the translation upper limit, and the upper limit of rotation is the maximum rotation component plus the rotation repeatability margin as the rotation upper limit. All upper limits are formed by the actual equipment reference operation and calibration records, and are not preset fixed values in this embodiment.
[0067] VII. Identifying candidate joints along the kinetic chain After the robot enters the monitoring operation, the processor sequentially obtains the trajectory visual residuals of each observation part under the same trajectory progress, and compares the adjacent observation parts according to the motion chain sequence from the robot base to the end. If the translation and rotation components of the trajectory visual residual of an upstream observation part are both within the corresponding reference visual residual range, while the translation or rotation component of its adjacent downstream observation part exceeds the corresponding reference visual residual range for the first time, then the joint connecting the rigid component of the two observation parts is determined as a candidate joint.
[0068] The first exceedance here is the first range transition in spatial order, not the first abnormal moment in time series. Since the rigid components where two adjacent observation points are located are directly connected by only one joint, the spatial transition can correspond to a unique joint. If multiple range transition positions that are separated from each other appear in the same running cycle, candidate joints are formed according to the kinematic chain order, and subsequent closure verification is performed separately. The judgment result of one candidate joint does not replace the independent verification of other candidate joints.
[0069] If the first effective observation point at the uppermost end of the motion chain segment to be monitored has exceeded the corresponding baseline visual residual range, then there is no complete spatial boundary in the motion chain segment where the upstream is within the baseline range and the adjacent downstream is the first to exceed it. The processor does not directly designate the uppermost joint as a candidate joint, but marks the current motion chain segment as a candidate boundary that cannot be located. At this time, an upstream observation point that can form an effective visual measured pose can be added towards the robot base and then re-evaluated. Before obtaining a complete spatial boundary, the motion chain segment is not used to output candidate joints.
[0070] If all adjacent observation points within the motion chain segment to be monitored are within their respective baseline visual residual ranges, or if there are observation points outside the baseline range but no adjacent transition from within the baseline range to outside the baseline range is formed, then the current trajectory progress will not form candidate joints, and the processor will continue to process the data of subsequent valid trajectory progress.
[0071] 8. Three local relative poses of the candidate joint After identifying the candidate joint, the upstream rigid component of the candidate joint is used as the local coordinate reference. Based on the target position of the candidate joint, the joint axis, and the fixed geometric relationship between the rigid components on both sides, the target relative pose of the downstream rigid component of the candidate joint relative to the upstream rigid component is determined. Based on the feedback position and the same geometric relationship at the same control moment, the feedback prediction relative pose is determined.
[0072] The actual relative pose is obtained independently from the visual measurement results. The processor obtains the visual measurement pose of the rigid components on both sides of the candidate joint at the same monitoring time after time correction, and transforms the visual measurement pose of the downstream rigid component to the visual measurement coordinate system of the upstream rigid component to obtain the actual relative pose. The target relative pose, the feedback predicted relative pose, and the actual relative pose all represent the spatial state of the downstream rigid component of the candidate joint relative to the upstream rigid component. All three use the same coordinate direction.
[0073] IX. Formation of Visual Mechanics Output Position Sequence To convert the actual relative pose into a physical quantity that can be directly compared with the joint feedback position over time, the visual-mechanical output position is extracted according to the joint type. When the candidate joint is a rotational joint, the fixed installation posture between the rigid components on both sides is first eliminated according to the fixed structure transformation of the joint, and then the relative rotation angle around the known joint axis is obtained from the continuous actual relative pose. When the candidate joint is a kinetic joint, the relative displacement along the known kinetic axis is obtained from the continuous actual relative pose, and the relative rotation angle or relative displacement is arranged sequentially according to the corresponding visual acquisition time to form a visual-mechanical output position sequence.
[0074] The measurement resolution of the visual-mechanical output position is obtained by converting repeated visual measurements in a fixed posture. For rotating joints, the difference between the maximum and minimum values of the actual relative pose angle around the joint axis obtained from repeated measurements is used as the evaluation basis for visual angle resolution. For moving joints, the difference between the maximum and minimum values of the projected displacement along the moving axis is used as the evaluation basis for visual displacement resolution. The subsequent motion range selection uses the larger of the robot feedback position detection resolution and the visual-mechanical output position resolution as the basis for the minimum effective position change.
[0075] 10. Controlling follow-up time difference and feedback closure time difference The control follow-up time difference is used to characterize the time relationship between the target position change and the feedback position change, while the feedback closure time difference is used to characterize the time relationship between the feedback position change and the visual mechanical output position change. The two types of time differences are calculated separately.
[0076] For a pair of position sequences to be compared, first determine the monotonic motion interval with a common time range for both. When the absolute value of the position increment of adjacent sampling points is greater than the corresponding position measurement resolution, the position increment participates in the direction determination. Position increments that are less than or equal to the position measurement resolution are not considered as changes in motion direction. The signs of the effective position increments participating in the direction determination remain consistent. When the cumulative position change in the entire motion interval is greater than the larger of the corresponding position measurement resolutions of the two sequences to be compared, the interval is taken as the effective time difference calculation interval.
[0077] This implementation uses the tracking error monitoring time or equivalent response monitoring time already configured in the robot controller or servo driver as the upper limit of the time search, and starts the search from zero latency. It does not extend the search time within the range where there are no device parameters to support it. The subsequent position sequence is sequentially shifted relative to the previous position sequence according to the sampling interval. For each time shift, the sum of the squares of the differences in the corresponding position increments of the two position sequences within the overlapping interval is calculated. E(τ)=Σ[Δx1(k)-Δx2(k,τ)] 2 Where τ is the candidate time shift of the subsequent position sequence relative to the previous position sequence, Δx1(k) is the position increment of the kth effective sampling interval of the previous position sequence, and Δx2(k,τ) is the position increment of the subsequent position sequence after time shift τ. When E(τ) obtains a unique minimum value, the τ corresponding to this minimum value is taken as the time difference of the current motion interval. The target position sequence and the feedback position sequence obtain the control following time difference in this way. The feedback position sequence and the visual-mechanical output position sequence after visual time correction obtain the measured feedback closure time difference in this way.
[0078] When the cumulative positional change of the motion interval is insufficient, there are not enough overlapping valid sampling points between the two sequences, there are multiple indistinguishable minimum values within the time search range, or there are insurmountable missing intervals in the visual data, the effective time difference of that motion interval will not be output. This interval is marked as having undeterminable time difference and will not participate in the final confirmation of candidate joints.
[0079] XI. Operational Correction of Common Time Offset in Visual Acquisition Link The time changes generated during visual acquisition, image transmission, and visual processing are collectively reflected in the position sequence formed by visual data. To prevent the time drift of the visual acquisition link that occurs simultaneously at multiple joints from being mistaken for a change in the mechanical response of a candidate joint, at least two reference joints are selected within the same visual acquisition period. The reference joints do not use the current candidate joint and should meet the following conditions: the trajectory visual residual is within the range of the corresponding reference visual residual, the robot control system does not record the fault state of the joint, the current motion range can obtain a unique and effective measured feedback closure time difference, and they use the same visual acquisition link as the candidate joint.
[0080] For each reference joint, the median effective baseline feedback closure time difference of that joint in the corresponding trajectory progress segment is used as the baseline representative value. The difference between the currently measured feedback closure time difference and the baseline representative value is calculated. The above differences for each reference joint are sorted: the median value is taken when the number of reference joints is odd, and the arithmetic mean of the two median values is taken when the number of reference joints is even. This yields the visual acquisition link time offset correction. After recalibrating the current visual acquisition time using this correction, the feedback closure time difference of the candidate joints is calculated again according to the aforementioned time difference calculation process.
[0081] It is preferable to use three or more reference joints. If there are no at least two reference joints that meet the conditions during the same visual acquisition period, the common time offset during operation will not be updated, and the fixed time calibration results before monitoring will continue to be used. Subsequent judgments will only be made during this period if the fixed time calibration is still valid.
[0082] The runtime common time offset correction only changes the correspondence between visual data and robot control time, without changing the measured values of visual pose, target position, or feedback position. After the time correction is completed, the actual relative pose of candidate joints, visual mechanical output position sequence, verification measured pose, and closure residual are all reselected according to the same corrected time correspondence or recalculated to avoid using the corrected time relationship for time difference while still using the original visual frame for spatial closure.
[0083] 12. Downstream verification observation sites and downstream feedback configuration After the candidate joint is determined, at least one verification observation point is selected downstream of the candidate joint. The visual feature data used to obtain the verification measured pose must not be used to solve the actual relative pose of the candidate joint. Usually, the verification observation point is set on another rigid component after the candidate joint. When the candidate joint is close to the end of the kinematic chain and there is no other movable joint after it, an independent visual feature group that is separate from the local pose solution visual feature group can be set on the terminal rigid component or tool downstream of the candidate joint, so that the verification measured pose is still formed by independent visual feature data.
[0084] Based on the feedback positions of each joint between the candidate joint and the rigid component where the verification observation site is located at the same monitoring time, and the fixed geometric relationship between each adjacent rigid component, coordinate transformations are formed step by step according to the kinematic chain order, and combined into a downstream feedback configuration from the rigid component downstream of the candidate joint to the rigid component where the verification observation site is located. If the verification observation site is located on the downstream rigid component directly connected to the candidate joint, the downstream feedback configuration only includes the fixed spatial transformation from the rigid component to the verification observation site, without artificially introducing subsequent joint states that do not exist.
[0085] The selection of the verification observation site should also satisfy the condition that there is no other candidate joint that has formed an independent spatial transition between it and the current candidate joint. If a new transition occurs between the current candidate joint and the proposed verification observation site, where the visual residual of the upstream trajectory is within the reference range and the visual residual of the adjacent downstream trajectory exceeds the reference range, then the current candidate joint will not be verified using a more downstream observation site without crossing this new transition. The processor prioritizes the observation site between the current candidate joint and the new transition, where the visual pose can be independently determined, for verification, and processes the joint corresponding to the new transition as another candidate joint separately. This avoids superimposing two spatially separate local anomalies into the same downstream closure result.
[0086] 13. Verify the reference pose, the predicted pose, and the measured pose. Continuing to use the upstream rigid component of the candidate joint as a common local coordinate reference, the target relative pose of the candidate joint is combined with the current downstream feedback configuration in the kinematic chain connection order to obtain the verification reference pose corresponding to the verification observation part; the actual relative pose of the candidate joint is combined with the completely identical current downstream feedback configuration in the same order to obtain the verification prediction pose. The downstream feedback configurations calculated in the two calculations are consistent, only the local state of the candidate joint is different.
[0087] Treference = Ttargetrelative to Tdownstreamfeedback; T_predicted = T_actual relative · T_downstream feedback The verified measured pose is obtained from independent downstream visual data. The processor reads the visual measured pose of the upstream rigid component of the candidate joint and the visual measured pose of the rigid component where the verification observation part is located, which are at the same correction time as the above calculation. The visual measured pose of the rigid component where the verification observation part is located is transformed to the visual measured coordinate system of the upstream rigid component of the candidate joint to obtain the verified measured pose. The verification reference pose, the verification predicted pose and the verification measured pose are thus under the same local coordinate reference.
[0088] XIV. Downstream Predicted Residuals, Downstream Measured Residuals, and Closure Residuals The downstream prediction residual, downstream measured residual, and closure residual are established using the following relative pose transformations: T_predicted residual = (T_reference)^(-1)·T_predicted T_measured residual = (T_reference)^(-1)·T_measured T_closure residual = (T_predicted residual)^(-1)·T_measured residual The translation and rotation components of the closed residual are calculated separately. If the translation component of the closed residual does not exceed the upper limit of the translation of the closed residual for the corresponding trajectory progress, and the rotation component does not exceed the upper limit of the rotation of the closed residual for the corresponding trajectory progress, the current verification observation location satisfies the spatial closure condition. If the verification observation location is occluded, lacks independent visual features, or has no effective solution for visual pose, then no closed residual is formed at the current moment, and the current verification result is not replaced by missing data or historical closure results.
[0089] The verification reference pose and the verification predicted pose use the same downstream feedback configuration, so that the calculation conditions of the two only change between the local target state of the candidate joint and the actual mechanical state. The verification measured pose is obtained from visual feature data that did not participate in the solution of the actual relative pose of the candidate joint. Therefore, the closure judgment is not to repeatedly compare itself with the same visual result, but to independently visually verify the downstream spatial structure corresponding to the local differences of the candidate joint under the condition of fixing the downstream joint feedback state.
[0090] XV. Confirmation of Candidate Joints Candidate joints first satisfy the condition that the visual residual of the trajectory along the kinematic chain first exceeds the limit. On this basis, when the control following time difference of the candidate joint exceeds the upper limit of the baseline control following time difference of the corresponding trajectory progress segment, or the feedback closing time difference exceeds the upper limit of the baseline feedback closing time difference of the corresponding trajectory progress segment, a time response anomaly condition is formed.
[0091] When the time response anomaly condition is met, and the translation and rotation components of the closed residual do not exceed the upper limit of the corresponding closed residual, the candidate joint is determined as a trajectory anomaly associated joint. If the closed residual exceeds the allowable range, it means that the prediction result formed by the local state of the current candidate joint and the current downstream feedback configuration cannot correspond to the downstream independent visual measurement result within the baseline allowable error. The current candidate joint will not complete the association confirmation based on this, and the independent verification of other candidate joints will continue to be retained.
[0092] XVI. Two downstream verification observation sites In a further monitoring method, a first verification observation site and a second verification observation site located on different rigid components downstream of the candidate joint are selected. The visual feature data of the two verification observation sites are not used to solve the actual relative pose of the candidate joint. The first downstream feedback configuration and the second downstream feedback configuration are established according to the kinematic chain relationship between their respective rigid components and the candidate joint. For the two verification observation sites, the verification reference pose, the verification predicted pose, the verification measured pose, and the corresponding closure residual are obtained respectively. When the translation and rotation components of the first closure residual and the second closure residual do not exceed their respective upper limits, the two downstream positions are recorded as satisfying the spatial closure condition.
[0093] 17. Differentiate between controllable local residuals, mechanical closure residuals, and abnormal links. To distinguish between the control following state between the target position and the feedback position and the closed state between the feedback position and the actual mechanical output, the relative pose transformation from the target relative pose to the feedback predicted relative pose is used as the control local residual, and the relative pose transformation from the feedback predicted relative pose to the actual relative pose is used as the mechanical closed residual. The translation and rotation components of the two types of residuals are calculated respectively, and corresponding upper limits are established according to the reference operating data.
[0094] When the control follow time difference exceeds the upper limit of the baseline control follow time difference, and at least one component of the control local residual exceeds the corresponding upper limit of the baseline, while the feedback closure time difference does not exceed the upper limit of the baseline feedback closure time difference and both components of the mechanical closure residual do not exceed the corresponding upper limit of the baseline, the current anomaly will be recorded as a control follow anomaly.
[0095] When the control follow time difference does not exceed the upper limit of the reference control follow time difference, both components of the control local residual do not exceed the corresponding upper limit of the reference, the feedback closure time difference exceeds the upper limit of the reference feedback closure time difference, and at least one component of the mechanical closure residual exceeds the corresponding upper limit of the reference, the current anomaly is recorded as an anomaly where the feedback position is inconsistent with the actual mechanical output.
[0096] When both the control follow time difference and the feedback closure time difference exceed their respective upper limits, and at least one component of both the control local residual and the mechanical closure residual exceeds their respective upper limits, the current anomaly is recorded as a joint anomaly of control follow and mechanical output. Other combined states that do not meet the above three conditions are recorded as unclassified anomalies and are not forcibly assigned to any category. The confirmation results of the trajectory anomaly associated joints and the anomaly category are saved separately to avoid losing the completed spatial association results when the anomaly category cannot be determined.
[0097] 18. Data Invalidity and Undeterminable Status This implementation method only uses data with clear data sources and valid measurement conditions to complete the judgment. When visual features are insufficient or there is no valid solution for visual pose, the corresponding visual measured pose is not generated; when there is no motion range that meets the requirements of position change and direction, the time difference of that range is not calculated; when there is no unique minimum value in the time search result, the time difference is marked as undecidable; when there are no at least two qualified reference joints, the common time offset of the visual acquisition link is not updated; when the visual data of the verification observation location is invalid, the current closed residual is not formed, and the undecidable state is not replaced by zero value, previous period data, or interpolation results across missing intervals.
[0098] 19. Complete Operation Process Taking a six-joint serial industrial robot with a fixed workstation repeatedly executing a processing trajectory that includes a multi-joint collaborative motion range as an example, before monitoring, the joint zero position is confirmed, the spatial calibration of the vision acquisition device and the fixed time offset are completed. Under the actual tools, load and vision acquisition configuration, the predetermined trajectory is repeatedly executed and the benchmark operation data is formed. During formal operation, the data interface continuously obtains the target angle position, feedback angle position and control time of the six joints, and the vision acquisition device continuously obtains the visual data and acquisition time of the observation parts of each rigid component.
[0099] The processor forms the target predicted pose based on the target angular position of the upstream joints of each observation part and the existing kinematic relationship, forms the visual measured pose based on visual data, and calculates the trajectory visual residual. If, when comparing sequentially from the robot base to the end, an upstream observation part is still within the reference visual residual range, while its adjacent downstream observation part exceeds the reference visual residual range for the first time, then the joint between the two is set as the current candidate joint.
[0100] For the current candidate joint, the target relative pose, feedback prediction relative pose, and actual relative pose are formed from the target position, feedback position, and visually measured poses on both sides of the candidate joint, respectively. The visual-mechanical output position sequence is formed from the continuous actual relative poses, and the control follow time difference and feedback closure time difference are obtained. Then, the downstream verification observation position that did not participate in the solution of the actual relative pose of the candidate joint is selected. The downstream feedback configuration is formed based on the joint feedback position at the same time between the candidate joint and the verification position. The target relative pose and the actual relative pose are combined with the same downstream feedback configuration to obtain the verification reference pose and the verification prediction pose, respectively. The verification measured pose is obtained from the downstream independent visual data, and the downstream prediction residual, downstream measured residual, and closure residual are formed.
[0101] When a candidate joint meets the time response anomaly condition, and the translational and rotational components of the closed residual are both within the corresponding allowable range, the joint is identified as a trajectory anomaly associated joint. Subsequently, the abnormal response links are further distinguished using the control local residual and the mechanical closed residual. The processor outputs the trajectory anomaly associated joint, the corresponding trajectory progress segment, the control follow time difference, the feedback closed time difference, the closed residual, and the anomaly link identifier. This monitoring process ends here. Subsequent maintenance, parameter calibration, or trajectory compensation will be handled separately by the robot maintenance system.
[0102] 20. The actual source of key data In this embodiment, the equipment parameters and reference ranges used for judgment all have traceable data sources and do not use fixed empirical thresholds that are detached from specific equipment. The key data sources are shown in the table below.
[0103] For each monitoring record that forms a valid candidate joint, at least the following should be saved: the corresponding trajectory progress or trajectory progress segment, adjacent observation location identifiers, trajectory visual residual translation and rotation components, candidate joint identifiers, candidate joint target position and feedback position, target relative pose, feedback predicted relative pose, actual relative pose, feedback positions of each joint constituting the downstream feedback configuration, verification observation location identifiers, verification reference pose, verification predicted pose, verification measured pose, control follow time difference, feedback closure time difference, closure residual translation and rotation components, and each data validity marker. All of the above data are directly generated by the aforementioned processing steps and do not require the separate construction of artificial labels for anomaly judgment.
[0104]
[0105] When a certain equipment parameter or reference data is not validly recorded, it is not replaced by a speculative value. The corresponding technical branch is only executed when its required data meets the validity conditions specified in this embodiment. Through the above-mentioned data sources and invalid data boundaries, a traceable data chain is formed between the target position, feedback position, visual measured pose, time relationship, reference range, and downstream closure result, so that those skilled in the art can complete this embodiment based on the control records, structural parameters, and visual calibration results of the actual robot equipment.
[0106] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus.
[0107] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A robot trajectory anomaly monitoring system based on visual residuals and joint time differences, characterized in that, It includes a data interface, a vision acquisition device, and a processor; the data interface acquires the target position of the joint, the feedback position, and the control time; the vision acquisition device acquires the visual data of adjacent rigid components of the kinematic chain, and the adjacent rigid components are connected by a joint; The processor forms a trajectory visual afterimage from the target position and visual data, and identifies the first upstream trajectory visual residual that is within the range of the baseline visual residual and the adjacent downstream joint that is outside the range as a candidate joint. The target relative pose and actual relative pose are obtained from the candidate joint target position and the visual poses on both sides. The two are combined with the downstream feedback configuration formed by the downstream feedback position at the same time to obtain the verification reference pose and the verification prediction pose. The verification measured pose is obtained from the downstream visual data that did not participate in the actual relative pose solution. The relative pose transformation between the reference to the prediction and the reference to the measured is used as the closure residual. The control follow time difference is determined by the target position and the feedback position, and the feedback closure time difference is determined by the feedback position and the vision-mechanical output position; when at least one time difference exceeds the reference time difference range and the closure residual is within the allowable range, the candidate joint is determined as a trajectory abnormality associated joint.
2. The robot trajectory anomaly monitoring system based on visual residuals and joint time differences according to claim 1, characterized in that: The visual acquisition device has a pre-calibrated fixed spatial coordinate transformation relationship with the robot's base coordinate system, and the observation part of each rigid component is equipped with a visual feature group that maintains a fixed pose relationship with the rigid component. The processor determines the visual measured pose of the corresponding rigid component based on the image measurement results of the visual feature group, the imaging parameters of the visual acquisition device, and the fixed spatial coordinate transformation relationship. It determines the target predicted pose based on the target position of each joint involved from the robot base to the corresponding rigid component and the robot kinematic parameters. The relative pose transformation from the target predicted pose to the visual measured pose is used as the trajectory visual residual. Using the visually measured pose of the upstream rigid component of the candidate joint as a local coordinate reference, the visually measured pose of the downstream rigid component corresponding to the same time is transformed to the local coordinate reference to obtain the actual relative pose. When the candidate joint is a rotational joint, the relative rotation angle around the joint axis is obtained from the continuous actual relative pose to form a visual-mechanical output position sequence. When the candidate joint is a gliding joint, the relative displacement along the joint gliding axis is obtained from the continuous actual relative pose to form a visual-mechanical output position sequence.
3. The robot trajectory anomaly monitoring system based on visual residuals and joint time differences according to claim 2, characterized in that: The processor selects a monotonic motion interval from the two position sequences to be compared, which has a common time range and a cumulative position change greater than the corresponding position measurement resolution. Within the time difference search range defined by the follow-up error monitoring time or equivalent response monitoring time of the robot controller or servo driver, it shifts the next position sequence according to the sampling time interval, calculates the sum of squares of the position increment difference between the two position sequences in the overlapping motion interval under different time shifts, and determines the time difference by the time shift corresponding to the sum of squares having a unique minimum value. The control follow time difference is determined by the target position sequence and the feedback position sequence in the manner described above, and the measured feedback closure time difference is determined by the feedback position sequence and the visual mechanical output position sequence in the manner described above; If, within the same visual acquisition period, there are at least two reference joints that use the same visual acquisition link as the candidate joint, whose trajectory visual residuals are within the range of the corresponding baseline visual residuals, and which have effectively measured feedback closure time differences, the candidate joint is excluded. The visual acquisition link time offset correction amount is determined based on the median of the change in the measured feedback closure time difference of each reference joint relative to the representative value of the corresponding baseline feedback closure time difference. The feedback closure time difference of the candidate joint is then re-determined based on the corrected time correspondence.
4. The robot trajectory anomaly monitoring system based on visual residual and joint time difference according to claim 1, characterized in that: The reference visual residual range, reference control follow time difference range, reference feedback closure time difference range, and closure residual allowable range are established by the effective reference running data obtained by the robot after completing joint zero position confirmation, visual space calibration, and visual time calibration, under the conditions of fixed work position, unchanged installation state of visual acquisition device, and using the same predetermined trajectory, tool, and load. The reference visual residual range is established according to the translation and rotation components of the trajectory visual residual under different observation positions and trajectory progress. The reference control follow time difference range and the reference feedback closure time difference range are established according to the corresponding joints and trajectory progress segments. The allowable range of closure residual is established according to the translation and rotation components of the closure residual during reference operation.
5. The robot trajectory anomaly monitoring system based on visual residuals and joint time differences according to claim 1, characterized in that: Downstream of the candidate joint, there are first and second verification observation sites located on different rigid components. The visual data of the two verification observation sites are not used to solve the actual relative pose of the candidate joint. There is no other turning point between the candidate joint and the corresponding verification observation site where the upstream trajectory visual residual is within the range of the reference visual residual and the adjacent downstream exceeds the range. The first downstream feedback configuration and the second downstream feedback configuration are formed based on the joint feedback positions at the same time between the candidate joint and the first and second verification observation sites. The target relative pose and actual relative pose of the candidate joint are combined with the first downstream feedback configuration to obtain the first verification reference pose and the first verification predicted pose, and form a first closure residual with the first verification measured pose; the target relative pose and actual relative pose of the candidate joint are combined with the second downstream feedback configuration to obtain the second verification reference pose and the second verification predicted pose, and form a second closure residual with the second verification measured pose; when both the first closure residual and the second closure residual are within their respective allowable ranges, the candidate joint is determined to satisfy the dual downstream spatial closure condition.
6. A robot trajectory anomaly monitoring method based on visual residuals and joint time differences, applied to the robot trajectory anomaly monitoring system based on visual residuals and joint time differences as described in any one of claims 1 to 6, characterized in that: Acquire visual data of the joint target position, feedback position, control time, and kinematic chain of adjacent rigid components, which are connected by a joint; A trajectory visual residual is formed from the target position and visual data. The first upstream trajectory visual residual is within the range of the baseline visual residual, while the adjacent downstream joints are outside the range, and the joints are identified as candidate joints. The target relative pose and actual relative pose are obtained from the candidate joint target position and the visual poses on both sides. The two are combined with the downstream feedback configuration formed by the downstream feedback position at the same time to obtain the verification reference pose and the verification prediction pose. The verification measured pose is obtained from the downstream visual data that did not participate in the actual relative pose solution. The relative pose transformation between the reference to the prediction and the reference to the actual measurement is used as the closed residual; The control follow time difference is determined by the target position and the feedback position, and the feedback closure time difference is determined by the feedback position and the vision-mechanical output position; when at least one time difference exceeds the reference time difference range and the closure residual is within the allowable range, the candidate joint is identified as a trajectory abnormality associated joint.
7. The robot trajectory anomaly monitoring method based on visual residual and joint time difference according to claim 6, characterized in that: Based on the pre-calibrated fixed spatial coordinate transformation relationship between the visual acquisition device and the robot's base coordinate system, and the fixed pose relationship between the visual feature group of the observation part and the corresponding rigid component, the visual measured pose of each rigid component is determined. Using the visually measured pose of the upstream rigid component of the candidate joint as the local coordinate reference, the visually measured pose of the downstream rigid component of the candidate joint at the same time is transformed to the local coordinate reference to obtain the actual relative pose. When the candidate joint is a rotational joint, the relative rotation angle around the joint axis is extracted from the continuous actual relative poses; When the candidate joint is a moving joint, the relative displacement along the joint movement axis is extracted from the continuous actual relative poses, and the relative rotation angle or relative displacement is arranged according to the acquisition time of the corresponding visual data to form a visual mechanical output position sequence.
8. The robot trajectory anomaly monitoring method based on visual residual and joint time difference according to claim 6, characterized in that: From the two position sequences to be compared, select a monotonic motion interval with a common time range and a cumulative position change greater than the corresponding position measurement resolution. Within the time difference search range defined by the robot controller or servo driver, shift the next position sequence sequentially according to the sampling time interval, calculate the sum of squares of the position increment difference between the two position sequences in the overlapping motion interval under different time shifts, and determine the time difference by the time shift corresponding to the sum of squares having a unique minimum value. The control follow-up time difference and the measured feedback closure time difference are determined respectively using the methods described above. If, within the same visual acquisition period, there are at least two reference joints that use the same visual acquisition link as the candidate joint, whose trajectory visual residuals are within the range of the corresponding baseline visual residuals, and which have effectively measured feedback closure time differences, the candidate joints are excluded. The visual data acquisition time is corrected by the median of the change in the feedback closure time difference measured by each reference joint relative to the representative value of the corresponding baseline feedback closure time difference, and the feedback closure time difference of the candidate joints is re-determined according to the corrected time correspondence.
9. The robot trajectory anomaly monitoring method based on visual residual and joint time difference according to claim 6, characterized in that: Based on the fixed geometric relationship between the rigid member downstream of the candidate joint and the rigid member where the downstream verification observation site is located, as well as the feedback position of each joint at the corresponding moment of the closure verification, the coordinate transformation at each level is determined according to the kinematic chain order, and the downstream feedback configuration is formed. The target relative pose is combined with the downstream feedback configuration to obtain the verification reference pose. The actual relative pose is combined with the same downstream feedback configuration to obtain the verification prediction pose. The visual measured pose of the downstream verification observation part is converted to the local coordinate reference of the rigid component upstream of the candidate joint to obtain the verification measured pose. The relative pose transformation from the verification reference pose to the verification predicted pose is used as the downstream prediction residual, the relative pose transformation from the verification reference pose to the verification measured pose is used as the downstream measured residual, and the relative pose transformation from the downstream prediction residual to the downstream measured residual is used as the closed residual. The translation vector magnitude and relative rotation angle of the closed residual are obtained as its translation component and rotation component, respectively.
10. The robot trajectory anomaly monitoring method based on visual residual and joint time difference according to claim 6, characterized in that: The feedback prediction relative pose is determined based on the feedback position of the candidate joint and the fixed geometric relationship between the rigid components on both sides of the candidate joint. The relative pose transformation from the target relative pose to the feedback prediction relative pose is used as the control local residual, and the relative pose transformation from the feedback prediction relative pose to the actual relative pose is used as the mechanical closure residual. When the control follow-up time difference exceeds the corresponding reference range and at least one component of the control local residual exceeds the corresponding reference range, while the feedback closure time difference and mechanical closure residual are both within the corresponding reference range, it is determined to be a control follow-up anomaly. When the control follow-up time difference and control local residual are both within the corresponding reference range, but the feedback closure time difference exceeds the corresponding reference range and at least one component of the mechanical closure residual exceeds the corresponding reference range, it is determined that the feedback position is inconsistent with the actual mechanical output. When both the control follow-up time difference and the feedback closure time difference exceed their respective reference ranges, and at least one component of both the control local residual and the mechanical closure residual exceeds their respective reference ranges, it is determined that both control follow-up and mechanical output are abnormal.
