WORKPIECE AND CUTTER POSE CALIBRATION METHOD BASED ON ROBOTIC EDGE MILLING ERROR TRACKING

Information

  • Patent Application
  • 20240316716
  • Publication Number
    20240316716
  • Date Filed
    June 05, 2024
    6 months ago
  • Date Published
    September 26, 2024
    2 months ago
Abstract
A workpiece and cutter pose calibration method based on robotic edge milling error tracking, including: 1. generating an edge milling trajectory point cloud; 2. obtaining an actual edge milling three-dimensional point cloud; 3. generating an updated edge milling three-dimensional point cloud; 4. calculating an edge milling allowance error and a posture inclination error; 5. solving position errors of the workpiece and cutter; 6. solving posture errors of the workpiece and cutter; 7. updating pose parameters of the workpiece and cutter; 8. repeating steps 4 to 7 until pose error vectors of the workpiece and cutter are both not greater than corresponding preset thresholds. The disclosure performs error comparison, error modeling, and error tracking on the three-dimensional point cloud and edge milling trajectory point cloud, even if the cutter has system errors such as axis deviation, the disclosure can accurately identify pose errors of the workpiece and cutter during edge milling.
Description
BACKGROUND
Technical Field

The disclosure belongs to the technical field of skin edge milling, and in particular to a workpiece and cutter pose calibration method based on robotic edge milling error tracking.


Description of Related Art

Large skins such as satellite load-bearing cylinders, spacecraft sealed cabins, and aircraft fuselages are the main components of aerospace equipment, which have geometric features such as large free-form curved surfaces, thin walls, and easy deformation. As a result, edge milling of skins has always been a research difficulty in this field. The edge milling of the skin includes processes such as cutting, bending to form, and edge milling, in which edge milling is the last step before skin assembly, which has a significant impact on the sealing and safety performance of the aerospace equipment. Therefore, it is crucial to ensure the edge milling accuracy of the skin. Currently, the skin edge milling in China mainly relies on manual work, which has the characteristics of, for example, low accuracy of edge milling, poor consistency, and low efficiency, thereby it is difficult for the technology to meet the needs of high-quality development of aerospace equipment manufacturing in China. Robots have advantages such as high flexibility, large working range, and easy expansion, and provide a new solution for robotic skin edge milling. As it may be seen from the development trend, manual edge milling is going to be gradually replaced by robotic edge milling.


In the robotic skin edge milling system, in order to meet the edge milling accuracy requirements, it is necessary to accurately calibrate the workpiece coordinate system pose and the edge milling cutter coordinate system pose for the skin, that is, to determine the relative pose of the workpiece and cutter coordinate systems in the base coordinate system of the robot. Currently, the workpiece and cutter pose calibration methods for robotic edge milling are mainly as follows. 1) Ejector method: the spatial position of the milling cutter is determined by the contact between the outer contour of the milling cutter and the ejector, and then calibration is realized through six-point positioning. 2) LVDT method: the method is to replace the ejector with an LVDT (linear variable differential transformer), LVDT can automatically identify the contact status of feature points and determine the positions, which avoids the need to determine the contact status with the naked eye, but the non-contact feature direction is still determined by the naked eye. 3) Ball calibration method: the method replaces the ejector with a standard ball and a sapphire probe, thereby the “point-to-point” contact of the ejector is upgraded to “ball-to-ball” contact. 4) Laser tracker method: the method is to stick the reflective target ball to the cutter, and then the pose of the target ball is recorded through the laser tracker to achieve cutter calibration.


The above four methods have problems as follows. 1) The robot controls the ejector to touch the cutter, and each touch corresponds to only one piece of data. The small amount of data (<100) greatly limits the stability of the calibration results. 2) The above calibration methods are all for calibration when the milling cutter is stationary, which cannot reflect the pose error caused by factors such as cutter rotation deviation, cutter deformation from force, and vibration during the milling process, which may easily cause large calibration errors. 3) The feature points on the cutter are not notable, searching the points by naked eyes has to be performed by highly experienced workers, and the accuracy is low.


SUMMARY

The disclosure provides a workpiece and cutter pose calibration method based on robotic edge milling error tracking to solve the technical problems of large calibration errors and low accuracy in the related art.


To achieve the above purpose, the technical solution of the disclosure is implemented as follows.


The disclosure provides a workpiece and cutter pose calibration method based on robotic edge milling error tracking, which includes steps as follows.


Step S10. An edge milling path of a cutter to a workpiece is constructed, and an edge milling trajectory point cloud Q processed by a robot is generated.


Step S20. An actual edge milling three-dimensional point cloud P of the workpiece is obtained.


Step S30. The edge milling trajectory point cloud Q and the actual three-dimensional point cloud P of the workpiece are matched into the same coordinate system to generate a pose updated three-dimensional point cloud P′.


Step S40. An edge milling allowance error ei and a posture inclination error αi are calculated according to the edge milling trajectory point cloud Q and the pose updated edge milling three-dimensional point cloud P′.


Step S50. An influence model of a position error of the workpiece on the edge milling allowance error and an influence model of a position error of the cutter on the edge milling allowance error when milling an i-th point of the workpiece are established according to the edge milling allowance error ei, and a workpiece position error Wd and a cutter position error Udz are solved.


Step S60. An influence model of a posture error of the workpiece on the edge milling error and an influence model of a posture error of the cutter on the edge milling error when milling the i-th point of the workpiece are established according to the posture inclination error αi, and a workpiece pose error Uδx and a cutter pose error Wδ are solved.


Step S70. A workpiece pose parameter and a cutter pose parameters are updated according to the workpiece position error Wd, the cutter position error Udz, the workpiece pose error Uδx, and the cutter pose error Wδ.


Step S80. Step S40 to Step S70 are repeated until a workpiece pose error vector is WV and a cutter pose error vector UV and both of the vectors are not greater than corresponding preset thresholds.


Furthermore, Step S10 is specifically as follows. A boundary cross-section of a design model of the workpiece is discretized uniformly to generate the uniform and orderly edge milling trajectory point cloud Q={q1, q2, . . . , qi, . . . , qn}. Any point qi in the edge milling trajectory point cloud Q is a vector of 3×1, a unit normal vector wi of qi is perpendicular to a boundary lateral cross-section, and a positive direction is toward outside of the cross-section and is the same as an edge milling depth direction. A first unit tangent vector τi1 of the point qi is parallel to a cross-section boundary direction and is the same as a motion direction of an edge milling trajectory. A second unit tangent vector τi2 of the point qi is parallel to a curved surface thickness direction. A coordinate system of the point qi is constituted together by the three vectors (τi1, τi2, wi), in which the three vectors respectively correspond to directions of the x-axis, the y-axis, and the z-axis.


Furthermore, Step S20 specifically includes steps as follows.


Step S21. An initial workpiece pose parameter and an initial cutter pose parameter are respectively defined as WBT and UBT, in which WBT represents a pose of a workpiece coordinate system {W} relative to a base coordinate system {B}, UBT represents a pose of a cutter coordinate system {U} relative to the base coordinate system {B}, and both of the workpiece pose parameter WBT and the cutter pose parameter UBT are homogeneous transformation matrices of 4×4.


Step S22. Pose positioning is performed on an end of edge milling through the workpiece pose parameter WBT and the cutter pose parameter UBT.


Step S23. Edge milling is performed on a workpiece blank according to the edge milling path constructed. After completion, Three-dimensional scanning is performed on a surface to be milling processed of the workpiece by a three-dimensional scanning device to obtain the actual edge milling three-dimensional point cloud P of the workpiece. Each point on the actual edge milling three-dimensional point cloud P is a vector of 3×1.


Furthermore, the step S30 specifically includes the following steps.


Step S31. A closest point to the point qi in the actual edge milling three-dimensional point cloud P is searched for and denoted as pa, in which the search is for any point in the edge milling trajectory point cloud Q, and i=1, 2, . . . , n.


Step S32. A matching objective function ƒ(R,t) based on uniform allowance is constructed using the point pair (qi,pa), in which custom-character t respectively represents a rotation posture matrix of 3×3 of the actual edge milling three-dimensional point cloud P and a translation position matrix of 3×1 of the edge milling trajectory point cloud Q; then the pose parameters R and t are solved by minimizing the objective function.


Step S33. A position of any point on the actual edge milling three-dimensional point cloud P is updated as pi′=Rpa+t, and pi=pi′ is assigned to obtain the pose updated edge milling three-dimensional point cloud P′={p1′, p2′, . . . , pa′, . . . , pm′}.


Furthermore, the objective function to be minimized in Step S32 is min








f

(

R
,
t

)

=





i
=
1

n


d
i
2


-



(







i
=
1

n



d
i


)

2

/
n



,




in which di=∥Rpa+t−qi∥, di represents a distance from point pa′ to point qi, and n represents the number of points in the edge milling trajectory point cloud Q.


Furthermore, Step S40 specifically includes steps as follows.


Step S41. A closest point pa′ to the point qi is extracted from the updated edge milling three-dimensional point cloud P′ according to the edge milling trajectory point cloud Q, and then the edge milling allowance error of the point qi is ei=(qi−pa′)Twi.


Step S42. The operation is started from the point qi to search for an upper boundary point qui and a lower boundary point qli of the point qi along a positive direction of the second unit tangent vector τi2 in the cross-section design model according to the edge milling trajectory point cloud Q, further, closest points (pua′,pla′) to the points (qui,qli) are respectively extracted from the edge milling three-dimensional point cloud P′ to construct an error vector τi2′=(2pua′−pa′−pla′)/∥2pua′−pa′−pla′∥ of a boundary inclination direction; and then the posture inclination error of edge milling is αi=arccos(τi2Tτi2′).


Furthermore, Step S50 specifically includes the following steps.


Step S51. A position error vector of the initial workpiece pose parameter WBT of the workpiece is defined as Wd, a position error vector of the initial cutter pose parameter UBT is defined as Ud, and both Wd and Ud are vectors to be solved of 3×1, in which Ud is further expressed as Ud=[0,0,Udz]T, and Udz is a component of Ud on a z-axis.


Step S52. The influence model of the position error of the workpiece on the edge milling allowance error and the influence model of the position error of the cutter on the edge milling allowance error when milling the i-th point of the workpiece are established respectively, in which the influence model of the position error of the workpiece on the edge milling allowance error when milling the i-th point of the workpiece is eiw=WdTwi, and the influence model of the position error of the cutter on the edge milling allowance error when milling the i-th point of the workpiece is eiu=Udz. The two influence models established are combined to obtain an influence model of a combined error when milling the i-th point of the workpiece, in which the model is ei=WdTwi+Udz, and wi represents the unit normal vector of qi.


Step S53. The influence model of the combined error when milling the i-th point of the workpiece is used to establish a matrix formula e=WdTN+UD for position error identification of all contact points of the workpiece and the cutter at different times, in which N=[n1, n2, . . . , ni, . . . nn] is a matrix of 3×n, and e=[e1, e2, . . . , ei, . . . en] and UD=[Udz, Udz, . . . , Udz]1×n are matrices of 1×n; the n in the above represents the number of points in the edge milling trajectory point cloud Q; and then the cutter position error is Udzi=1nei/n, and the workpiece position error is Wd=(NNT)−1N(e−UD)T.


Furthermore, Step S60 includes steps as follows.


Step S61. A posture error vector of the initial workpiece pose parameter WBT of the workpiece blank is defined as Wδ, a posture error vector of the initial cutter pose parameter UBT is defined as Uδ, and both Wδ and Uδ are vectors to be solved of 3×1; in which Uδ is further expressed as Uδ=[Uδx,0,0]T, and Uδx is a component of Uδ on an x-axis.


Step S62. The influence model of the posture error of the workpiece on the edge milling error and the influence model of the posture error of the cutter on the edge milling error when milling the i-th point of the workpiece are respectively established, in which the influence model of the posture error of the workpiece on the edge milling error when milling the i-th point of the workpiece is αiwi2T Wδ, and the influence model of the posture error of the cutter on the edge milling error when milling the i-th point of the workpiece is αiu=Uδx; the two influence models established are combined to obtain an influence model of a combined error when milling the i-th point of the workpiece, in which the model is








α
i


=
U




δ
x

+


τ

i

2

T





W

δ



=



[

1
,

τ

i

2

T


]

[





U


δ
x









W

δ




]

=


a
i


ξ




,




ai=[1, τi2T] is a coefficient matrix of 1×4, and






ξ
=

[





U


δ
x









W

δ




]





is a workpiece cutter posture error combination vector of 4×1.


Step S63. The influence model of the combined error of the i-th point is used to establish a posture error identification formula α=Aξ of all milling points of the workpiece and the cutter at different times, in which α=[α1, α2, . . . , αi, . . . αn]T is a matrix of n×1, and A=[a1T, a2T, . . . , anT]T is a matrix of n×4; the workpiece and cutter pose combined error is solved as ξ=(ATA)−1ATα, in which








I
1

=

[

1
,
0
,
0
,
0

]


,


I
3

=

[



0


1


0


0




0


0


1


0




0


0


0


1



]


,




and the workpiece posture error and the cutter posture error are respectively Uδx=I1ξ, Wδ=I3ξ.


Furthermore, the unit normal vectors of all points on the edge milling trajectory point cloud Q in Step S10 satisfies Σi=1nwi=03×1.


Furthermore, the number n of points on the edge milling trajectory point cloud Q in Step S10 satisfies n≥6.


Beneficial effects of the disclosure are as follows.

    • 1. The disclosure identifies and compensates for the pose errors of the workpiece/cutter by performing error comparison, error modeling, and error tracking on the edge milling trajectory of the edge milling and design model after robotic edge milling. Compared with the existing pose construction method before edge milling, even if the cutter has system errors such as axis deviation and edge milling deformation from force, the pose errors of the workpiece and cutter during the robotic edge milling process can be accurately identified without having to accurately know the influence factors of the workpiece and cutter pose errors, which can effectively solve the calibration accuracy problem caused by the diversity and complexity of robotic edge milling system errors, and can be widely used in robotic edge milling of thin-walled curved surface skins in aerospace.
    • 2. The disclosure adopts a stitched objective function based on allowance homogenization, which can accurately unify the edge milling trajectory point cloud Q and the actual edge milling three-dimensional point cloud P of the workpiece into the same coordinate system. Compared with the currently commonly used stitching method based on the minimum sum of squared distances, the disclosure can solve problems of unstable stitching when the measured point cloud has defects such as uneven density distribution and incomplete shape, and prevent the measured point cloud from inclining toward the dense place of the point cloud during stitching, thereby the stitching accuracy and the allowance calculation accuracy during the edge milling pose calibration process is improved.
    • 3. The disclosure uses the edge milling trajectory point cloud Q of the free-form curved surface and the actual edge milling three-dimensional point cloud P of the workpiece as input data to establish the influence models of the position errors of the workpiece and cutter and solve the models. Compared with the conventional method based on coordinate system construction, on the one hand, the amount of data acquired per unit time has been significantly increased (the amount of point cloud data has increased from a dimension of 10 to a dimension of 100,000), which is conducive to improving the stability of the calibration results and the calibration efficiency at the same time; on the other hand, during the data collection process, the method does not need to determine the contact state between the calibration object and the ejector/LVDT (linear variable differential transformer) by naked eye observation, and does not need to strictly control the robot to perform specific pose movements, which is conducive to improving the accuracy of data acquisition and the convenience of calibration.
    • 4. The disclosure uses any curved surface as the calibration object, and has no strict requirements on the shape and size of the calibration object. During the calibration process, it is not necessary to make the measuring instrument pass through a specific position of the boundary of the curved surface, which solves the problems of high manufacturing accuracy requirements, high cost, and limited calibration range of the conventional calibration method for regular objects (for example, spheres, disks, and cylinders). The method may also use the curved surface workpiece required for edge milling as the calibration object, thereby the edge milling accuracy is directly improved through calibration.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a schematic diagram of a process of the disclosure.



FIG. 2 is a schematic structural diagram of a coordinate system of an edge milling trajectory point cloud Q.



FIG. 3 is a schematic diagram of calculation results of allowance errors of the edge milling trajectory point cloud Q.



FIG. 4 is a schematic diagram of calibration error results of a cutter when measuring a point cloud under different Gaussian noise conditions.





DESCRIPTION OF THE EMBODIMENTS

The disclosure will be further described in detail below with reference to the accompanying drawings and specific embodiments.


Referring to FIG. 1, a workpiece and cutter pose calibration method based on robotic edge milling error tracking according to an embodiment of the disclosure is provided, which includes steps as follows.


Step S10. An edge milling path of a cutter to a workpiece is constructed, and an edge milling trajectory point cloud Q processed by a robot is generated.


A boundary cross-section of an edge to be milled of a workpiece design model is penetrated by a three-dimensional detection software to obtain a cross-section curve. As shown in FIG. 2, the cross-section curve is discretized uniformly to generate the uniform and orderly edge milling trajectory point cloud Q={q1, q2, . . . , qi, . . . , qn}, in which a number n satisfies n≥6, and preferably, the number n=1000. Least squares plane fitting is performed on a neighborhood of each point qi, in which a plane unit normal is used as a unit normal vector wi of the point qi, a unit direction (qi−qi+1)/∥qi−qi+1∥ of a line connecting adjacent points is used as a first unit tangent vector τi1 of the point qi, and a second unit tangent vector τi2 of the point qi may be obtained by cross product τi2=wi×τi1. An edge milling coordinate system of the point qi is constituted together by the three vectors (τi1, τi2, wi), which respectively correspond to directions of an x-axis, a y-axis, and a z-axis. The edge to be milled may be a plane or may be a free-form curved surface. The unit normal vectors of all points in the edge milling trajectory point cloud Q satisfy Σi=1nwi=03×1.


Step S20. An actual edge milling three-dimensional point cloud P of the workpiece is obtained, in which a number m of points in the actual edge milling three-dimensional point cloud P satisfies m≥3n, and n is the number of points in the edge milling trajectory point cloud Q.


Step S30. The edge milling trajectory point cloud Q and the three-dimensional point cloud P are matched into the same coordinate system to generate a pose updated three-dimensional point cloud P′.


Step S40. An edge milling allowance error ei and an posture inclination error αi are calculated according to the edge milling trajectory point cloud Q and the edge milling three-dimensional point cloud P′.


Step S50. An influence model of a position error of the workpiece on the edge milling allowance error and an influence model of a position error of the cutter on the edge milling allowance error when milling an i-th point of the workpiece are established according to the edge milling allowance error ei, and a workpiece position error Wd and a cutter position error Udz are solved.


Step S60. An influence model of a posture error of the workpiece on the edge milling error and an influence model of a posture error of the cutter on the edge milling error when milling the i-th point of the workpiece are established according to the posture inclination error αi, and a workpiece pose error Uδx and a cutter pose error Wδ are solved.


Step S70. A workpiece pose parameter and a cutter pose parameters are updated according to the workpiece position error Wd, the cutter position error Udz, the workpiece pose error Uδx, and the cutter pose error Wδ.


Step S80. Step S40 to Step S70 are repeated until a workpiece pose error vector is WV and a cutter pose error vector UV and both of the vectors are not greater than corresponding preset thresholds.


In this embodiment, the preset thresholds of the workpiece pose error vector and the cutter pose error vector may both be 0.003.


Update workpiece and cutter posture parameters: a workpiece pose error vector of 6×1 is denoted as WV=[WdT,WδT]T, and the updated workpiece pose parameter is WBT′=WBTe[WV]. A cutter pose error vector of 6×1 is denoted as UV=[0,0,Udz,Uδx,0,0]T, and the updated cutter pose parameter is UBT′=UBTe[UV], in which for any vector V=[dx,dy,dzxyz]T, the expression of [UV] is:









[
U

V

]

=


[



0




-

U




δ
z






U


δ
y






U


δ
x








U


δ
z




0




-

U




δ
x






U


δ
y








-

U




δ
y






U


δ
x




0




U


δ
z






0


0


0


0



]

.






FIG. 4 shows the comparison results of workpiece pose calibration errors when measuring the actual edge milling three-dimensional point cloud P under different Gaussian noise conditions. It may be seen that when the Gaussian noise is large, the calibration error of the method according to the disclosure is smaller than the conventional construction method, and the result is more stable.


The step S20 specifically includes the following steps.


Step S21. An initial workpiece pose parameter and an initial cutter pose parameter are respectively defined as WBT and UBT, in which WBT represents a pose of a workpiece coordinate system {W} relative to a base coordinate system {B}, UBT represents a pose of a cutter coordinate system {U} relative to the base coordinate system {B}, and both of the workpiece pose parameter WBT and the cutter pose parameter UBT are homogeneous transformation matrices of 4×4; the initial workpiece pose parameter and the initial cutter pose parameter may be calibrated by methods such as ejector and LVDT. The calibration of the initial pose is not limited to a specific method, and there is no strict requirement for the calibration accuracy.


Step S22. Pose positioning is performed on an end of edge milling through the workpiece pose parameter WBT and the cutter pose parameter UBT.


Step S23. Edge milling is performed on a workpiece blank according to a set trajectory, in which the edge milling allowance given is 0.5 mm. Three-dimensional scanning is performed on the milling edge of the workpiece by a three-dimensional scanning device to form the actual edge milling three-dimensional point cloud P of edge milling, in which P={p1, p2, . . . , pi, . . . , pm}, and each point on the actual edge milling three-dimensional point cloud P is a vector of 3×1. The number m of points in the actual edge milling three-dimensional point cloud P is approximately 120,000.


The Step S30 specifically includes the following steps.


Step S31. A closest point to the point qi in the actual edge milling three-dimensional point cloud P is searched for and denoted as pa, in which the search is for any point in the edge milling trajectory point cloud Q, and i=1, 2, . . . , n.


Step S32. A matching objective function ƒ(R,t) based on uniform allowance is constructed using the point pair (qi,pa), in which custom-character t respectively represents a rotation posture matrix of 3×3 of the actual edge milling three-dimensional point cloud P and a translation position matrix of 3×1 of the edge milling trajectory point cloud Q; then the pose parameters R and t are solved by minimizing the objective function. The solving method may be achieved through Taylor expansion or by deriving the objective function. To improve the matching accuracy, multiple iterations are required, and the number of iterations is approximately 50. The rotation and translation matrices obtained in an a-th iteration are denoted as Ra and ta, the total number of iterations is k, and the iteration method is:







[



R


t





0

1
×
3




1



]

=


[




R
k




t
k






0

1
×
3




1



]






[




R
a




t
a






0

1
×
3




1



]








[




R
2




t
2






0

1
×
3




1



]

[




R
1




t
1






0

1
×
3




1



]

.






The minimized objective function is min








f

(

R
,
t

)

=





i
=
1

n


d
i
2


-



(







i
=
1

n



d
i


)

2

/
n



,




in which di=∥Rpa+t−qi∥, di represents a distance from point pi′ to point qi, and n represents the number of points in the edge milling trajectory point cloud Q.


Step S33. A position of any point on the actual edge milling three-dimensional point cloud P is updated as pi′=Rpa+t, and pi=pi′ is assigned to obtain the pose updated edge milling three-dimensional point cloud P′.


The Step S40 includes the following steps.


Step S41. A closest point pa′ to the point qi is extracted from the three-dimensional point cloud P′ according to the edge milling trajectory point cloud Q={q1, q2, . . . , qi, . . . , qn} and through methods such as Kd-tree (K-dimensional tree search calculation method), and then the edge milling allowance error of the point qi is ei=(qi−pa′)Tni; FIG. 3 shows the distribution of allowance errors at different points. It may be seen that the allowance errors are not uniformly distributed, and the distribution is mainly affected by the workpiece pose error. The allowance error is not zero, and the situation is mainly affected by the workpiece pose error. Through the relationship model of the allowance error with respect to the workpiece/cutter pose error, the model may be used to identify workpiece and cutter pose errors.


Step S42. The operation is started from the point qi to search for an upper boundary point qui and a lower boundary point qli of the point qi along a positive direction of the second unit tangent vector τi2 in the cross-section design model according to the edge milling trajectory point cloud Q, further, closest points (pua′,pla′) to the points (qui,qli) are respectively extracted from the edge milling three-dimensional point cloud P′ to construct an error vector τi2′=(2pua′−pa′−pla′)/∥2pua′−pa′−pla′∥ of a boundary inclination direction; and then the posture inclination error of edge milling is αi=arccos(τi2Tτi2′).


Step S50 specifically includes the following steps.


Step S51. A position error vector of the initial workpiece pose parameter WBT of the workpiece is defined as Wd, a position error vector of the initial cutter pose parameter UBT is defined as Ud, and both Wd and Ud are vectors to be solved of 3×1, in which Ud is further expressed as Ud=[0,0,Udz]T, and Udz is a component of Ud on a z-axis.


Step S52. The influence model of the position error of the workpiece on the edge milling allowance error and the influence model of the position error of the cutter on the edge milling allowance error when milling the i-th point of the workpiece are established respectively, in which the influence model of the position error of the workpiece on the edge milling allowance error when milling the i-th point of the workpiece is eiw=WdTwi, and the influence model of the position error of the cutter on the edge milling allowance error when milling the i-th point of the workpiece is eiu=Udz. The two influence models established are combined to obtain an influence model of a combined error when milling the i-th point of the workpiece, in which the model is ei=WdTwi+Udz, and wi represents the unit normal vector of qi.


Step S53. The influence model of the combined error when milling the i-th point of the workpiece is used to establish a matrix formula e=WdTN+UD for position error identification of all contact points of the workpiece and the cutter at different times, in which N=[n1, n2, . . . , ni, . . . nn] is a matrix of 3×n, and e=[e1, e2, . . . , ei, . . . en] and UD=[Udz, Udz, . . . , Udz]1×n are matrices of 1×n; and then the cutter position error is Udzi=1nei/n, and the workpiece position error is Wd=(NNT)−1N(e−UD)T.


Step S60 includes the following steps.


Step S61. A posture error vector of the initial workpiece pose parameter WBT of the workpiece blank is defined as Wδ, a posture error vector of the initial cutter pose parameter UBT is defined as Uδ, and both Wδ and Uδ are vectors to be solved of 3×1; in which Uδ is further expressed as Uδ=[Uδx,0,0]T, and Uδx is a component of Uδ on an x-axis.


Step S62. The influence model of the posture error of the workpiece on the edge milling error when milling the i-th point of the workpiece and the influence model of the posture error of the cutter on the edge milling error when milling the i-th point of the workpiece are established, in which the influence model of the posture error of the workpiece on the edge milling error when milling the i-th point of the workpiece is αiwi2T Wδ, and the influence model of the posture error of the cutter on the edge milling error when milling the i-th point of the workpiece is αiu=Uδx, and then an influence model of a combined error when milling the i-th point of the workpiece is








α
i


=
U




δ
x

+


τ

i

2

T





W

δ



=



[

1
,

τ

i

2

T


]

[





U


δ
x









W

δ




]

=


a
i


ξ




,




in which ai=[1, τi2T] is a coefficient matrix of 1×4, and






ξ
=

[





U


δ
x









W

δ




]





is a workpiece and cutter posture error combination vector of 4×1.


Step S63. The influence model of the combined error of the i-th point is used to establish a posture error identification formula α=Aξ of all milling points of the workpiece and the cutter at different times, in which α=[α1, α2, . . . , αi, . . . αn]T is a matrix of n×1, and A=[a1T, a2T, . . . , anT]T is a matrix of n×4; then, the workpiece and cutter pose combined error is solved as ξ=(ATA)−1ATα, in which








I
1

=

[

1
,
0
,
0
,
0

]


,


I
3

=

[



0


1


0


0




0


0


1


0




0


0


0


1



]


,




and the workpiece posture error and the cutter posture error are respectively Uδx=I1ξ, Wδ=I3ξ.


The above description is only a specific implementation mode of the disclosure, but the protection scope of the disclosure is not limited thereto. Any technician familiar with the technical field may easily think of changes or substitutions within the technical scope disclosed by the disclosure, and the changes or substitutions should be covered by the protection scope of the disclosure. Furthermore, the technical solutions of various embodiments of the disclosure may be combined with each other, but the operation has to be based on the fact that the combination may be implemented by ordinary technicians in the field, when the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the protection scope required by the disclosure. Therefore, the protection scope of the disclosure should be based on the protection scope of the appended claims.

Claims
  • 1. A workpiece and cutter pose calibration method based on robotic edge milling error tracking, comprising steps as follows: Step S10, constructing an edge milling path of a cutter to the workpiece to generate a robotic edge milling trajectory point cloud Q;Step S20, obtaining an actual edge milling three-dimensional point cloud P of the workpiece;Step S30, matching an edge milling trajectory point cloud Q and the actual edge milling three-dimensional point cloud P into same coordinate system to generate a pose updated edge milling three-dimensional point cloud P′;Step S40, calculating an edge milling allowance error ei and a posture inclination error αi according to the edge milling trajectory point cloud Q and the edge milling three-dimensional point cloud P′;Step S50, establishing respectively an influence model of a position error of the workpiece on the edge milling allowance error and an influence model of a position error of the cutter on the edge milling allowance error when milling an i-th point of the workpiece according to the edge milling allowance error ei, and solving a workpiece position error Wd and a cutter position error Udz;Step S60, establishing respectively an influence model of a posture error of the workpiece on the edge milling error and an influence model of a posture error of the cutter on the edge milling error when milling the i-th point of the workpiece according to the posture inclination error αi, and solving a workpiece posture error Uδx and a cutter posture error Wδ;Step S70, updating a workpiece pose parameter and a cutter pose parameter according to the workpiece position error Wd, the cutter position error Udz, the workpiece posture error Uδx, and the cutter posture error Wδ;Step S80, repeating the Step S40 to the Step S70 until a workpiece pose error vector is WV and a cutter pose error vector is UV and both of vectors are less than or equal to corresponding preset thresholds.
  • 2. The workpiece and cutter pose calibration method according to claim 1, wherein the Step S10 comprises: discretizing uniformly a boundary cross-section of a design model of the workpiece to generate the uniform and orderly edge milling trajectory point cloud Q={q1, q2, . . . , qi, . . . , qn}, wherein any point qi in the edge milling trajectory point cloud Q is a vector of 3×1, a unit normal vector wi of qi is perpendicular to a boundary lateral cross-section, and a positive direction is toward outside of the cross-section and is same as an edge milling depth direction, wherein a first unit tangent vector τi1 of the point qi is parallel to a cross-section boundary direction and is same as a motion direction of an edge milling trajectory, wherein a second unit tangent vector τi2 of the point qi is parallel to a curved surface thickness direction; constituting a coordinate system of the point qi together by three vectors (τi1,τi2,wi), wherein the three vectors respectively correspond to directions of an x-axis, a y-axis, and a z-axis.
  • 3. The workpiece and cutter pose calibration method according to claim 1, wherein the Step S20 comprises steps as follows: Step S21, defining respectively an initial workpiece pose parameter and an initial cutter pose parameter as WBT and UBT, wherein WBT represents a pose of a workpiece coordinate system {W} relative to a base coordinate system {B}, UBT represents a pose of a cutter coordinate system {U} relative to the base coordinate system {B}, and both of the workpiece pose parameter WBT and the cutter pose parameter UBT are homogeneous transformation matrices of 4×4;Step S22, positioning an edge milling pose of a robot through the workpiece pose parameter WBT and the cutter pose parameter UBT;Step S23, performing edge milling on a workpiece blank according to the edge milling path, which is constructed, and after completion, performing three-dimensional scanning on a surface to be milling processed of the workpiece by a three-dimensional scanning device to obtain the actual edge milling three-dimensional point cloud P of the workpiece, wherein P={p1, p2, . . . , pa, . . . , pm}, and each point on the actual edge milling three-dimensional point cloud P is a vector of 3×1.
  • 4. The workpiece and cutter pose calibration method according to claim 3, wherein the Step S30 comprises steps as follows: Step S31, searching for a closest point to the point qi in the actual edge milling three-dimensional point cloud P and denoting as pa, wherein the search is for any point qi in the edge milling trajectory point cloud Q, and i=1, 2, . . . , n;Step S32, constructing a matching objective function ƒ(R,t) based on uniform allowance using point pair (qi,pa), wherein t respectively represents a rotation posture matrix of 3×3 of the actual edge milling three-dimensional point cloud P and a translation position matrix of 3×1 of the edge milling trajectory point cloud Q; then solving pose parameters R and t by minimizing an objective function;Step S33, updating a position of any one of the points pa on the actual edge milling three-dimensional point cloud P as pa′=Rpa+t, and assigning pa=pa′ to obtain the pose updated edge milling three-dimensional point cloud P′, wherein P′={p1′, p2′, . . . , pa′, . . . , pm′}.
  • 5. The workpiece and cutter pose calibration method according to claim 3, wherein an objective function to be minimized in the Step S32 is min
  • 6. The workpiece and cutter pose calibration method according to claim 3, wherein the Step S40 comprises steps as follows: Step S41, extracting a closest point pa′ to the point q, from the edge milling three-dimensional point cloud P′ according to the edge milling trajectory point cloud Q, wherein the edge milling allowance error of the point qi is ei=(qi−pa′)Twi;Step S42, starting from the point qi to search for an upper boundary point qui and a lower boundary point qli of the point qi along a positive direction of the second unit tangent vector τi2 in a cross-section design model according to the edge milling trajectory point cloud Q, further, extracting respectively closest points (pua′,pla′) to the points (qui,qli) from the edge milling three-dimensional point cloud P′ to construct an error vector τi2′=(2pua′−pa′−pla′)/∥2pua′−pa′−pla′∥ of a boundary inclination direction; wherein the posture inclination error of edge milling is αi=arccos(τi2Tτi2′).
  • 7. The workpiece and cutter pose calibration method according to claim 6, wherein the Step S50 comprises steps as follows: Step S51, defining a position error vector of the initial workpiece pose parameter WBT of the workpiece as Wd, defining a position error vector of the initial cutter pose parameter UBT as Ud, and both Wd and Ud are vectors to be solved of 3×1; wherein Ud is further expressed as Ud=[0,0,Udz]T, and Udz is a component of Ud on a z-axis;Step S52, establishing respectively the influence model of the position error of the workpiece on the edge milling allowance error and the influence model of the position error of the cutter on the edge milling allowance error when milling the i-th point of the workpiece, wherein the influence model of the position error of the workpiece on the edge milling allowance error when milling the i-th point of the workpiece is eiw=WdTwi, and the influence model of the position error of the cutter on the edge milling allowance error when milling the i-th point of the workpiece is eiu=Udz, combining two influence models established to obtain an influence model of a combined error when milling the i-th point of the workpiece, wherein the model is eoi=WdTwi+Udz, and wi represents the unit normal vector of qi;Step S53, using the influence model of the combined error when milling the i-th point of the workpiece to establish a matrix formula e=WdTN+UD for position error identification of all contact points of the workpiece and the cutter at different times, wherein N=[n1, n2, . . . , ni, . . . nn] is a matrix of 3×n, and e=[e1, e2, . . . , ei, . . . en] and UD=[Udz, Udz, . . . , Udz]1×n, are matrices of 1×n; wherein the cutter position error is Udz=Σi=1nei/n, and the workpiece position error is Wd=(NNT)−1N(e−UD)T.
  • 8. The workpiece and cutter pose calibration method according to claim 6, wherein the Step S60 comprises steps as follows: Step S61, defining a posture error vector of the initial workpiece pose parameter WBT of the workpiece blank as Wδ, defining a posture error vector of the initial cutter pose parameter UBT as Uδ, and both Wδ and Uδ are vectors to be solved of 3×1; wherein Uδ is further expressed as Uδ=[Uδx,0,0]T, and Uδx is a component of Uδ on an x-axis;Step S62, establishing respectively the influence model of the posture error of the workpiece on the edge milling error and the influence model of the posture error of the cutter on the edge milling error when milling the i-th point of the workpiece, wherein the influence model of the posture error of the workpiece on the edge milling error when milling the i-th point of the workpiece is αiw=τi2T Wδ, and the influence model of the posture error of the cutter on the edge milling error when milling the i-th point of the workpiece is αiu=Uδx; combining two influence models established to obtain an influence model of a combined error when milling the i-th point of the workpiece, wherein the model is
  • 9. The workpiece and cutter pose calibration method according to claim 1, wherein unit normal vectors of all points on the edge milling trajectory point cloud Q in the Step S10 satisfies Σi=1nwi=03×1.
  • 10. The workpiece and cutter pose calibration method according to claim 1, wherein the number n of points on the edge milling trajectory point cloud Q in the Step S10 satisfies n≥6.
Priority Claims (1)
Number Date Country Kind
202210785829.1 Jul 2022 CN national
CROSS-REFERENCE TO RELATED APPLICATION

This application is a continuation of international application of PCT application serial no. PCT/CN2023/091130, filed on Apr. 27, 2023, which claims the priority benefit of China application no. 202210785829.1, filed on Jul. 5, 2022. The entirety of each of the above-mentioned patent applications is hereby incorporated by reference herein and made a part of this specification.

Continuations (1)
Number Date Country
Parent PCT/CN2023/091130 Apr 2023 WO
Child 18733869 US