A collision response control method of a robotic arm based on smooth switching
By establishing a dynamic regression model of the robotic arm and designing a smooth switching function, the smooth switching of the robotic arm during collision is achieved, which solves the problem of unstable control states in the existing technology and improves the safety and system stability of the robotic arm.
Patent Information
- Application Number
- CN202210792476.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-05
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-07-05
AI Technical Summary
The existing collision response method of the robotic arm cannot achieve smooth switching of the control state, resulting in low safety of the robotic arm operation.
By establishing a dynamic regression model of the robotic arm, designing threshold functions and smooth switching functions, we can obtain joint control torques, realize smooth switching of the robotic arm during collision, and switch from position control mode to compliance control mode to avoid sudden changes in control quantities and system instability. .
It achieves a reasonable response of the robotic arm after a collision, ensures the safety of the robotic arm and the surrounding environment, solves the problem of unstable control status, and improves the stability of the system.
Smart Images

Figure CN115194764B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of collision response, and in particular to a robot arm collision response control method based on smooth switching. Background Art
[0002] The robot arm is an automatic control device that can imitate the functions of human arms to complete various tasks. It has the characteristics of high precision, strong bearing capacity and strong rigidity. The movement of the robot arm is carried out according to the received instructions, so it does not have the ability to sensitively detect and respond to external collisions. Therefore, it is very easy for the robot arm to collide during the operation, thus affecting the safety of the operation. Reasonable collision response capability can ensure the safety of the robot arm itself and the surrounding environment, so the collision response of the robot arm has become a research focus in this field.
[0003] At present, the simplest collision response strategy is to stop the robot arm or move it in the direction away from the collision. However, although this method ensures the safety of the robot arm when it is subjected to unexpected impact, it cannot respond reasonably to the human-computer interaction scenario. Therefore, technicians in this field have proposed a collision response strategy based on compliant control. This method can not only buffer the unexpected impact force on the robot arm, but also ensure the safety of human-computer interaction. It is a widely used collision response method. However, the existing collision response method based on compliant control usually uses a "hard switch" method to switch the control mode from position control to compliant control after detecting a collision, which is prone to sudden changes in control quantities or even system instability, making it difficult for the collision response method to achieve smooth switching of control states, thereby affecting the operational safety of the robot arm. Summary of the invention
[0004] The purpose of the present invention is to solve the problem that the current robot arm collision response method cannot achieve smooth switching of the control state, which leads to low safety of robot arm operation, and proposes a robot arm collision response control method based on smooth switching.
[0005] A robot arm collision response control method based on smooth switching. The specific process is as follows:
[0006] Step 1: Establish a dynamic regression model of the robotic arm;
[0007] Step 2: Design the threshold function β(τ ext ), and according to the threshold function β(τ ext ) Obtain the robot arm smooth switching function ω;
[0008] Step 3: Obtain the control torque of the robot joint according to the smooth switching function designed in step 2;
[0009] Step 4: Substitute the robot joint control torque obtained in step 3 into the robot dynamics regression model established in step 1 to obtain a smooth switching method for robot collision:
[0010] If the robot arm is not subjected to external force, the threshold function β(τ ext )<0, smooth switching function ω=1, the robot arm works in position control mode, if the robot arm is subjected to external force, the threshold function β(τ ext )>0, the smooth switching function ω=0, and the robot arm works in the compliant control mode.
[0011] The beneficial effects of the present invention are:
[0012] The collision response method proposed in the present invention enables the robot arm to make a reasonable response after a collision occurs, providing safety protection for the robot arm and the surrounding environment. The present invention solves the problem of sudden change of control quantity or even system instability caused by the "hard switching" method of the existing collision response method based on compliant control by designing a joint control torque that can achieve smooth switching, thereby ensuring the stability of the robot arm system. The present invention is easy to implement in engineering. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 It is a working principle diagram of the collision response of the mechanical arm in the present invention;
[0014] Figure 2 It is a graphical explanation diagram of the switching function of the present invention. DETAILED DESCRIPTION
[0015] Specific implementation method 1: The specific process of a robot arm collision response control method based on smooth switching in this implementation method is as follows:
[0016] Step 1: Establish a dynamic regression model of the robotic arm;
[0017] Step 2: Design the threshold function β(τ ext ), and according to the threshold function β(τ ext ) Obtain the robot arm smooth switching function ω;
[0018] Step 3: Obtain the control torque of the robot joint according to the smooth switching function designed in step 2;
[0019] Step 4: Substitute the robot joint control torque obtained in step 3 into the robot dynamics regression model established in step 1 to obtain the robot collision response:
[0020] Determine whether the robot arm is subjected to external force. If the robot arm is not subjected to external force, the threshold function β(τ ext )<0, smooth switching function ω=1, the robot arm works in position control mode, if the robot arm is subjected to external force, the threshold function β(τext )>0, the smooth switching function ω=0, and the robot arm works in the compliant control mode;
[0021] Step 5: Verify whether the robot system works stably in the position control mode when there is no external force and whether the robot system works stably in the compliant control mode when there is an external force.
[0022] Specific implementation method 2: The establishment of the mechanical arm dynamics regression model in step 1 is as follows:
[0023] The Newton-Lagrangian method is used to establish the dynamic model of the robotic arm and linearize the model, as follows:
[0024]
[0025] Among them, q, are the joint position, velocity, and acceleration of the robot arm, respectively; M(q), D, g(q) are the inertia matrix, viscous friction matrix, and gravity vector of the robot arm, respectively; is the Coriolis force and centripetal force matrix of the robot; For the robot arm The regression matrix; p is the dynamic parameter vector of the robot arm; τ m , τ ext They are the control torque of the robot joint and the external torque they are subjected to respectively.
[0026] Specific implementation method three: The threshold function β(τ ext ), and according to the threshold function β(τ ext ) obtains the robot arm smooth switching function ω, specifically comprising the following steps;
[0027] Step 2.1 Design the threshold function β(τ ext ), as follows:
[0028]
[0029] Among them, R i is the threshold of the i-th joint of the robot arm, which is set manually and usually ranges from 0.3 to 0.5. i∈[1,n] is the number of the robot arm joint, n is the total number of robot arm joints, τ ex t ,i is τ ext The i-th component of is the torque on the i-th joint of the robot;
[0030] Step 2: According to the threshold function β(τ ext )Get the robot arm smooth switching function:
[0031]
[0032] Where, κ is the switching function;
[0033] When the threshold function β(τ ext )<0, the switching function ω=1; when the threshold function β(τ ext )>0, the switching function ω=0. It can be seen from formula (3) that the switching function ω is second-order continuous, so the switching of ω between 0 and 1 is smooth.
[0034] Among them, when τ ext When any component of is greater than the corresponding preset joint threshold (the external torque of any manipulator joint is greater than the corresponding preset joint threshold), the threshold function β(τ ext ) is greater than zero; when τ ext When all components of are less than the corresponding preset joint threshold (the external torque of all joints in the manipulator is less than the corresponding preset shutdown threshold), the threshold function β(τ ext ) has a value less than zero.
[0035] Specific implementation method 4: The step 3 of obtaining the robot arm joint control torque according to the smooth switching function designed in step 2 includes the following steps:
[0036] Step 3.1: Define the reference velocity vector of the robot arm according to the smooth switching function obtained in step 2:
[0037]
[0038] Among them, q d is the expected tracking position of the robot arm, e q =qq d is the position error of the robot arm, λ q is the position error coefficient, which is a constant greater than 0. is the desired tracking speed for the robot arm.
[0039] Step 32: Use the reference velocity vector of the robot arm obtained in step 31 to define the robot arm sliding vector:
[0040]
[0041] Step 3. Use the robot arm reference velocity vector and the robot arm sliding vector obtained in step 3.1 to obtain the robot arm joint control torque:
[0042]
[0043] Where K is a positive definite diagonal matrix; For the robot arm The regression matrix of is the estimated vector of the robot arm dynamics parameter vector p, is the reference acceleration vector of the robot arm.
[0044] The mechanical arm joint control torque is the sum of the switching control term and the dynamic compensation term;
[0045] Said Updated by the following adaptive law:
[0046]
[0047] Among them, Г is a positive definite matrix, () T is the transpose.
[0048] Specific implementation method five: In step four, the mechanical arm joint control torque obtained in step three is substituted into the mechanical arm dynamics regression model established in step one to obtain the response mode of the mechanical arm collision, including the following steps:
[0049] Step 41: Substitute the mechanical arm joint control torque obtained in step 3 into the mechanical arm dynamics regression model established in step 1 to obtain the rewritten mechanical arm dynamics model:
[0050] First, by substituting formula (6) into formula (1), we can obtain the rewritten form of the robot arm dynamics model:
[0051]
[0052] Then, formula (8) can be further rewritten as:
[0053]
[0054] in, is the estimation error of the robot dynamics parameters,
[0055] Step 42: Define the Lyapunov function, and substitute the external force on the robot arm obtained in step 41 into the Lyapunov function, as follows:
[0056] First, define the following Lyapunov function:
[0057]
[0058] By differentiating formula (10), we can get the derivative of the Lyapunov function:
[0059]
[0060] Then, the dynamic model rewritten by formula (9) is substituted into formula (11), and the derivative of the Lyapunov function is further rewritten as:
[0061]
[0062] Step 4: Substituting the adaptive law represented by formula (7) into formula (12), the derivative of the Lyapunov function can be further simplified as:
[0063]
[0064] in, is an intermediate variable;
[0065] Step 44: Determine the working mode of the robot arm when no external force is applied according to formula (13) obtained in step 43:
[0066] First, since the robot arm is not subject to external forces (τ ext =0, ω=1), the derivative of the Lyapunov function represented by formula (13) can be rewritten as:
[0067]
[0068] From formula (14), we can see that the derivative of the Lyapunov function of the robot system is less than or equal to zero, and the system is stable.
[0069] Then, since V>0, Then V is bounded. From the Lyapunov function of the robotic arm system expressed in formula (10), we know that e sq and bounded; due to e sq and Bounded, according to the robot arm dynamics model expressed by formula (9), it can be known that bounded; due to e sq and If esq is bounded, it is uniformly continuous. The derivative of the Lyapunov function expressed by formula (14) can be obtained:
[0070]
[0071] Where t is time, λ min [D+K] is the minimum eigenvalue of the matrix D+K, V(0) and V(+∞) represent the Lyapunov function of the manipulator system at time 0 and time +∞, respectively;
[0072] Since V(0)-V(+∞) is bounded, according to the integral formula (15):
[0073]
[0074] Formula (16) represents e sq Convergence, and then from the sliding vector of the robot arm expressed by formula (5), we can know:
[0075]
[0076] Formula (17) expresses the robot position error e q Converges to 0(e q =qq d ), the motion position of the robot arm converges to the desired position, and the robot arm works in position control mode.
[0077] Step 4.5: Determine the working mode of the robot arm when it is subjected to external force according to the control torque of the robot arm joint:
[0078] Step 451: When the robot arm is subjected to external force, ext ≠0, ω=0, so according to the robot arm reference velocity vector expressed by formula (4), the following formula can be obtained:
[0079]
[0080] Step 452: According to the specific form of the mechanical arm dynamics regression model and formula (18), the following equation can be obtained:
[0081]
[0082] in, and are M(q), D, g(q) and The specific form of the mechanical arm dynamics regression model is:
[0083] Step 453: Use the adaptive law expressed by formula (7) to make and Converge to M(q), D, g(q) and Therefore, formula (19) can be further simplified as:
[0084]
[0085] Step 454. According to formula (20) and ω = 0, the robot joint control torque represented by formula (6) can be simplified to τ m =g(q). Then τ m =g(q) is substituted into the mechanical arm dynamics regression model represented by formula (1) to obtain the following formula:
[0086]
[0087] It can be seen from formula (21) that when subjected to external force, the robot arm can be regarded as a damping system driven by external torque and is in a compliant control mode.
[0088] Specific implementation method 6: In step 5, verify whether the robot system works stably in the position control mode when no external force is applied and whether the robot system works stably in the compliance control mode when the external force is applied:
[0089] Step 51: Verify whether the robot system works stably in position control mode when there is no external force:
[0090] From formula (14), it can be seen that the robot system is stable when it is not subjected to external force in the position control mode;
[0091] Step 52: Verify whether the robot system works stably in the compliant control mode when subjected to external force:
[0092] Integrating formula (13) yields:
[0093]
[0094] Where t is time and ε is the integration factor.
[0095] because According to formula (22), we can get:
[0096]
[0097] Since τ ext is bounded, then the following inequality holds:
[0098]
[0099] According to formula (22) and formula (24), we can get:
[0100]
[0101] Depend on It can be seen that:
[0102] Q ≥ λ min [D q ]||e sq || 2 (26)
[0103] Substituting formula (26) into formula (25) yields:
[0104]
[0105] From formula (27), we can know that e sq Bounded. Since e sq From formula (23), we know that V is bounded. From the Lyapunov function of the robot arm expressed by formula (10), we know that Bounded. So far, all the state quantities of the robotic arm system can be proved to be bounded, and the robotic arm system is stable.
[0106] It should be emphasized that since the switching function ω is continuous, the robot arm can switch smoothly between position control and compliant control.
[0107] The above description is only a preferred embodiment of the present invention. It should be pointed out that for a person skilled in the art, several improvements and modifications can be made based on the concept of the present invention, and these improvements and modifications should also be regarded as within the scope of protection of the present invention.
Claims
1. A robot arm collision response control method based on smooth switching, characterized in that: The method specifically comprises the following steps: Step 1: Establish the mechanical arm dynamics regression model as follows: Among them, q, are the joint position, velocity, and acceleration of the robot arm, respectively; M(q), D, g(q) are the inertia matrix, viscous friction matrix, and gravity vector of the robot arm, respectively; is the Coriolis force and centripetal force matrix of the robot; For the robot arm The regression matrix; p is the dynamic parameter vector of the robot arm; τ m , τ ext They are the control torque of the robot joint and the external torque; Step 2: Design the threshold function β(τ ext ), and according to the threshold function β(τ ext ) Obtain the robot arm smooth switching function ω; The threshold function β(τ ext ),as follows: Among them, R i is the threshold of the i-th joint of the robot arm, which is set manually and usually ranges from 0.3 to 0.
5. i∈[1,n] is the number of the robot arm joint, n is the total number of robot arm joints, τ ext,i is τ ext The i-th component of is the torque on the i-th joint of the robot; The smooth switching function of the robotic arm is as follows: Where, κ is the switching function; Among them, when τ ext If any component of is greater than the corresponding preset joint threshold, the threshold function β(τ ext ) is greater than zero, the switching function ω=0; when τ ext All components of are less than the corresponding preset joint threshold, the threshold function β(τ ext ) is less than zero, the switching function ω = 1, so the robot arm switches smoothly when ω is between 0 and 1; Step 3: Obtain the robot joint control torque according to the smooth switching function designed in step 2, including the following steps: Step 3.1: Obtain the reference velocity vector of the robot arm according to the smooth switching function obtained in step 2, as follows: Among them, q d is the expected tracking position of the robot arm, e q =qq d is the position error of the robot arm, λ q is the position error coefficient, which is a constant greater than 0. is the expected tracking speed for the robot arm; Step 32: Use the reference velocity vector of the robot arm and the joint velocity of the robot arm obtained in step 31 to obtain the robot arm sliding vector, as shown in the following formula: Step 33: Use the reference velocity vector of the robot arm obtained in step 31 and the sliding vector of the robot arm obtained in step 32 to obtain the control torque of the robot arm joint: Where K is a positive definite diagonal matrix; For the robot arm The regression matrix of is the estimated vector of the robot arm dynamics parameter vector p, is the reference acceleration vector of the robot arm; Said Updated by the following adaptive law: Where Γ is a positive definite matrix, () T is the transpose; Step 4: Substitute the robot joint control torque obtained in step 3 into the robot dynamics regression model established in step 1 to obtain a smooth switching method for robot collision: If the robot arm is not subjected to external force, the threshold function β(τ ext )<0, smooth switching function ω=1, the robot arm works in position control mode, if the robot arm is subjected to external force, the threshold function β(τ ext )>0, the smooth switching function ω=0, and the robot arm works in the compliant control mode; The position control mode is to control according to the movement position of the robot arm, and the movement position of the robot arm converges to the desired position; The compliant control mode is to control the robotic arm according to the external torque of the robotic arm; Substitute the robot joint control torque obtained in step 3 into the robot dynamics regression model established in step 1 to obtain the smooth switching method of the robot collision, specifically: Step 41: Substitute the mechanical arm joint control torque obtained in step 3 into the mechanical arm dynamics regression model established in step 1 to obtain the rewritten mechanical arm dynamics model: First, substitute formula (6) into formula (1) to obtain the following formula: Then, rewrite formula (8) to obtain the rewritten robot arm dynamics model: in, is the estimation error of the robot dynamics parameters, Step 42: Define the Lyapunov function, and substitute the external force on the robot arm obtained in step 41 into the Lyapunov function, as follows: First, define the following Lyapunov function: By taking the derivative of formula (10), we can get: Then, substitute formula (9) into formula (11) to obtain the following formula: Step 4: Substitute the adaptive law of formula (7) into formula (12) to obtain the following formula: in, is an intermediate variable; Step 44: Determine the working mode of the robot arm when no external force is applied according to formula (13) obtained in step 43: First, since the robot arm is not subject to external force τ ext =0, ω=1, so formula (13) is rewritten as: Then, according to formula (14), when V>0, When V is bounded, according to formula (10), we know that e sq and bounded; due to e sq and Bounded, according to formula (9) we can know bounded; due to e sq and If is bounded, then esq is uniformly continuous, so according to formula (14), the following integral formula can be obtained: Where t is time, λ min [D+K] is the minimum eigenvalue of the matrix D+K, V(0) and V(+∞) represent the Lyapunov function of the manipulator system at time 0 and time +∞, respectively; Then, since V(0)-V(+∞) is bounded, the following formula can be obtained according to formula (15): Then, according to formula (5) and formula (16), the following formula can be obtained: Finally, according to formula (17), the robot position error e q Converges to 0, the robot arm motion position converges to the desired position, and the robot arm works in position control mode; Step 4 and 5: Determine the working mode of the robot arm when it is subjected to external force according to the control torque of the robot arm joint, including the following steps: Step 451: When the robot arm is subjected to external force, ext ≠0, ω=0, so according to formula (4), the following formula can be obtained: Step 452: According to the specific form of the mechanical arm dynamics regression model and formula (18), the following formula is obtained: in, and are M(q), D, g(q) and An estimated value of The specific form of the mechanical arm dynamics regression model is: Step 453: Use formula (7) to make and Converge to M(q), D, g(q) and Formula (19) can be simplified to the following formula: Step 454: Substitute ω=0 and formula (20) into formula (6) to obtain τ m =g(q), and τ m =g(q) Substituting into formula (1) we obtain the following formula: Step 4, 5, 5. According to formula (21), when subjected to external force, the robotic arm can be regarded as a damping system driven by external torque and is in a compliant control mode.
