Background
The processing precision of the robot is closely related to acceleration and deceleration motion control and dynamics control of the robot. At present, when an industrial robot is applied to industries such as machining and assembly, the contact force between a robot terminal tool or a workpiece and the external environment needs to be accurately sensed so as to ensure the flexibility of operation. In the existing application, a six-component sensor is usually selected, which can measure three-dimensional orthogonal force and three-dimensional orthogonal moment, three-dimensional orthogonal acceleration and three-dimensional orthogonal angular acceleration in any force system in space; under dynamic conditions, the moment measured by the robot end sensor comprises load gravity, load inertia force and external contact force applied to the load. In a closed-loop force control algorithm, a robot controller corrects the motion of the robot at the next moment according to the force feedback and the pose feedback of a sensor;
in the process of movement of the robot mechanical arm, an inertial mass effect can be generated, which is caused by acceleration generated by a load end (a clamp, an actuator, a sensor and the like) of the sensor; the inertia force can be generated under the influence of the acceleration, and the measurement value of the sensor can be directly influenced;
the traditional load end inertial mass is obtained by performing integral calculation by using a theoretical mechanics theory according to the rigid body shape and the material of a robot end actuator (including a sensor and a clamp), and when the overall shape of the actuator is more regular, the calculation result is higher in precision, but in general, the actuator is formed by assembling a plurality of different components, and the material of each component is also larger in difference, so that the calculation error of the inertial mass M of the actuator is larger; therefore, the inertia force error obtained by multiplying the acceleration value a measured by the sensor by M obtained by theoretical calculation is also large, so that a robot inertia force compensation method is urgently needed to solve the problem in order to meet the requirement of the measurement accuracy of the machining contact force.
Disclosure of Invention
The invention provides a robot inertial force compensation method which can eliminate the influence of load inertial force on a sensor measurement value so as to accurately analyze the external contact force applied to a load, and solves the problems in the prior art.
In order to achieve the purpose, the invention provides the following technical scheme: a robot inertial force compensation method, comprising:
s1, obtaining acceleration, planning the tail end of the robot to do linear motion, determining the starting point and the end point of the robot, and establishing a motion trail parameter equation as
Sampling all time step points in the linear motion, and calculating the acceleration a (t) of all the time step points;
s2, obtaining an inertia force, comprising:
a. method for obtaining sensor three-dimensional force F by using no-load motion of robotmeas=(Fx,Fy,Fz) And three-way moment Tmeas=(Tx,Ty,Tz);
b. Identifying the gravity magnitude G and the centroid position C ═ C (C) by using a gravity compensation algorithmx,Cy,Cz);
c. Dividing gravity and gravity moment along sensor coordinate systemHydrolyzing to obtain G '═ G'x,G′y,G′z) And T ═ T'x,T′y,T′z);
d. Measuring a sensor value F in a sensor coordinate systemmeasAnd TmeasRespectively subtracting the gravity value G 'and the gravity moment T' to obtain an inertia force FinertAnd moment of inertia Tinert;
S3, establishing a mapping between inertia force and acceleration: finert=[M]A, calculating an inertial force compensation parameter [ M];
S4, make the compensation force Fcomp=-FinertCompensating the moment Tcomp=-TinertAnd the method is used for compensating the inertia force with load measurement.
Preferably, in step S1, the starting point Ps of the linear motion of the robot end is determined as (x)
s,y
s,z
s) And end point Pe ═ x
e,y
e,z
e) The straight-line distance between two points is
The total time of the linear motion of the tail end of the robot is T, wherein all points on a straight line section between the two points are positioned in the robot working space.
Preferably, in step S1, the trajectory parameter equation S is subjected to isoparameter sampling on t, and the acceleration a (t) is calculated as:
a. sampling parameters of the straight line s (t) to obtain discrete parameters
And a sequence of discrete points
Wherein A is 2 pi L/T2,ω=2π/T;
b. Calculating speedDegree-discrete point sequence
Deriving t by the linear equation s (t):
wherein at each time sampling point t
iIn the above-mentioned manner,
c. calculating acceleration discrete point sequences
Deriving t by the velocity equation v (t):
wherein at each time sampling point t
iIn the above-mentioned manner,
preferably, in step S2, the robot performs idle motion, that is, only the end effector of the robot moves along the above-mentioned linear track, and does not need to contact with the real workpiece, so as to ensure that the sensor measurement value only includes gravity and inertia force.
Preferably, in step S2, when the gravity and the moment of gravity are resolved along the sensor coordinate system, the direction of the gravity of the robot end effector does not coincide with the Z direction of the sensor coordinate system, and the gravity is projected in three directions of the sensor coordinate system according to the posture of the robot end effector.
Preferably, in step S2, FmeasAnd TmeasRespectively subtracting the gravity value G 'and the gravity moment T', and specifically:
Finert_x=Fmeas_x-G′x;
Finert_y=Fmeas_y-G′y;
Finert_z=Fmeas_z-G′z;
Tinert_x=Tmeas_x-T′x;
Tinert_y=Tmeas_y-T′y;
Tinert_z=Tmeas_z-T′z。
preferably, in step S3, the discrete series of measurements are formed by a least squares method
And
fitting to obtain an inertia force compensation parameter M, wherein M is mass corresponding to translational motion, M is rotational motion, and M is rotational inertia, and in the F ═ Ma, when R is>(n +1), the least squares method is an over-determined equation whose solution is: m ═ a
Ta)
-1a
TF, wherein the dimension of F is [ R ]]Dimension of a [ R ]]And R is the number of rows of data.
Compared with the prior art, the invention has the beneficial effects that:
in the invention, the tail end of the robot makes linear motion, and a linear motion track parameter equation is established, so that the method has a simple form and is convenient to implement, and meanwhile, the acceleration sine law changes, the measurement is efficient and simple, and the smooth motion is ensured and is simple and controlled; in addition, by measuring the inertial force FinertThe measured acceleration a is utilized to establish the mapping relation between the inertia force and the acceleration, so that the inertia force is accurately compensated, the real-time calculation efficiency is improved, the shape and the material of the end effector of the robot are not required to be measured, the complexity and the calculation error of integral calculation of the rotational inertia are avoided, the influence of the action of the load inertia force on the measurement value of the sensor is eliminated, and the external contact force applied to the load is accurately analyzed.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
Example (b): as shown in fig. 1, a robot inertial force compensation method for accurately compensating an inertial force by measuring the inertial force and using a measured acceleration to establish a mapping relationship between the inertial force and the acceleration, includes:
s1, obtaining acceleration, planning the tail end of the robot to do linear motion, determining the starting point and the end point of the robot, and establishing a motion trail parameter equation as
Sampling all time step points in the linear motion, and calculating the acceleration a (t) of all the time step points;
first, the starting point Ps of the linear motion of the robot end is determined as (x)
s,y
s,z
s) And end point Pe ═ x
e,y
e,z
e) Calculating the linear distance between the two
Determining the total linear motion time of the tail end of the robot as T, wherein the distance between the two points is equal to the distance between the two points and is located in the robot working space, in the embodiment, L is 0.8m, and T is 8 s;
performing equal parameter sampling on t by using a track parameter equation s, and calculating an acceleration a (t) specifically as follows:
a. as shown in FIG. 1, for the displacement curve, the parameter sampling is performed on the straight line s (t) to obtain the discrete parameter
And a sequence of discrete points
Wherein A is 2 pi L/T2,ω=2π/T;
b. As shown in FIG. 3, a velocity discrete point sequence is calculated for the velocity profile
Deriving t by the linear equation s (t):
wherein at each time sampling point t
iIn the above-mentioned manner,
c. as shown in FIG. 4, a sequence of acceleration discrete points is calculated for the acceleration curve
Deriving t by the velocity equation v (t):
wherein at each time sampling point t
iIn the above-mentioned manner,
s2, obtaining an inertia force, comprising:
a. method for obtaining sensor three-dimensional force F by using no-load motion of robotmeas=(Fx,Fy,Fz) And three-way moment Tmeas=(Tx,Ty,Tz) (ii) a In order to ensure that the measured value of the sensor only contains gravity and inertia force, the robot does no-load motion, namely, the tail end of the robot only moves along the linear track without contacting with a real workpiece;
b. identifying the gravity magnitude G and the centroid position C ═ C (C) by using a gravity compensation algorithmx,Cy,Cz) Wherein the Gravity Compensation algorithm adopts an algorithm disclosed in the document Bias Estimation and Gravity Compensation For Force-Torque Sensors;
c. decomposing gravity and gravity moment along the sensor coordinate system to obtain G '═ G'x,G′y,G′z) And T ═ T'x,T′y,T′z);
When the gravity and the gravity moment are decomposed along a sensor coordinate system, wherein the gravity direction of the robot end effector is inconsistent with the Z direction of the sensor coordinate system, and the gravity is projected to three directions of the sensor coordinate system according to the posture of the robot end effector;
d. measuring a sensor value F in a sensor coordinate systemmeasAnd TmeasRespectively subtracting the gravity value G 'and the gravity moment T' to obtain an inertia force FinertAnd moment of inertia TinertThe method specifically comprises the following steps:
Finert_x=Fmeas_x-G′x;
Finert_y=Fmeas_y-G′y;
Finert_z=Fmeas_z-G′z;
Tinert_x=Tmeas_x-T′x;
Tinert_y=Tmeas_y-T′y;
Tinert_z=Tmeas_z-T′z。
s3, establishing a mapping between inertia force and acceleration: finert=[M]A, calculating an inertial force compensation parameter [ M];
Wherein, in step S3, the discrete sequence of measurement values is determined by the least squares method
And
fitting to obtain an inertia force compensation parameter M, wherein M is mass corresponding to translational motion, M is rotational motion, and M is rotational inertia, and in the F ═ Ma, when R is>(n +1), the least squares method is an over-determined equation whose solution is: m ═ a
Ta)
-1a
TF, wherein the dimension of F is [ R ]]Dimension of a [ R ]]R is the number of rows of data;
s4, make the compensation force Fcomp=-FinertCompensating the moment Tcomp=-TinertThe method is used for inertial force compensation with load measurement, and the calculation efficiency of compensation implementation is improved.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.