Disclosure of Invention
(1) Technical problem to be solved
Aiming at the defects of the prior art, the invention aims to provide a joint module compliant motion control method based on a double-stator magnetic regulating motor, and the control method aims to solve the technical problems that in the prior art, the contact force error cannot be continuously reduced in the tensioning process, the response speed is low, the stability of the contact force cannot be kept, the system cannot simultaneously control the force and the position, and the required compliant motion control effect of a joint module cannot be achieved.
(2) Technical scheme
In order to solve the technical problem, the invention provides a joint module compliant motion control method based on a double-stator magnetic regulating motor, which comprises the following steps:
the method comprises the following steps: the force feedback of the end detection is filtered through an impedance control model, and according to a rapid RLS algorithm, the calculation process is as follows:
(1) forward prediction relation: for an N-th order predictor, the instantaneous a posteriori forward prediction error can be expressed as:
calculating the relation between the posterior and the prior forward prediction error:
the time update equation for the minimum weighted least squares error is:
(k-1,N)+
the update equation for the conversion factor is:
(k,N+1)=
(k-1, N), the forward prediction tap coefficient vector update equation is:
=
(k-1,N)
wherein
The update equation for (k, N +1) is:
(k,N+1)=
+
;
(2) backward prediction relation: the posterior and prior backward prediction error relational expression is as follows:
the time update equation for the minimum weighted least squares error is:
(k-1,N)+
the backward prediction tap coefficient vector update equation is
=
(k,N)
Wherein
The update equation for (k, N +1) is:
=
–
then, then
The last element in (k, N +1) can be represented as:
=
in connection with
The update equation of (1) is:
=
-
;
(3) and (3) joint process estimation: and realizing joint estimation of the input signal and the expected signal, wherein the prior error is as follows: e (k, N) = d (k) -
(k-1, N) X (k, N) having a prior error related to a posterior error:
(k,N)=e(k,N)
the time update relation for the joint process to estimate its tap coefficients is W (k, N) = W (k-1, N) +
(k,N);
Step two: passing position controller
+
(
)(
)+g(
)+SC=
Obtaining the driving torque of the joint motor;
step three: the damping-spring-mass system can represent the inertia, damping and stiffness characteristics of the system, with the differential equations of the mathematical model:
when the joint stops active movement and is dragged and follows with the constant-speed traction force, if the condition is met
=0, the desired position coincides with the tow point position,
=
using the position correction of the joint in the working space
The expression is that after Lagrange transformation, the original differential equation is changed into:
;
step four: preprocessing of force feedback signals:
=T(t)
wherein
Representing the actual contact force in the contact force coordinate system O-xyz,
representing a restricted opening in the sensor coordinate system
-
Sensor force feedback in (j), t (t) is the transformation matrix from sensor coordinate system to contact force coordinate system, which is related to the time after the start of the tightening process:
T=
,L=
vt, converting the data acquired by the sensor into the actual contact force required;
step five: when the contact force is collected, the expected contact force is subtracted to obtain the contact force error
Obtaining the position correction amount through impedance control
To correct the desired trajectory
Thereby obtaining the trajectory control quantity
Through inverse kinematics
(X) obtaining a joint trajectory control quantity
Carrying out position control on the joint position control inner ring;
step six: selection of impedance parameters:
(1) the second-order equation of the spring damping model for impedance control is as follows:
+2
=0,
,
=
when the selection of the impedance parameters meets the condition one, the transition process of the joint from free motion to the limited space can be stabilized;
(2) using different impedance control parameters
、
Proportioning;
step seven: optimizing impedance control parameters:
(1) according to the optimization target of the tensioning process, establishing an optimization objective function:
(2) discrete representation of the objective function: according to the ideal impedance characteristics, the impedance characteristics are H(s) =
Carrying out bilinear transformation on the system to meet the condition two to obtain H(s) =
Wherein
The discrete expression of the available impedance controller is:
-
;
step eight: and driving the joint to perform corresponding movement according to the optimized impedance parameter.
Preferably, the a priori in the step one (1) is to estimate the output at the time k by using the filter coefficient vector at the time k-1, and the a posteriori is to estimate the output at the time k by using the filter coefficient vector at the time k.
Preferably, said step three is
、
Respectively, representing the desired inertia, the desired damping and the desired stiffness of the damping-spring-mass system in different directions in the working space, X being the actual position of the joint in the working space,
is that the joint generates the desired contact force in the working space
The desired trajectory of the beam of light,
is the reality between the joint and the environmentThe contact force is a function of the contact force,
indicating the deviation between the joint contact force with the environment and the expected contact force.
Preferably, said step six (1)
For the damping ratio of the target impedance parameter equation,
is the natural frequency of the target impedance parameter equation.
Preferably, the condition one in the step six (1) is
。
Preferably, the proportioning modes in the step six (2) are three: one of which is fixed
、
Is selected differently
Fixing
Is selected differently
Carrying out simulation; the third is fixed
Is selected differently
。
Preferably, theThe number of the optimization targets in the step seven (1) is 2, and one is the maximum contact force
Needs to be reduced, and the stability of the contact force needs to be enhanced.
Preferably, T in the step seven (2) is the sampling period of the system, and the condition two is s =
。
(3) Advantageous effects
Compared with the prior art, the invention has the beneficial effects that: the control method of the invention utilizes the motion compensation environmental contact force, can be regarded as the compliance of the joint module to the external environment, adjusts the relation of the contact force and the position between the tail end of the joint module and the environment by adjusting the inertia coefficient, the damping coefficient and the rigidity coefficient of the impedance controller, aims to construct a system to enable the joint module to simultaneously control the force and the position, and preprocesses the feedback force signal so as to more accurately describe the actual contact force of the contact point, continuously reduce the contact force error in the tensioning process, have high response speed, effectively keep the stability of the contact force, and continuously and circularly optimize the result until the final end condition is met by optimizing the impedance control parameter, thereby realizing the compliance motion control of the joint module.
Detailed Description
In order to make the technical means, the original characteristics, the achieved purposes and the effects of the invention easily understood and obvious, the technical solutions in the embodiments of the present invention are clearly and completely described below to further illustrate the invention, and obviously, the described embodiments are only a part of the embodiments of the present invention, but not all the embodiments.
Example 1
The specific embodiment is a joint module compliant motion control method based on a double-stator magnetic regulating motor, which comprises the following steps:
the method comprises the following steps: the force feedback of the end detection is filtered through an impedance control model, and according to a rapid RLS algorithm, the calculation process is as follows:
(1) forward prediction relation: for an N-th order predictor, the instantaneous a posteriori forward prediction error can be expressed as:
calculating the relation between the posterior and the prior forward prediction error:
the time update equation for the minimum weighted least squares error is:
(k-1,N)+
the update equation for the conversion factor is:
(k,N+1)=
(k-1, N), the forward prediction tap coefficient vector update equation is:
=
(k-1,N)
wherein
The update equation for (k, N +1) is:
(k,N+1)=
+
the prior is to estimate the output at the moment k by using the filter coefficient vector at the moment k-1, and the posterior is to estimate the output at the moment k by using the filter coefficient vector at the moment k;
(2) backward prediction relation: the posterior and prior backward prediction error relational expression is as follows:
the time update equation for the minimum weighted least squares error is:
(k-1,N)+
the backward prediction tap coefficient vector update equation is
=
(k,N)
Wherein
The update equation for (k, N +1) is:
=
–
then, then
The last element in (k, N +1) can be represented as:
=
in connection with
The update equation of (1) is:
=
-
;
(3) and (3) joint process estimation: and realizing joint estimation of the input signal and the expected signal, wherein the prior error is as follows: e (k, N) = d (k) -
(k-1, N) X (k, N) having a prior error related to a posterior error:
(k,N)=e(k,N)
the time update relation for the joint process to estimate its tap coefficients is W (k, N) = W (k-1, N) +
(k,N);
Step two: passing position controller
+
(
)(
)+g(
)+SC=
Obtaining the driving torque of the joint motor;
step three: the damping-spring-mass system can represent the inertia, damping and stiffness characteristics of the system, with the differential equations of the mathematical model:
when the joint stops active movement and is dragged and follows with the constant-speed traction force, if the condition is met
=0, the desired position coincides with the tow point position,
=
using the position correction of the joint in the working space
The expression is that after Lagrange transformation, the original differential equation is changed into:
,
、
respectively, representing the desired inertia, the desired damping and the desired stiffness of the damping-spring-mass system in different directions in the working space, X being the actual position of the joint in the working space,
is that the joint generates the desired contact force in the working space
The desired trajectory of the beam of light,
is the actual contact force between the joint and the environment,
representing the deviation between the contact force between the joint and the environment and the expected contact force;
step four: preprocessing of force feedback signals:
=T(t)
wherein
Representing the actual contact force in the contact force coordinate system O-xyz,
representing a restricted opening in the sensor coordinate system
-
Sensor force feedback in (j), t (t) is the transformation matrix from sensor coordinate system to contact force coordinate system, which is related to the time after the start of the tightening process:
T=
,L=
vt, converting the data acquired by the sensor into the actual contact force required;
step five: when the contact force is collected, the expected contact force is subtracted to obtain the contact force error
Obtaining the position correction amount through impedance control
To correct the desired trajectory
Thereby obtaining the trajectory control quantity
Through inverse kinematics
(X) obtaining a joint trajectory control quantity
Carrying out position control on the joint position control inner ring;
step six: selection of impedance parameters:
(1) the second-order equation of the spring damping model for impedance control is as follows:
+2
=0,
,
=
when the selection of the impedance parameter satisfies the condition one
The transition process of the joint from free motion to restricted space can be stable,
for the damping ratio of the target impedance parameter equation,
is the natural frequency of the target impedance parameter equation;
(2) using different impedance control parameters
、
Proportioning and fixing
、
Is selected differently
;
Step seven: optimizing impedance control parameters:
(1) according to the optimization goal of the tensioning process, one is the maximum contact force
The need for reduction is two, the stability of the contact force needs to be enhanced, and an optimized objective function is established:
(2) discrete representation of the objective function: according to the ideal impedance characteristics, the impedance characteristics are H(s) =
Carrying out bilinear transformation on the system to meet the condition of two s =
To yield H(s) =
Wherein
The discrete expression of the available impedance controller is:
-
t is the sampling period of the system;
step eight: according to the optimized impedance parameters, driving the joint to perform corresponding movement
Example 2
The specific embodiment is a joint module compliant motion control method based on a double-stator magnetic regulating motor, which comprises the following steps:
the method comprises the following steps: the force feedback of the end detection is filtered through an impedance control model, and according to a rapid RLS algorithm, the calculation process is as follows:
(1) forward prediction relation: for an N-th order predictor, the instantaneous a posteriori forward prediction error can be expressed as:
calculating the relation between the posterior and the prior forward prediction error:
the time update equation for the minimum weighted least squares error is:
(k-1,N)+
the update equation for the conversion factor is:
(k,N+1)=
(k-1, N), the forward prediction tap coefficient vector update equation is:
=
(k-1,N)
wherein
The update equation for (k, N +1) is:
(k,N+1)=
+
the prior is to estimate the output at the moment k by using the filter coefficient vector at the moment k-1, and the posterior is to estimate the output at the moment k by using the filter coefficient vector at the moment k;
(2) backward prediction relation: the posterior and prior backward prediction error relational expression is as follows:
the time update equation for the minimum weighted least squares error is:
(k-1,N)+
the backward prediction tap coefficient vector update equation is
=
(k,N)
Wherein
The update equation for (k, N +1) is:
=
–
then, then
The last element in (k, N +1) can be represented as:
=
in connection with
The update equation of (1) is:
=
-
;
(3) and (3) joint process estimation: and realizing joint estimation of the input signal and the expected signal, wherein the prior error is as follows: e (k, N) = d (k) -
(k-1, N) X (k, N) having a prior error related to a posterior error:
(k,N)=e(k,N)
the time update relation for the joint process to estimate its tap coefficients is W (k, N) = W (k-1, N) +
(k,N);
Step two: passing position controller
+
(
)(
)+g(
)+SC=
Obtaining the driving torque of the joint motor;
step three: the damping-spring-mass system can represent the inertia, damping and stiffness characteristics of the system, with the differential equations of the mathematical model:
when the joint stops active movement and is dragged and follows with the constant-speed traction force, if the condition is met
=0, the desired position coincides with the tow point position,
=
using the position correction of the joint in the working space
The expression is that after Lagrange transformation, the original differential equation is changed into:
,
、
respectively, representing the desired inertia, the desired damping and the desired stiffness of the damping-spring-mass system in different directions in the working space, X being the actual position of the joint in the working space,
is that the joint generates the desired contact force in the working space
The desired trajectory of the beam of light,
is the actual contact force between the joint and the environment,
representing the deviation between the contact force between the joint and the environment and the expected contact force;
step four: preprocessing of force feedback signals:
=T(t)
wherein
Representing the actual contact force in the contact force coordinate system O-xyz,
representing a restricted opening in the sensor coordinate system
-
Sensor force feedback in (f), T (t) is a transformation matrix from the sensor coordinate system to the contact force coordinate system, which is related to the time after the start of the tensioning process:
T=
,L=
Vt, converting the data acquired by the sensor into the actual contact force required;
step five: when the contact force is collected, the expected contact force is subtracted to obtain the contact force error
Obtaining the position correction amount through impedance control
To correct the desired trajectory
Thereby obtaining the trajectory control quantity
Through inverse kinematics
(X) obtaining a joint trajectory control quantity
Carrying out position control on the joint position control inner ring;
step six: selection of impedance parameters:
(1) the second-order equation of the spring damping model for impedance control is as follows:
+2
=0,
,
=
when the selection of the impedance parameter satisfies the condition one
The transition process of the joint from free motion to restricted space can be stable,
for the damping ratio of the target impedance parameter equation,
is the natural frequency of the target impedance parameter equation;
(2) using different impedance control parameters
、
Proportioning and fixing
Is selected differently
Carrying out simulation;
step seven: optimizing impedance control parameters:
(1) according to the optimization goal of the tensioning process, one is the maximum contact force
The need for reduction is two, the stability of the contact force needs to be enhanced, and an optimized objective function is established:
(2) discrete representation of the objective function: according to the ideal impedance characteristics, the impedance characteristics are H(s) =
Carrying out bilinear transformation on the system to satisfy the condition two
To yield H(s) =
Wherein
The discrete expression of the available impedance controller is:
-
t is the sampling period of the system;
step eight: according to the optimized impedance parameters, driving the joint to perform corresponding movement
Example 3
The specific embodiment is a joint module compliant motion control method based on a double-stator magnetic regulating motor, which comprises the following steps:
the method comprises the following steps: the force feedback of the end detection is filtered through an impedance control model, and according to a rapid RLS algorithm, the calculation process is as follows:
(1) forward directionPredicting the relation: for an N-th order predictor, the instantaneous a posteriori forward prediction error can be expressed as:
calculating the relation between the posterior and the prior forward prediction error:
the time update equation for the minimum weighted least squares error is:
(k-1,N)+
the update equation for the conversion factor is:
(k,N+1)=
(k-1, N), the forward prediction tap coefficient vector update equation is:
=
(k-1,N)
wherein
The update equation for (k, N +1) is:
(k,N+1)=
+
the prior is to estimate the output at the moment k by using the filter coefficient vector at the moment k-1, and the posterior is to estimate the output at the moment k by using the filter coefficient vector at the moment k;
(2) backward prediction relation: the posterior and prior backward prediction error relational expression is as follows:
the time update equation for the minimum weighted least squares error is:
(k-1,N)+
the backward prediction tap coefficient vector update equation is
=
(k,N)
Wherein
The update equation for (k, N +1) is:
=
–
then, then
The last element in (k, N +1) can be represented as:
=
in connection with
The update equation of (1) is:
=
-
;
(3) and (3) joint process estimation: and realizing joint estimation of the input signal and the expected signal, wherein the prior error is as follows: e (k, N) = d (k) -
(k-1, N) X (k, N) having a prior error related to a posterior error:
(k,N)=e(k,N)
the time update relation for the joint process to estimate its tap coefficients is W (k, N) = W (k-1, N) +
(k,N);
Step two: passing position controller
+
(
)(
)+g(
)+SC=
Obtaining the driving torque of the joint motor;
step three: the damping-spring-mass system can represent the inertia, damping and stiffness characteristics of the system, with the differential equations of the mathematical model:
when the joint stops active movement and is dragged and follows with the constant-speed traction force, if the condition is met
=0, the desired position coincides with the tow point position,
=
using the position correction of the joint in the working space
The expression is that after Lagrange transformation, the original differential equation is changed into:
,
、
respectively representing damping-spring-mass systemsDesired inertia, desired damping, and desired stiffness in different directions in the workspace, X is the actual position of the joint in the workspace,
is that the joint generates the desired contact force in the working space
The desired trajectory of the beam of light,
is the actual contact force between the joint and the environment,
representing the deviation between the contact force between the joint and the environment and the expected contact force;
step four: preprocessing of force feedback signals:
=T(t)
wherein
Representing the actual contact force in the contact force coordinate system O-xyz,
representing a restricted opening in the sensor coordinate system
-
Sensor force feedback in (j), t (t) is the transformation matrix from sensor coordinate system to contact force coordinate system, which is related to the time after the start of the tightening process:
T=
,L=
vt, converting the data acquired by the sensor into the actual contact force required;
step five: when the contact force is collected, the expected contact force is subtracted to obtain the contact force error
Obtaining the position correction amount through impedance control
To correct the desired trajectory
Thereby obtaining the trajectory control quantity
Through inverse kinematics
(X) obtaining a joint trajectory control quantity
Carrying out position control on the joint position control inner ring;
step six: selection of impedance parameters:
(1) the second-order equation of the spring damping model for impedance control is as follows:
+2
=0,
,
=
when the selection of the impedance parameter satisfies the condition one
The transition process of the joint from free motion to restricted space can be stable,
for the damping ratio of the target impedance parameter equation,
is the natural frequency of the target impedance parameter equation;
(2) using different impedance control parameters
、
Proportioning and fixing
Is selected differently
;
Step seven: optimizing impedance control parameters:
(1) according to the optimization goal of the tensioning process, one is the maximum contact force
The need for reduction is two, the stability of the contact force needs to be enhanced, and an optimized objective function is established:
(2) discrete representation of the objective function: according to the ideal impedance characteristics, the impedance characteristics are H(s) =
Carrying out bilinear transformation on the system to meet the condition of two s =
To yield H(s) =
Wherein
The discrete expression of the available impedance controller is:
-
t is the sampling period of the system;
step eight: according to the optimized impedance parameters, driving the joint to perform corresponding movement
Having thus described the principal technical features and basic principles of the invention, and the advantages associated therewith, it will be apparent to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, but is capable of other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein.
Furthermore, it should be understood that although the present description is described in terms of various embodiments, not every embodiment includes only a single embodiment, and such descriptions are provided for clarity only, and those skilled in the art will recognize that the embodiments described herein can be combined as a whole to form other embodiments as would be understood by those skilled in the art.