A collaborative robot collision detection method and system based on dynamic threshold

By establishing a dynamic threshold observer in the collaborative robot, the problem of false negatives in fixed threshold detection is solved, the sensitivity and reliability of collision detection are improved, and the safety of human-machine collaboration is improved.

CN114952939BActive Publication Date: 2024-10-29WUHAN JIUTONG INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210594812.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-27
Publication Date
2024-10-29
Estimated Expiration
2042-05-27

AI Technical Summary

Technical Problem

Existing collision detection methods have challenges in avoiding false negatives and improving sensitivity. Especially in human-machine collaboration, fixed threshold detection can easily lead to false negatives and cannot effectively identify collision types.

Method used

A collaborative robot collision detection method based on dynamic thresholds is used to determine the dynamic threshold boundary by establishing the time-varying equation of the generalized momentum observer and the friction commutation error, and adjust the dynamic threshold parameters in real time to determine the occurrence of a collision.

Benefits of technology

It improves the reliability and sensitivity of collision detection, avoids false negatives, and improves safety performance in human-machine collaboration. The dynamic threshold can follow changes in observer errors, enhancing the ability to identify collision types.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114952939B_ABST
    Figure CN114952939B_ABST
Patent Text Reader

Abstract

The present invention relates to a collaborative robot collision detection method and system based on dynamic threshold, and the method includes: establishing a generalized momentum observer according to a robot dynamics model and a nonlinear friction model, and determining the time-varying equation of its residual; determining the time-varying threshold boundary of the generalized momentum observer residual according to the time-varying equation and the friction commutation error; identifying the generalized momentum observer dynamic threshold parameter according to the time-varying threshold boundary; obtaining and comparing the residual output of the generalized momentum observer in real time and calculating the dynamic threshold parameter value according to the residual output, and judging whether the collaborative robot collides according to the dynamic threshold parameter value. The dynamic threshold method provided by the present invention can change with the observer error, improve the reliability and sensitivity of collision detection, and especially avoid the underreporting of collision detection, thereby improving the safety performance in human-machine collaboration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of robot automation control, and in particular relates to a collaborative robot collision detection method and system based on dynamic threshold. Background Art

[0002] Collision detection is the core content of human-machine collaboration. Domestic and foreign scholars have proposed a variety of detection methods for this purpose, which can be divided into two categories according to whether external sensors are included. Kwan et al. used LiDAR and 3D scanners to model the working environment in real time. Compared with the depth camera image modeling method, it avoids the image projection problem, but the dynamic modeling task is more time-consuming. The Bosch robot covers the surface of the connecting rod with capacitive electronic skin, which can feedback the human-machine contact to the control system in a tactile way. However, considering that external sensors are usually expensive, and the complex wiring method will affect the robot configuration. Therefore, in practical applications, people prefer the technical route without external sensors, and rely on model recognition information to establish a collision observer to achieve economical and efficient collision detection.

[0003] Early collision observers used the robot's joint motion information as input, obtained the theoretical joint drive torque and compared it with the sampled drive torque to determine whether a collision occurred. However, this method requires joint acceleration information, so there will be certain noise and delay. From the perspective of the energy method, Lu Jimin proposed a collision detection algorithm based on an energy deviation observer. The robot system is regarded as a whole. When an external collision occurs, the work done by the motor increases, resulting in energy changes. The output torque and corresponding displacement during the collision are monitored, thereby avoiding the calculation of acceleration. The control block diagram is shown below. Figure 1 As shown in the figure, since the detection process requires the derivation of energy, which results in a delay, PD control is added to the forward channel, and the oscillation after the collision is suppressed through the second-order system, which improves the response speed and reduces the overshoot.

[0004] In addition to the perspective of energy analysis, Deluca et al. proposed an observer based on generalized momentum for collision detection from the perspective of momentum detection. This method relies on the dynamic model to realize the construction of a first-order low-pass filter. It only needs to input information such as joint velocity, displacement and current to estimate the magnitude of the external collision force. It has been verified to be a mature and complete framework, which is applied to the online detection of collaborative robot collisions. In view of the external environmental disturbances during the operation of the robot, Song Hongxiang was inspired by the "radio frequency interference cancellation" technology in the communication field, and then proposed an extended state observer based on self-interference cancellation technology. By utilizing the observation differences between the front observer and the back-end extended state observer when detecting external disturbance signals, the modeling error and external collision are regarded as internal disturbance and external disturbance respectively, and then the external disturbance separation is completed to realize collision detection. The working principle is as follows Figure 2However, this observer cannot estimate the actual torque when detecting disturbances, so it is suitable for applications that only need to judge collisions without accurately estimating torque.

[0005] Due to the successful application of generalized momentum observer in collision detection, subsequent scholars have conducted many derivative research discussions based on this. Alexandros used the Hann window to perform fast Fourier transform on the current signal, and noticed that different contacts with the robot would produce different frequency signals. Combining the previous research on active dragging and accidental collisions in human-machine collaboration, he proposed a method for distinguishing human-machine contact types based on frequency domain analysis. Li Zhijing refined and improved the frequency domain analysis method, and proposed a virtual sensor to detect and classify human-machine collisions. The virtual sensor contains two filters, a low-pass filter and a band-pass filter. Its principle process is as follows: Figure 3 As shown. A low-pass filter is used to complete the collision detection, and then a band-pass filter is designed based on the current frequency domain distribution characteristics to filter out the low-frequency contact signal and high-frequency noise, and only observe the frequency signal of the accidental collision. By comparing the output signals of the two observers, the collision torque is accurately estimated, and the type of human-machine collision is distinguished, which has strong practical application significance.

[0006] In summary, the common collision detection methods are summarized as shown in the following table (Table 1):

[0007]

[0008] It can be seen that compared with the joint torque observation method, the momentum observer can observe the external collision torque without the help of external sensors, but it cannot effectively identify the collision type. The virtual sensor is based on the current frequency information and outputs the virtual torque amplitude for observation, which can effectively distinguish the collision type, but it has the disadvantage of not being able to detect the magnitude of the collision torque. Therefore, in actual use, it is usually necessary to improve the above observation method to complete human-machine collision detection and type identification. Summary of the invention

[0009] In order to avoid missed collisions in fixed threshold detection and improve the sensitivity of disturbance observer detection, a first aspect of the present invention provides a collaborative robot collision detection method based on dynamic thresholds, including: establishing a generalized momentum observer according to a robot dynamics model and a nonlinear friction model, and determining a time-varying equation of its residual; determining a time-varying threshold boundary of the generalized momentum observer residual according to the time-varying equation and friction commutation error; identifying a dynamic threshold parameter of the generalized momentum observer according to the time-varying threshold boundary; obtaining and comparing the residual output of the generalized momentum observer in real time and calculating the dynamic threshold parameter value based on it, and judging whether the collaborative robot collides according to the dynamic threshold parameter value.

[0010] According to a second aspect of the present invention, a collaborative robot collision detection system based on dynamic thresholds is provided, comprising: a first determination module, used to establish a generalized momentum observer according to a robot dynamics model and a nonlinear friction model, and determine a time-varying equation of its residual; a second determination module, used to determine a time-varying threshold boundary of the generalized momentum observer residual according to the time-varying equation and the friction commutation error; an identification module, used to identify a dynamic threshold parameter of the generalized momentum observer according to the time-varying threshold boundary; and a judgment module, used to obtain and compare the residual output of the generalized momentum observer in real time and calculate the dynamic threshold parameter value based on it, and judge whether a collaborative robot collides according to the dynamic threshold parameter value.

[0011] The third aspect of the present invention provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the dynamic threshold-based collaborative robot collision detection method provided in the first aspect of the present invention.

[0012] A fourth aspect of the present invention provides a computer-readable medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the collaborative robot collision detection method based on dynamic threshold provided in the first aspect of the present invention.

[0013] The beneficial effects of the present invention are:

[0014] 1. The friction commutation error when the speed passes through zero is considered and used as a compensation item in determining the boundary of the dynamic threshold. The dynamic threshold follows the observer output in real time to avoid the phenomenon of excessive amplification of the overall threshold caused by local spikes such as commutation friction, thereby improving the reliability and sensitivity of collision detection.

[0015] 2. Compared with the existing collision detection technology based on fixed thresholds, the output threshold of the dynamic threshold method of the present invention can change with the observer error, especially avoiding the underreporting of collision detection, and improving the safety performance in human-machine collaboration. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a block diagram of collision detection control based on energy method in the prior art;

[0017] Figure 2 It is a block diagram of an extended state observation based on a self-interference cancellation technology in the prior art;

[0018] Figure 3 It is a block diagram of a virtual sensor based on frequency domain analysis in the prior art;

[0019] Figure 4A basic flow chart of a collaborative robot collision detection method based on dynamic thresholds in some embodiments of the present invention;

[0020] Figure 5 Schematic diagram of fixed threshold and dynamic threshold detection in some embodiments of the present invention;

[0021] Figure 6 Comparison diagram of responses of different gain coefficients Kr in some embodiments of the present invention;

[0022] Figure 7 Schematic diagram of the relationship between the observer output and the dynamic threshold change when there is no collision in some embodiments of the present invention;

[0023] Figure 8 Waveform diagram of fixed threshold detection of disturbance observer in the prior art;

[0024] Fig. 9 Waveform diagram of disturbance observer dynamic threshold detection in some embodiments of the present invention;

[0025] Fig.10 is a schematic structural diagram of a collaborative robot collision detection system based on dynamic thresholds in some embodiments of the present invention;

[0026] Fig.11 It is a schematic diagram of the structure of an electronic device in some embodiments of the present invention. DETAILED DESCRIPTION

[0027] The principles and features of the present invention are described below in conjunction with the accompanying drawings. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.

[0028] refer to Figure 4 and Figure 5 In the first aspect of the present invention, a collaborative robot collision detection method based on dynamic threshold is provided, comprising: S100. Establishing a generalized momentum observer according to the robot dynamics model and the nonlinear friction model, and determining the time-varying equation of its residual; S200. Determining the time-varying threshold boundary of the generalized momentum observer residual according to the time-varying equation and the friction commutation error; S300. Identifying the dynamic threshold parameter of the generalized momentum observer according to the time-varying threshold boundary; S400. Obtaining and comparing the residual output of the generalized momentum observer in real time and calculating the dynamic threshold parameter value based on it, and judging whether the collaborative robot collides according to the dynamic threshold parameter value.

[0029] In step S100 of some embodiments of the present invention, establishing a generalized momentum observer according to the robot dynamics model and the nonlinear friction model, and determining the time-varying equation of its residual includes the following steps:

[0030] Due to errors in modeling, identification, and sampling data, the actual generalized momentum observer residual can be expressed as:

[0031] Formula (1);

[0032] From the Laplace transform we can get:

[0033] Formula (2);

[0034] Among them, r, τ, Z, P, and f represent the output of the generalized momentum observer, torque, position coordinates, generalized momentum, and friction force, respectively; represents the actual value obtained by calculation or sampling corresponding to r, τ, Z, and P, is the convolution operation; q represents the joint position parameter, k represents the gain coefficient; ε represents the filter coefficient, and t represents the time; τ m Represents the driving torque of the joint.

[0035] Furthermore, the theoretical output and actual output error of the observer can be defined as follows:

[0036] Formula (3);

[0037] Using the robot dynamics model, substituting formula (2) into formula (3) yields:

[0038] Formula (4).

[0039] In step S200 of some embodiments of the present invention, determining the time-varying threshold boundary of the generalized momentum observer residual according to the time-varying equation and the friction commutation error includes: S201. Based on the parameter set extracted from the robot dynamics model and the nonlinear friction model, separating the time-varying equation into a first error term and a second error term; wherein: the first error term is a dynamics model error term, and the second error term is a nonlinear friction model term;

[0040] Specifically, the dynamic modeling error and friction error are defined according to formula (4):

[0041] Formula (5);

[0042] S202. Correct the second error term according to the friction commutation error; specifically, when there is no external force input, eliminate the modeling error in formula (5), and the observer residual output can be obtained as:

[0043] Formula (6).

[0044] Since the parameter set extracted from the robot dynamics model and nonlinear friction model can intuitively represent the modeling error, it can be approximately expressed by formula (5):

[0045] Formula (7);

[0046] in, is the diagonal matrix of proportionality coefficients, is the compensation term, keeping both sides of the equation valid. Considering that the error of the friction part is largely caused by model fitting, the commutation error when the speed passes through zero is the largest. Therefore, the friction modeling error can be adjusted to the following form, focusing on compensating the friction commutation error near the speed zero point:

[0047] Formula (8),

[0048] In the formula, For friction commutation error compensation, That is, the friction model parameters, is an exponential order, and this paper takes a fixed value of 3. At this time, the friction modeling error can be expressed as:

[0049] Formula (9).

[0050] S203. Take the compensation amount in the first error term and the second error term as constraints to determine the time-varying threshold boundary of the generalized momentum observer residual. Specifically, for the output error of the observer model, the output time-varying threshold boundary Lim is set by formula (6):

[0051] Formula (10),

[0052] By shifting the formula left and right and scaling it, we can get the upper and lower bounds of the threshold of the observer output as follows:

[0053] Formula (11),

[0054] In the formula, is the lower threshold, is the upper threshold, for Maximum constant after merging equal threshold boundaries.

[0055] In step S300 of some embodiments of the present invention, the dynamic threshold parameter of the generalized momentum observer is identified according to the time-varying threshold boundary. Specifically, the coefficient of the dynamic threshold can be identified from the fitting residual output by the model. are all known, so their coefficients (parameters) can be identified by the least squares method. , the solution formula is constructed as follows:

[0056] Formula (12).

[0057] As for As the boundary of the constant term, it can be determined by the maximum error in the least squares identification, thereby completing the setting of the dynamic threshold.

[0058] In step S400 of some embodiments of the present invention, the residual output of the generalized momentum observer is obtained in real time and the dynamic threshold parameter value is calculated based on the residual output, and whether the collaborative robot collides is determined based on the dynamic threshold parameter value.

[0059] The present invention calculates and verifies the error tolerance of the dynamic threshold obtained by the above method when the joint velocity passes through zero. Specifically, based on the transfer function of the robot dynamics model, the momentum-based disturbance observer model is constructed, and the setting of the gain coefficient Kr will affect the output accuracy and response speed of the disturbance observer. Therefore, the influence of different Kr values ​​on the model is tested first. First, a disturbance observer is built based on Simklink, and then the kinematic data is imported based on the static model of the robot in zero gravity. A square wave external torque with an amplitude of 10N·m and a period of 0.17s is introduced. Three sets of gain coefficients Kr are set to K1=100, K2=500, and K3=1000 respectively. Compared with the original signal, the results are as follows. Figure 6 shown.

[0060] Depend on Figure 6 From the analysis, it can be seen that different gain coefficients of the disturbance observer will eventually respond to the actual amplitude for the external torque disturbance, but the signal response speed of K2 and K3 is much faster than coefficient K1, indicating that for the first-order transfer function model, a higher cutoff frequency can get a faster response speed. However, considering the performance of the observer's low-pass filter, too high a cutoff frequency will bring unnecessary noise, thereby deteriorating the observation results. Considering that K2 and K3 have relatively close response speeds, in order to balance the observer's fast response and noise reduction capabilities, the gain coefficient Kr can generally be set to 500.

[0061] After determining the basic parameters of the disturbance observer, it can be deployed to the actual motion process of the collaborative robot. Check the model output error of the observer when no collision occurs and compare it with the proposed dynamic threshold to verify the ability of the dynamic threshold method to track the output error. Taking the J2 joint of Techrobot as an example, record the output error of the observer and use the least squares method to identify the threshold coefficient, and you can get =0.1523, =1.5021, adjustment constant =10.0760 N·m, The exponential coefficient in is the same as the friction identification parameter.

[0062] Substitute the threshold coefficient into the dynamic threshold upper and lower bounds , we can get the relationship between the observer output and the dynamic threshold change when there is no collision as follows Figure 7 As shown in the figure, it can be seen that the output value of the observer does fluctuate when there is no collision, and when the joint speed changes, there will be a significant output spike due to the difference in friction model fitting. The exponential form of the term is used to track the error, which can effectively expand the upper limit of the threshold near the zero point of velocity, thereby realizing the dynamic time variation of the threshold and improving the detection performance of the observer.

[0063] Furthermore, by comparing the output of the observer with and without collision, it can be found that the experimental group has two obvious output torque changes around 5s and 11s, which means that the external collision torque is detected at this moment, indicating the observation ability of the disturbance observer on the external torque. It is also observed that regardless of whether a collision occurs, the observer will detect the commutation error, which can be effectively avoided by setting the threshold method.

[0064] As an external torque sensing tool in collision detection, the generalized momentum observer is affected by identification, data sampling and other links during the modeling process, and its output will fluctuate around the true value. Collision detection can be achieved by setting a reasonable threshold to filter the residual disturbance. The method for obtaining a fixed threshold is to let the robot's joints run for a long enough time without collision, and increase the maximum value of each axis disturbance. times to get a fixed threshold, take =20%, the thresholds are shown in the following table:

[0065] Table 2 Collision detection fixed threshold parameters

[0066]

[0067] Let the robot run the preset working trajectory, and use the fixed threshold method of the disturbance observer to check the collision detection of the collaborative robot around 5s and 11s. Figure 8 As shown in the figure. When the observer output is greater than the fixed threshold, the collision is considered to have been detected. When the two collisions act on the robot body, the collision torque on J6 joint is small due to the small force arm, so the collision torque is mainly manifested in the J1-J5 joints.

[0068] from Figure 8It can be seen that when using the fixed threshold algorithm, joints such as J2-J4 detected two collisions, while joints J1 and J5 only detected one collision, missing the collision at time T1. Analyzing the reasons, it was found that the commutation error of joints J1 and J5 was greater than the collision torque at T1, which in turn caused the fixed threshold to be greater than the collision torque at T1, resulting in missed reports. If the fixed threshold is reduced in order to detect the collision, the commutation error will be greater than the fixed threshold, resulting in a "false alarm". In order to improve the missed reports and false alarms during collision detection and improve the effectiveness and sensitivity of collision detection, it is necessary to introduce a dynamic threshold method.

[0069] Similar to the acquisition of fixed threshold, the robot is also operated without external collision and the observer residual output is recorded. Substituting it into formula (12) for least squares solution, the dynamic threshold parameter can be obtained: Then, according to the maximum error value of the residual fitting, the boundary parameters are determined. , the threshold parameters of each axis are obtained as shown in Table 3:

[0070] Table 3 Collision detection dynamic threshold parameters

[0071]

[0072] Deploy the dynamic threshold to the same collision output and see how the disturbance observer detects the dynamic threshold. Fig. 9 As shown in the figure, it can be seen that when the dynamic threshold algorithm is used, the two collisions of J1-J5 can be accurately detected without missing any detection. The detection time and results of the fixed threshold and the dynamic threshold are compared, as shown in Table 4.

[0073] Table 4 Comparison of fixed threshold and dynamic threshold detection time

[0074]

[0075] As can be seen from Table 4, compared with the fixed threshold detection method, the dynamic threshold can be used to detect 2-3 detection cycles earlier on average, and the fixed threshold will not miss J1 and J5 at time T1. Comparing Tables 2 and 3, it can be seen that the minimum collision torque that can be detected by the dynamic threshold is lower than that of the fixed threshold method, and the detection sensitivity of the minimum torque of each axis can be improved by about 61% on average. In summary, the output threshold of the dynamic threshold method can change with the observer error, and it has more advantages in the reliability and sensitivity of collision detection, especially it can avoid missed collision detection, and improve the safety performance in human-machine collaboration.

[0076] Example 2

[0077] refer to Fig.10According to a second aspect of the present invention, a dynamic threshold-based collaborative robot collision detection system 1 is provided, comprising: a first determination module 11, for establishing a generalized momentum observer according to a robot dynamics model and a nonlinear friction model, and determining a time-varying equation of its residual; a second determination module 12, for determining a time-varying threshold boundary of the generalized momentum observer residual according to the time-varying equation and the friction commutation error; an identification module 13, for identifying a dynamic threshold parameter of the generalized momentum observer according to the time-varying threshold boundary; and a judgment module 14, for obtaining and comparing the residual output of the generalized momentum observer in real time and calculating the dynamic threshold parameter value based on the residual output, and judging whether a collaborative robot collides according to the dynamic threshold parameter value.

[0078] Furthermore, the second determination module includes: a separation unit, which is used to separate the time-varying equation into a first error term and a second error term based on a parameter set extracted from a robot dynamics model and a nonlinear friction model; wherein: the first error term is a dynamics model error term, and the second error term is a nonlinear friction model term; a correction unit, which is used to correct the second error term according to a friction commutation error; and a determination unit, which is used to determine the time-varying threshold boundary of the generalized momentum observer residual by using the compensation amount in the first error term and the second error term as a constraint.

[0079] Example 3

[0080] refer to Fig.11 According to a third aspect of the present invention, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method of the first aspect of the present invention.

[0081] The electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0082] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.11 The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Fig.11 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0083] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, the above functions defined in the method of the embodiment of the present disclosure are executed. It should be noted that the computer-readable medium described in the embodiment of the present disclosure can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In an embodiment of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, an apparatus, or a device. In an embodiment of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, an apparatus, or a device. The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wire, optical cable, RF (radio frequency), etc., or any suitable combination of the foregoing.

[0084] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device. The computer-readable medium carries one or more computer programs. When the one or more programs are executed by the electronic device, the electronic device:

[0085] Computer program code for performing the operations of embodiments of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, Python, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as a separate software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0086] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0087] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A collaborative robot collision detection method based on dynamic threshold, characterized in that: include: A generalized momentum observer is established based on the robot dynamics model and nonlinear friction model, and the time-varying equation of its residual is determined; According to the time-varying equation and the friction commutation error, the time-varying threshold boundary of the generalized momentum observer residual is determined: based on the parameter set extracted from the robot dynamics model and the nonlinear friction model, the time-varying equation is separated into a first error term and a second error term; wherein: the first error term is the dynamics model error term, and the second error term is the nonlinear friction model term; the second error term is corrected according to the friction commutation error; the compensation amount in the first error term and the second error term is used as a constraint to determine the time-varying threshold boundary of the generalized momentum observer residual; the friction commutation error is expressed as: , in, For friction commutation error compensation, That is, the friction model parameters, is the exponential order, represents the first-order derivative of the joint position parameter with respect to time; the second error term is expressed as: ; in, represents the second error term, is the diagonal matrix of proportionality coefficients, is the time-varying compensation term of the nonlinear friction model; identifying a generalized momentum observer dynamic threshold parameter according to the time-varying threshold boundary; The residual output of the generalized momentum observer is obtained in real time, and the dynamic threshold parameter value is calculated based on the residual output of the generalized momentum observer, and whether the collaborative robot collides is determined based on the dynamic threshold parameter value.

2. The dynamic threshold-based collaborative robot collision detection method according to claim 1, characterized in that: The method of using the compensation amount in the first error term and the second error term as a constraint to determine the time-varying threshold boundary of the generalized momentum observer residual includes: The maximum value of the compensation amount in the first error term and the second error term is used as an inequality constraint term of the time-varying threshold of the generalized momentum observer residual; An upper bound and a lower bound of a time-varying threshold of a generalized momentum observer residual are determined according to the inequality constraint term and the time-varying equation.

3. The collaborative robot collision detection method based on dynamic threshold according to claim 1, characterized in that: The identifying the dynamic threshold parameter of the generalized momentum observer according to the time-varying threshold boundary includes: identifying the dynamic threshold parameter of the generalized momentum observer by using a least square method and a time-varying threshold boundary.

4. The collaborative robot collision detection method based on dynamic threshold according to any one of claims 1 to 3, characterized in that: The time-varying equation is expressed as: , Among them, r, τ, Z, P, and f represent the output of the generalized momentum observer, torque, position coordinates, generalized momentum, and friction force, respectively; represents the actual value obtained by calculation or sampling corresponding to r, τ, Z, and P, is the convolution operation; q represents the joint position parameter, k represents the gain coefficient; ε represents the filter coefficient, and t represents the time; Indicates the error of the actual value calculated or sampled corresponding to the driving torque of the joint; Indicates the error of the actual value calculated or sampled corresponding to the position coordinate; Indicates the error of the calculated or sampled actual value corresponding to the friction torque; represents the error of the actual value calculated or sampled corresponding to the generalized momentum, Represents the first-order derivative of the joint position parameters with respect to time.

5. A collaborative robot collision detection system based on dynamic threshold, characterized in that: include: The first determination module is used to establish a generalized momentum observer according to the robot dynamics model and the nonlinear friction model, and determine the time-varying equation of its residual; The second determination module is used to determine the time-varying threshold boundary of the generalized momentum observer residual according to the time-varying equation and the friction commutation error: based on the parameter set extracted from the robot dynamics model and the nonlinear friction model, the time-varying equation is separated into a first error term and a second error term; wherein: the first error term is the dynamics model error term, and the second error term is the nonlinear friction model term; the second error term is corrected according to the friction commutation error; the compensation amount in the first error term and the second error term is used as a constraint to determine the time-varying threshold boundary of the generalized momentum observer residual; the friction commutation error is expressed as: , in, For friction commutation error compensation, That is, the friction model parameters, is the exponential order; the second error term is expressed as: ; in, represents the second error term, is the diagonal matrix of proportionality coefficients, is the time-varying compensation term of the nonlinear friction model; an identification module, configured to identify a dynamic threshold parameter of a generalized momentum observer according to the time-varying threshold boundary; The judgment module is used to obtain the residual output of the generalized momentum observer in real time and calculate the dynamic threshold parameter value based on it, and judge whether the collaborative robot collides according to the dynamic threshold parameter value.

6. An electronic device comprising: one or more processors; A storage device for storing one or more programs, characterized in that when the one or more programs are executed by the one or more processors, the one or more processors implement the dynamic threshold-based collaborative robot collision detection method as described in any one of claims 1 to 4.

7. A computer readable medium having a computer program stored thereon, characterized in that: in, When the computer program is executed by a processor, the collaborative robot collision detection method based on dynamic threshold is implemented as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Robot collision detection method and robot collision detecting device

    CN107813345A

  • Mechanical arm safety collision strategy based on external force observer

    CN108772838A