Robot variable impedance control method based on extended state observer
By estimating the contact force through the expanded state observer and treating it as an external disturbance, combined with quadratic programming to optimize the impedance parameters, the problem of insecurity and high time consumption of the existing variable impedance control algorithm in complex contact tasks is solved, and the The robot combines high-precision position tracking and compliance performance.
Patent Information
- Application Number
- CN202410498720.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-24
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing variable impedance control algorithms are unsafe and time-consuming in complex contact tasks, and do not fully consider the impedance constraints during robot operation. Moreover, traditional methods require force sensors to increase system cost and complexity.
The extended state observer is used to estimate the contact force, which is regarded as an external disturbance, and the variable impedance control problem is transformed into a quadratic programming problem. The variable impedance control of the robot is realized by optimizing the impedance parameters.
It realizes sensorless contact control, enhances the robot's perception ability, takes into account high-precision position tracking and compliance performance, and avoids the safety and cost issues of traditional methods.
Smart Images

Figure CN118528254A
Abstract
Description
Technical Field
[0001] The invention relates to the field of robot control, and in particular to a robot variable impedance control method based on an extended state observer and quadratic programming. Background Art
[0002] Robot control is usually divided into fixed impedance control and variable impedance control. Fixed impedance control can only solve simple or structured tasks because the impedance parameters are constant and set by manual experience. For complex or unstructured contact tasks, such as assembly, welding, grinding, and human-machine interaction, variable impedance strategies are usually used for control. Therefore, the existing technology has conducted a lot of research on variable impedance control algorithms.
[0003] Common variable impedance control is based on heuristic algorithms, which generally set parameters based on manual experience and have certain defects in solving complex contact tasks. Therefore, variable impedance control algorithms based on reinforcement learning (RL) have been widely studied. By designing different RL algorithms, tasks of different complexity can be solved. However, the variable impedance control rate based on the RL algorithm is obtained by trial and error, which is unsafe and time-consuming for robot applications. Therefore, when dealing with complex tasks with rich contacts, designing a model-based variable impedance control rate has better results. However, most of the robot variable impedance control based on heuristic algorithms or RL algorithms do not consider the actual constraints of the robot during operation, such as impedance constraints. In addition, in robot impedance control, it is necessary to accurately estimate the contact force with the external environment. The use of force sensors can effectively obtain external force information, but it will increase the system cost and the difficulty of mechanical software design. Inspired by the disturbance observer (DOB), the contact force can be regarded as a disturbance and estimated. However, DOB needs to use the inverse model of the system, which will lead to zero-pole cancellation. To avoid this, the extended state observer (ESO) can be used for contact force estimation. Summary of the invention
[0004] In view of the problems existing in the above-mentioned technologies, the present invention aims to provide a robot variable impedance control method based on an extended state observer (ESO). The method proposes a method that can use an extended state observer to replace a force sensor and estimate the contact force between the robot and the external environment, and regards the contact force as an external disturbance and regards it as an extended state; at the same time, considering the robot impedance constraint, the variable impedance control problem is transformed into a quadratic programming problem.
[0005] To achieve the above object, the technical solution adopted by the present invention is:
[0006] A robot variable impedance control method based on an extended state observer, the robot variable impedance control method based on an extended state observer comprising:
[0007] Step 1: Design the robot feedback control rate:
[0008] The dynamic model of the n-DOF robot is:
[0009]
[0010] Among them, q, and Represents joint angle, joint velocity and joint acceleration respectively; H(q)∈R n×n , and G(q)∈R n Respectively represent the inertia matrix, Coriolis force and centrifugal force matrix and gravity moment of the joint space; J(q)∈R m×n , f∈R m and τ∈R n They represent the robot Jacobian matrix, contact force, and control torque in joint space respectively; m represents the dimension; J Τ (q) is the transpose of J(q);
[0011] According to the forward kinematics and inverse dynamics of the robot, the robot dynamics model constructed in the task space is:
[0012]
[0013] Among them, H t (x), With G t (x) represents the inertia matrix, Coriolis force and centrifugal force matrix and gravity moment in the task space, τ′ represents the control torque of the robot in the task space;
[0014] According to the matrix transformation relationship between the joint space and the task space, the control torque calculation formula of the robot in the task space is constructed as follows:
[0015]
[0016] Step 2: Design impedance control model:
[0017] The impedance control model in the task space is:
[0018]
[0019] Where M, D and K are symmetric positive definite matrices, representing the inertia matrix, damping matrix and stiffness matrix respectively; x r represents the desired position of the robot end, represents the desired speed of the robot end, The impedance control model is transformed into:
[0020]
[0021] in represents the derivative of the contact force f, s is the observation state, is the derivative of the observed state s, A and b represent intermediate parameters, s r Indicates the expected state, represents the state error, v represents the product of the impedance parameter and the state error, m, d and k represent the mass, damping and stiffness in the decoupling direction respectively, and have the following relationship:
[0022]
[0023] By determining the impedance parameters m, d and k, v is used as the state feedback control rate of the impedance control model (12);
[0024] Step 3: Calculate the optimal impedance parameters:
[0025] Since the impedance parameter is implicit in the control input, the following control input u is defined:
[0026]
[0027] Therefore, the impedance control model (12) is transformed into:
[0028]
[0029] By introducing the vector Discretizing formula (15) with uniform acceleration, we get:
[0030]
[0031] Where T is the discrete period, I is the unit matrix, s t+1 is the observed state at time t+1 after discretization, s t is the observed state at time t after discretization, is the state error at time t after discretization, for The transpose of u t is the impedance parameter at time t after discretization;
[0032] will u t As the control input, the control input u t The optimization design is performed through the following quadratic programming problem:
[0033]
[0034] Where J(u t ) is the cost function, is the state error at time t+1 after discretization, for The transpose of for u t The transpose of m is the calibration parameter, k min is the minimum k value, k max is the maximum k value, Q and R are semi-positive definite matrices and positive definite matrices, and the quadratic programming problem of formula (17) is transformed into the following form by simplification:
[0035]
[0036] where p′ Τ is the transpose of p′, c′ t represents an intermediate variable independent of the control input, Q′ t , p′, G′, h′, A′ and b′ are intermediate variables, and the optimal impedance parameter u is obtained by using quadratic programming to solve formula (18) * ;
[0037] Step 4: Estimate contact forces:
[0038] For nonlinear systems, the following relationship holds:
[0039]
[0040] Where f(x1,x2) and Δ represent the nonlinear part and unknown part of the nonlinear system respectively. The unknown part is the contact force to be estimated. x1 and x2 represent the state variables of the nonlinear system. and Represent the derivatives of x1 and x2 respectively, and y represents the output of the nonlinear system. By designing the unknown part Δ as the extended state x3, the extended state observer is established as:
[0041]
[0042] Where e represents the intermediate variable, f(z1,z2) represents the estimated value of the nonlinear part of the nonlinear system, z1 represents the estimated value of the state variable x1, z2 represents the estimated value of the state variable x2, z3 represents the estimated value of the unknown part Δ, β1, β2 and β3 represent preset parameters, and denote the derivatives of z1, z2 and z3 respectively;
[0043] According to formula (5) and (20), the following relationship is obtained:
[0044]
[0045] in x1=x, Combining formulas (5), (14) and (15), the extended state observer based on the robot dynamics model is designed as:
[0046]
[0047] in η1, η2 and η3 represent preset parameters, where H t (z) With G t (z) represents the estimated value of the inertia matrix, the estimated value of the Coriolis force and the centrifugal force matrix, and the estimated value of the gravity moment in the task space; the estimated value of the contact force z3 is calculated according to formula (23) as the contact force output at time t in this step
[0048] Step 5: Calculate the expected acceleration:
[0049] The optimal impedance parameter u calculated according to step 3 * , calculate the robot end acceleration as shown below:
[0050]
[0051] Step 6: Calculate the control torque:
[0052] The contact force calculated from step 4 The robot end acceleration calculated in step 5 Substitute formula (10) into the calculation to obtain the control torque τ′ of the robot in the task space, and send the control torque τ′ of the robot in the task space to the robotic arm to complete a robot variable impedance control.
[0053] Several optional methods are also provided below, but they are not intended to be additional limitations on the above-mentioned overall solution, but are merely further supplements or preferences. Under the premise that there are no technical or logical contradictions, each optional method can be combined with the above-mentioned overall solution separately, and multiple optional methods can also be combined.
[0054] Preferably, the forward kinematics of the robot is:
[0055]
[0056] According to the forward kinematics of the robot, the inverse dynamics of the robot is obtained as:
[0057]
[0058]
[0059] Where Φ(q) represents the mathematical relationship between the robot end and the joint position, J+ (q) represents the pseudo-inverse of the robot Jacobian matrix J(q), Indicates J + The derivative of (q); x, and They represent the robot end position, robot end velocity and robot end acceleration respectively.
[0060] Preferably, the matrix transformation relationship between the joint space and the task space includes:
[0061] H t (x) = J +Τ (q)H(q)J Τ (q) (6)
[0062]
[0063] G t (x) = J +Τ (q)G(q) (8)
[0064] τ′=J +Τ (q)τ (9)
[0065] Among them J +Τ (q) represents J + The transpose of (q), represents the derivative of J(q).
[0066] Preferably, the intermediate variable Q′ t , p′, G′, h′, A′ and b′ have the following relationship:
[0067]
[0068] Where (b+β) Τ is the transpose of b+β, s r,t+1 is the expected state of the robot at time t+1.
[0069] The robot variable impedance control method based on the extended state observer provided by the present invention has the following beneficial effects compared with the prior art:
[0070] 1) A contact force estimation method based on extended state observer is proposed. The contact force is regarded as an external disturbance and estimated as an extended state, which realizes the robot's force-free sensor contact control and enhances the robot's perception ability.
[0071] 2) A robot variable impedance control method based on quadratic programming is proposed, which transforms the variable impedance control problem with impedance constraint into a quadratic programming problem, updates the impedance parameters online, balances the robot position control and force control, and takes into account the compliance performance while ensuring high-precision position tracking of the robot. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Figure 1 The present invention is a flow chart of a robot variable impedance control method based on an extended state observer. DETAILED DESCRIPTION
[0073] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0074] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0075] In order to overcome the defects in the prior art, this embodiment proposes a method that regards the contact force as an external disturbance and regards it as an expansion state, and estimates the contact force in real time based on an expansion state observer; in addition, based on the obtained contact force signal, a variable impedance control method that can limit the ultimate compliance characteristics of the robot is proposed. This method takes into account the impedance constraint and transforms the variable impedance control problem into a quadratic programming problem, and finally realizes the robot contact control without force sensors.
[0076] like Figure 1 As shown, a robot variable impedance control method based on an extended state observer in this embodiment includes the following steps:
[0077] Step 1: Design the robot feedback control rate.
[0078] The dynamic model of the n-DOF robot is:
[0079]
[0080] Among them, q, and Represents joint angle, joint velocity and joint acceleration respectively; H(q)∈R n×n , and G(q)∈R nRespectively represent the inertia matrix, Coriolis force and centrifugal force matrix and gravity moment of the joint space; J(q)∈R m×n , f∈R m and τ∈R n They represent the robot Jacobian matrix, contact force, and control torque in joint space respectively; m represents the dimension; J Τ (q) is the transpose of J(q).
[0081] The forward kinematics of the robot is:
[0082]
[0083] According to the forward kinematics of the robot, the inverse dynamics of the robot is obtained as:
[0084]
[0085]
[0086] Where Φ(q) represents the mathematical relationship between the robot end and the joint position, J + (q) represents the pseudo-inverse of the robot Jacobian matrix J(q), Indicates J + The derivative of (q); x, and They represent the robot end position, robot end velocity and robot end acceleration respectively. Therefore, the robot dynamics model in the task space is:
[0087]
[0088] Among them, H t (x), With G t (x) represents the inertia matrix, Coriolis force and centrifugal force matrix, and gravity moment in the task space, τ′ represents the control torque of the robot in the task space, and the matrix transformation relationship between the joint space and the task space is as follows:
[0089] H t (x) = J +Τ (q)H(q)J Τ (q) (6)
[0090]
[0091] G t (x) = J +Τ (q)G(q) (8)
[0092] τ′=J +Τ (q)τ (9)
[0093] Among them J +Τ (q) represents J + The transpose of (q), represents the derivative of J(q); therefore, the control torque calculation formula of the robot in the task space is:
[0094]
[0095] Step 2: Design an impedance control model.
[0096] The impedance control model in the task space is:
[0097]
[0098] Where M, D and K are symmetric positive definite matrices, representing the inertia matrix, damping matrix and stiffness matrix respectively; x r represents the desired position of the robot end, Indicates the desired speed of the robot end. Since the control rate is the same in different dimensions, the following takes the x dimension as an example. The impedance control model is transformed into:
[0099]
[0100] in represents the derivative of the contact force f, s is the observation state, is the derivative of the observed state s, A and b represent intermediate parameters, s r Indicates the expected state, represents the state error, v represents the product of the impedance parameter and the state error, for The transpose of , m, d and k represent the mass, damping and stiffness in the decoupling direction respectively, and have the following relationship:
[0101]
[0102] [0 1 0] Τ is the transpose of [0 1 0], for By transposing the impedance parameters m, d and k, v is used as the state feedback control rate of the impedance control model (12).
[0103] Step 3: Calculate the optimal impedance parameters.
[0104] Since the impedance parameters are implicit in the control input, it is difficult to implement variable impedance control using the model (12)(13) in step 2. To solve this problem, the following control input is defined:
[0105]
[0106] Therefore, the impedance control model (12) is transformed into:
[0107]
[0108] By introducing the vector Discretizing formula (15) with uniform acceleration, we get:
[0109]
[0110] Where T is the discrete period, I is the unit matrix, s t+1 is the observed state at time t+1 after discretization, s t is the observed state at time t after discretization, is the state error at time t after discretization, for The transpose of u t is the impedance parameter at time t after discretization, for The transpose of .
[0111] will u t As the control input, the control input u t The optimization design is performed through the following quadratic programming problem:
[0112]
[0113] Where J(u t ) is the cost function, is the state error at time t+1 after discretization, for The transpose of for u t The transpose of m is the calibration parameter, k min is the minimum k value, k max is the maximum k value, Q and R are semi-positive definite matrices and positive definite matrices, and the quadratic programming problem of formula (17) is transformed into the following form by simplification:
[0114]
[0115] where p′ Τ is the transpose of p′, c′ t represents an intermediate variable independent of the control input, Q′ t , p′, G′, h′, A′ and b′ are intermediate variables, and Q′ t , p′, G′, h′, A′ and b′ have the following relationship:
[0116]
[0117] Where (b+β) Τ is the transpose of b+β, s r,t+1 is the expected state of the robot at time t+1. The optimal impedance parameter u is obtained by solving formula (18) using quadratic programming: * Since a larger stiffness or damping will reduce the tracking error and make the system comply with the interaction force, on the contrary, a smaller stiffness or damping will comply with the system but will produce a larger tracking error, this embodiment converts the variable impedance control with impedance constraint into a QP problem in order to achieve a trade-off between tracking accuracy and contact compliance, calculate a set of impedance parameters that best suits the system at the current moment, and ensure that compliance is met while tracking accuracy is high.
[0118] Step 4: Estimate the contact forces.
[0119] For nonlinear systems, the following relationship holds:
[0120]
[0121] Where f(x1,x2) and Δ represent the nonlinear part and unknown part of the nonlinear system respectively. The unknown part is the contact force to be estimated. x1 and x2 represent the state variables of the nonlinear system. and Represent the derivatives of x1 and x2 respectively, and y represents the output of the nonlinear system. By designing the unknown part Δ as the extended state x3, the extended state observer is established as:
[0122]
[0123] Where e represents the intermediate variable, f(z1,z2) represents the estimated value of the nonlinear part of the nonlinear system, z1 represents the estimated value of the state variable x1, z2 represents the estimated value of the state variable x2, z3 represents the estimated value of the unknown part Δ, β1, β2 and β3 represent preset parameters, and denote the derivatives of z1, z2 and z3 respectively.
[0124] According to formula (5) and (20), the following relationship is obtained:
[0125]
[0126] in x1=x, Combining formulas (5), (14) and (15), the extended state observer based on the robot dynamics model is designed as:
[0127]
[0128] in η1, η2 and η3 represent preset parameters (β1, β2 and β3 can be understood as the preset parameters proposed in theory when the system is constructed, and η1, η2 and η3 can be understood as the preset parameters proposed in the actual robot model design), where H t (z) With G t (z) represents the estimated value of the inertia matrix, the estimated value of the Coriolis force and the centrifugal force matrix, and the estimated value of the gravity moment in the task space; the estimated value of the contact force z3 is calculated according to formula (23) as the contact force output at time t in this step The extended state observer is used to replace the force sensor, and the variable impedance control of the robot without the force sensor is realized when the robot completes a specific task.
[0129] Step 5: Calculate the expected acceleration.
[0130] The optimal impedance parameter u calculated according to step 3 * , calculate the robot end acceleration as shown below:
[0131]
[0132] Step 6: Calculate the control torque.
[0133] The contact force calculated from step 4 The robot end acceleration calculated in step 5 Substitute formula (10) into the calculation to obtain the control torque τ′ of the robot in the task space, and send the control torque τ′ of the robot in the task space to the robotic arm to complete a robot variable impedance control.
[0134] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0135] The above-mentioned embodiments only express several implementation modes of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the attached claims.
Claims
1. A robot variable impedance control method based on an extended state observer, characterized in that: The robot variable impedance control method based on the extended state observer comprises: Step 1: Design the robot feedback control rate: The dynamic model of the n-DOF robot is: Among them, q, and Represents joint angle, joint velocity and joint acceleration respectively; H(q)∈R n×n , and G(q)∈R n Respectively represent the inertia matrix, Coriolis force and centrifugal force matrix and gravity moment of the joint space; J(q)∈R m×n , f∈R m and τ∈R n They represent the robot Jacobian matrix, contact force, and control torque in joint space respectively; m represents the dimension; J Τ (q) is the transpose of J(q); According to the forward kinematics and inverse dynamics of the robot, the robot dynamics model constructed in the task space is: Among them, H t (x), With G t (x) represents the inertia matrix, Coriolis force and centrifugal force matrix and gravity moment in the task space, τ′ represents the control torque of the robot in the task space; According to the matrix transformation relationship between the joint space and the task space, the control torque calculation formula of the robot in the task space is constructed as follows: Step 2: Design impedance control model: The impedance control model in the task space is: Where M, D and K are symmetric positive definite matrices, representing the inertia matrix, damping matrix and stiffness matrix respectively; x r represents the desired position of the robot end, represents the desired speed of the robot end, The impedance control model is transformed into: in represents the derivative of the contact force f, s is the observation state, is the derivative of the observed state s, A and b represent intermediate parameters, s r Indicates the expected state, represents the state error, v represents the product of the impedance parameter and the state error, m, d and k represent the mass, damping and stiffness in the decoupling direction respectively, and have the following relationship: By determining the impedance parameters m, d and k, v is used as the state feedback control rate of the impedance control model (12); Step 3: Calculate the optimal impedance parameters: Since the impedance parameter is implicit in the control input, the following control input u is defined: Therefore, the impedance control model (12) is transformed into: By introducing the vector Discretizing formula (15) with uniform acceleration, we get: Where T is the discrete period, I is the unit matrix, s t+1 is the observed state at time t+1 after discretization, s t is the observed state at time t after discretization, is the state error at time t after discretization, for The transpose of u t is the impedance parameter at time t after discretization; will u t As the control input, the control input u t The optimization design is performed through the following quadratic programming problem: Where J(u t ) is the cost function, is the state error at time t+1 after discretization, for The transpose of for u t The transpose of m is the calibration parameter, k min is the minimum k value, k max is the maximum k value, Q and R are semi-positive definite matrices and positive definite matrices, and the quadratic programming problem of formula (17) is transformed into the following form by simplification: where p′ Τ is the transpose of p′, c t ′ represents an intermediate variable independent of the control input, Q t ′, p′, G′, h′, A′ and b′ are intermediate variables. The optimal impedance parameter u is obtained by solving formula (18) using quadratic programming. * ; Step 4: Estimate contact forces: For nonlinear systems, the following relationship holds: Where f(x1,x2) and Δ represent the nonlinear part and unknown part of the nonlinear system respectively. The unknown part is the contact force to be estimated. x1 and x2 represent the state variables of the nonlinear system. and Represent the derivatives of x1 and x2 respectively, and y represents the output of the nonlinear system. By designing the unknown part Δ as the extended state x3, the extended state observer is established as: Where e represents the intermediate variable, f(z1,z2) represents the estimated value of the nonlinear part of the nonlinear system, z1 represents the estimated value of the state variable x1, z2 represents the estimated value of the state variable x2, z3 represents the estimated value of the unknown part Δ, β1, β2 and β3 represent preset parameters, and denote the derivatives of z1, z2 and z3 respectively; According to formula (5) and (20), the following relationship is obtained: in x1=x, Combining formulas (5), (14) and (15), the extended state observer based on the robot dynamics model is designed as: in η1, η2 and η3 represent preset parameters, where H t (z) With G t (z) represents the estimated value of the inertia matrix, the estimated value of the Coriolis force and the centrifugal force matrix, and the estimated value of the gravity moment in the task space; the estimated value of the contact force z3 is calculated according to formula (23) as the contact force output at time t in this step Step 5: Calculate the expected acceleration: The optimal impedance parameter u calculated according to step 3 * , calculate the robot end acceleration as shown below: Step 6: Calculate the control torque: The contact force calculated from step 4 The robot end acceleration calculated in step 5 Substitute formula (10) into the robot control torque τ′ in the task space and send the robot control torque τ′ in the task space to the robotic arm to complete a robot variable impedance control.
2. The robot variable impedance control method based on extended state observer according to claim 1 is characterized in that: The robot forward kinematics is: According to the forward kinematics of the robot, the inverse dynamics of the robot is obtained as: Where Φ(q) represents the mathematical relationship between the robot end and the joint position, J + (q) represents the pseudo-inverse of the robot Jacobian matrix J(q), Indicates J + The derivative of (q); x, and They represent the robot end position, robot end velocity and robot end acceleration respectively.
3. The robot variable impedance control method based on extended state observer according to claim 2 is characterized in that: The matrix transformation relationship between the joint space and the task space includes: H t (x)=J +Τ (q)H(q)J Τ (q) (6) G t (x)=J +Τ (q)G(q) (8) τ′=J +Τ (q)t (9) Among them J +Τ (q) represents J + The transpose of (q), represents the derivative of J(q).
4. The robot variable impedance control method based on extended state observer according to claim 1, characterized in that: The intermediate variable Q t ′, p′, G′, h′, A′ and b′ have the following relationship: Where (b+β) Τ is the transpose of b+β, s r,t+1 is the expected state of the robot at time t+1.
Citation Information
Cited By
Flexible mechanical arm self-adaptive variable impedance control method based on neural network
CN119839852A
A neural network-based adaptive variable impedance control method for a flexible robot arm
CN119839852B
