Detailed Description
For the purpose of illustrating the technical solutions and technical objects of the present invention, the present invention will be further described with reference to the accompanying drawings and specific embodiments.
The invention discloses a mechanical arm high-precision motion control method based on an extended state observer, which comprises the following steps of:
step 1, establishing a state equation of a robot arm system with model uncertainty:
step 1.1, establishing a dynamic model of the robot arm system with uncertainty:
in order to realize high-precision control of the robot arm, various uncertain factors including model uncertainty and external interference must be comprehensively considered, and a robot arm dynamic model with uncertainty is established:
wherein q ∈ R
nD (q) is a positive definite inertia matrix of order n x n,
is an n x n order inertia matrix which represents the centrifugal force and the Coriolis force of the mechanical arm, G (q) epsilon R
nTau epsilon R is the gravity term of the mechanical arm
nTo control the moment, τ
d∈R
nFor externally applied disturbance; and n is the number of the mechanical arm joints.
Step 1.2, establishing a nominal model of the mechanical arm system:
in actual work, due to the influence of measurement errors, load changes and external interference factors, the dynamic parameter values of the robot arm can be changed, so that the accurate values of the dynamic parameters of the robot arm are difficult or impossible to obtain, and only an ideal nominal model can be built.
Representing each parameter of the mechanical arm in the nominal model of the mechanical arm as D
0(q),
G
0(q), therefore, the actual kinematic model terms of the robot arm are expressed in the form:
wherein the molar ratio of [ Delta ] D (q),
Δ g (q) is an uncertainty term caused by external interference factors, and therefore, the kinetic model of the robot arm can be expressed as:
wherein
Is a set function of uncertain terms of a mechanical arm system model,
is bounded.
Step 1.3, establishing a state equation of the robot arm system with model uncertainty:
defining a tracking error: angle error e, angular velocity error
The following were used:
wherein q isdThe desired angle for each joint and the second order derivative, q is the actual angle for each joint.
Defining a state variable x of a mechanical arm system
1=e,
The robot arm system (3) with model uncertainty can be expressed as:
wherein w ═ D0 -1(q)(ρ+τd) An uncertainty set containing model uncertainty and external interference. By dynamics of the robot armIllustratively, w is bounded.
Wherein, for the convenience of the design and analysis of the controller, the following definitions are made: let the disturbance moment be bounded, i.e. | | τ
dD is less than or equal to | l, wherein D is more than 0, known from the dynamic characteristics of the mechanical arm, D
0(q) is positively bounded, and thus w is bounded, provided
Wherein
Step 2, designing a mechanical arm controller based on a back stepping method:
step 2.1, design virtual control input
To obtain stabilization of the system, a state variable x is introduced
2Virtual control input of
Order to
And is
Defining an error variable z:
equation (5) can be expressed as:
to ensure system stability, virtual control inputs are designed
Comprises the following steps:
wherein x1=[x11,...,x1n]T∈Rn,x1nIndicates the angular error of the joint n, k1A coefficient greater than 0.
Step 2.2, designing a controller tau:
defining the Lyapunov function V as:
then
The controller τ is designed based on equation (10) as:
wherein k is2For a coefficient greater than 0, formula (11) is substituted for formula (10) to obtain:
then the robotic arm system becomes progressively more stable as shown in equation (12).
Step 3, designing a mechanical arm controller based on an Extended State Observer (ESO):
step 3.1, designing the extended state observer:
in the above controller design, the uncertain set w is regarded as a known quantity, but in practice, the uncertain set w is usually not known accurately, so a state observer is designed to observe the uncertain set w so as to compensate in the controller. Considering the advantage that the extended state observer ESO does not need too much model information, the extended state observer ESO is designed to estimate model uncertainty and disturbance.
Let the state variable x
3=w,
And | h (t) | is less than or equal to δ; equation (5) can be expressed as:
from equation (13), the ESO structure is designed as follows:
wherein
Is x
1Is estimated by the estimation of (a) a,
is x
2Is estimated by the estimation of (a) a,
is x
3Estimate of (a), ω
0> 0 represents the bandwidth of the ESO.
Let the estimation error
i is 1,2, 3; then from (13), (14) the estimated error of the ESO observer can be derived as:
definition of
i is 1,2, 3; equation (15) can be expressed as:
wherein B is [0,0,1 ]]
TA is a Helverz matrix having A
TAnd P + PA is-I, the matrix P is a symmetrical positive definite matrix, and the matrix I is an identity matrix. From the formula (15), it can be deduced
Description of the drawings: assuming h (t) is bounded, the estimated state is always bounded, and there is a constant γi> 0 and a finite time T1> 0, such that:
from the above, it can be seen that the proposed extended state observer ESO has good observation performance. After a limited time, the bandwidth ω can be increased by
0The estimation error is reduced to a prescribed range. This indicates that the estimated states can be used in controller design
To compensate for the total uncertainty x
3。
3.2, designing a mechanical arm system controller based on the ESO of the extended state observer:
based on the above description, the controller of the mechanical arm system based on the ESO is designed as follows:
and (3) carrying out system stability analysis on the mechanical arm system controller:
defining the Lyapunov function as:
then
Substituting formula (18) for formula (20) to obtain:
the terms of the above formula are simplified:
Then
Obtained by the formula (16):
substituting the equations (22), (24) and (25) into (21) yields:
where eta ═ x
1,z,ε
1,ε
2,ε
3)
T,
λ
min(. is) the minimum value of the characteristic polynomial of the matrix, λ
max(. cndot.) is the maximum of the matrix eigenpolynomial.
Order to
Then
Then
From equation (29), the closed-loop system of the mechanical arm is bounded and stable
z is defined as x
2Is also bounded. Therefore, the closed-loop system of the mechanical arm is guaranteed to be bounded and stable.
Examples
With reference to fig. 2, the present embodiment describes a design flow of a robot arm high-precision motion control method based on an extended state observer according to the present invention with a two-degree-of-freedom robot arm connected in series. The method comprises the following specific steps:
step 1, establishing a state equation of a robot arm system with model uncertainty:
step 1.1, establishing a dynamic model of the robot arm system with uncertainty:
in order to realize high-precision control of the robot arm, various uncertain factors including model uncertainty and external interference must be comprehensively considered, and a robot arm dynamic model with uncertainty is established:
wherein q is [ q ]
1,q
2]D (q) is a positive definite inertia matrix of 2 x 2 order,
is an inertia matrix of 2 x 2 orders, representing the centrifugal force and the Coriolis force of the mechanical arm, G (q) epsilon R
2Tau epsilon R is the gravity term of the mechanical arm
2To control the moment, τ
d∈R
2Is the applied disturbance.
Step 1.2, establishing a nominal model of the mechanical arm system:
in actual work, the values of the dynamic parameters of the robot arm may change due to the influence of measurement errors, load changes and external interference factors, so that the accurate values of the dynamic parameters of the robot arm are difficult or impossible to obtain. Only an ideal nominal model can be built.
Representing each parameter of the mechanical arm in the nominal model of the mechanical arm as D
0(q),
G
0(q), therefore, the actual kinematic model terms of the robot arm are expressed in the form:
wherein the molar ratio of [ Delta ] D (q),
Δ g (q) is an uncertainty term caused by external interference factors, and therefore, the kinematic model of the robot arm can be expressed as:
wherein
Is a collective function of mechanical arm system model uncertainties,
there is a limit.
Step 1.3, establishing a state equation of the robot arm system with model uncertainty:
the tracking error e is defined and,
the following were used:
wherein q isdThe desired angle for each joint and the second order derivative, q is the actual angle for each joint.
Defining a state variable x of a mechanical arm system
1=e,
The robot arm system (3) with model uncertainty can be expressed as:
wherein w ═ D0 -1(q)(ρ+τd) An uncertainty set containing model uncertainty and external interference. W is bounded by the dynamics of the robot arm.
Wherein, for the convenience of the design and analysis of the controller, the following definitions are made: let the disturbance moment be bounded, i.e. | | τ
dD is less than or equal to | l, wherein D is more than 0, known from the dynamic characteristics of the mechanical arm, D
0(q) is positively bounded, and thus w is bounded, provided
Wherein
Step 2, designing a mechanical arm controller based on a back stepping method:
step 2.1, design virtual control input
To obtain stabilization of the system, a state variable x is introduced
2Virtual control input of
Order to
And is
Defining an error variable z:
equation (5) can be expressed as:
to ensure system stability, virtual control inputs are designed
Comprises the following steps:
wherein x1=[x11,x12]T∈R2,x12Indicates the angular error, k, of the joint 21A coefficient greater than 0.
Step 2.2, design controller τ
Defining the Lyapunov function V as:
then
The controller τ is designed based on equation (10) as:
wherein k is2For a coefficient greater than 0, formula (11) is substituted for formula (10) to obtain:
then the robotic arm system becomes progressively more stable as shown in equation (12).
Step 3, designing a mechanical arm controller based on an Extended State Observer (ESO)
Step 3.1, design of extended state observer
In the above controller design, the uncertain set w is regarded as a known quantity, but in practice, the uncertain set w is usually not known accurately, so a state observer is designed to observe the uncertain set w so as to compensate in the controller. The Extended State Observer (ESO) is designed to estimate model uncertainty and disturbances, taking into account the advantage that the ESO does not need too much model information. Let the state variable x
3=w,
And | h (t) | is less than or equal to δ; equation (5) can be expressed as:
from equation (13), the ESO structure is designed as follows:
wherein
Is x
1Is estimated by the estimation of (a) a,
is x
2Is estimated by the estimation of (a) a,
is x
3Estimate of (a), ω
0> 0 represents the bandwidth of the ESO.
Let the estimation error
i=1
,2
,3; then from (13), (14) the estimated error of the ESO observer can be derived as:
definition of
i is 1,2, 3; equation (15) can be expressed as:
wherein B is [0,0,1 ]]
TA is a Helverz matrix having A
TAnd P + PA is-I, the matrix P is a symmetrical positive definite matrix, and the matrix I is an identity matrix. From the formula (15), it can be deduced
Introduction 1: assuming h (t) is bounded, the estimated state is always bounded, and there is a constant γi> 0 and finite time T1> 0, such that:
description 1: it can be seen from
lemma 1 that the proposed extended state observer ESO has good observation performance. After a limited time, the bandwidth ω can be increased by
0The estimation error is reduced to a prescribed range. This indicates that the estimated states can be used in the controller design
To compensate for the total uncertainty x
3。
Step 3.2, designing the mechanical arm system controller based on the Extended State Observer (ESO)
Based on the above description, the controller of the mechanical arm system based on the ESO is designed as follows:
and (3) carrying out system stability analysis on the mechanical arm system controller:
defining the Lyapunov function as:
then
Substituting formula (18) for formula (20) to obtain:
the terms of the above formula are simplified:
Then
Obtained by the formula (16):
substituting the equations (22), (24) and (25) into (21) yields:
where eta ═ x
1,z,ε
1,ε
2,ε
3)
T,
λ
min(. is) the minimum value of the characteristic polynomial of the matrix, λ
max(. cndot.) is the maximum of the matrix eigenpolynomial.
Order to
Then
Then
From equation (29), the closed-loop system of the mechanical arm is bounded and stable
z is defined as x
2Is also bounded. Therefore, the closed-loop system of the mechanical arm is guaranteed to be bounded and stable.
Performing MATLAB simulation on the controller with the design:
taking the expected angles of the three controllers as q
1d=1+0.2sin(0.5πt),q
2d1-0.2cos (0.5 tt); taking external disturbances
Wherein d is
1=2,d
2=2,d
3=2,
The initial value of each joint angle of the mechanical arm is taken as
Comparing simulation results: the parameter selection of the mechanical arm high-precision motion controller based on the extended state observer is the control gain
ESO bandwidth is taken as w
080; parameter selection of feedback linearization controller based on backstepping method is control gain
The parameter of the PID controller is selected as a proportionality coefficient K
p500,
integral coefficient K i0, differential coefficient K
d=380。
The tracking performance of the three controllers is shown in fig. 3(a-g), fig. 4 (a-f). Fig. 3 is a comparison curve of tracking angle of each joint of the mechanical arm system with time under the action of the linear feedback controller (labeled as ESOFDL in the figure), the linear feedback controller (labeled as BFDL in the figure) and the traditional PID controller based on the extended state observer designed by the invention. FIG. 4 is a comparison graph of tracking error of each joint angle of the mechanical arm system with time under the action of the controller designed by the present invention (identified by ESOFDL in the figure), the linear feedback controller (identified by BFDL in the figure) and the traditional PID controller respectively. From fig. 4, it can be seen that the linear feedback controller ESOFDL controller based on the extended state observer has a smaller tracking error on the joint angle (the angle error of the joint 1 is 7.68 × 10-4 °, and the angle error of the joint 2 is 2.76 × 10-4 °) with time, and the transient and final tracking performance of the controller is better than that of the linear feedback controller BFDL and the PID controller. Further, FIG. 5 shows the estimation of system uncertainty and estimation error by the Extended State Observer (ESO). As can be seen from fig. 5, the Extended State Observer (ESO) has a good estimate and compensation for system model uncertainty and external disturbances. Fig. 6(a-b) shows the control moments for both joints.