# US 2024/0316716 A1 · Workpiece and cutter pose calibration method based on robotic edge milling error tracking

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0316716 A1
- Document ID: US20240316716A1
- Status: Published application
- Kind: A1
- Application number: 18/733,869
- Filed: 2024-06-05
- Published: 2024-09-26
- Earliest claimed: 2022-07-05
- Assignees: Hunan University
- Applicants: Hunan University
- Inventors: He Xie; Yaonan Wang; Hui Zhang; Jianxu Mao
- Web page: https://patentgrep.com/patent/US20240316716A1

## CPC

- B23Q 17/22: for indicating or measuring existing or desired position of tool or work {(B23Q16/005 takes precedence)}
- B23C 3/12: Trimming or finishing edges, e.g. deburring welded corners
- G05B 19/401: characterised by control arrangements for measuring, e.g. calibration and initialisation, measuring workpiece for machining purposes (G05B19/19 takes precedence)
- B23C 2235/21: Calibration by electronic detection of position of probes and cutting wheels
- B23Q 2717/006: in milling machines
- G05B 2219/37404: Orientation of workpiece or tool, surface sensor
- G05B 2219/45145: Milling
- B23Q: DETAILS, COMPONENTS, OR ACCESSORIES FOR MACHINE TOOLS, e.g. ARRANGEMENTS FOR COPYING OR CONTROLLING (tools of the kind used in lathes or boring machines B23B27/00); MACHINE TOOLS IN GENERAL CHARACTERISED BY THE CONSTRUCTION OF PARTICULAR DETAILS OR COMPONENTS; COMBINATIONS OR ASSOCIATIONS OF METAL-WORKING MACHINES, NOT DIRECTED TO A PARTICULAR RESULT
- B23C: MILLING (broaching B23D; broach-milling in making gears B23F; arrangement for copying or controlling B23Q)
- G05B: CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS (systems for controlling or regulating non-electric variables G05D; systems for regulating electric or magnetic variables G05F; control devices or systems insofar as characterised by mechanical features only G05G)

## 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.

## Claims

### Claim 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.

### Claim 2 (depends on 1)

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.

### Claim 3 (depends on 1)

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.

### Claim 4 (depends on 3)

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′}.

### Claim 5 (depends on 3)

The workpiece and cutter pose calibration method according to claim 3, wherein an objective function to be minimized in the Step S32 is min
f
⁡
(
R
,
t
)
=
∑
i
=
1
n
d
i
2
-
(
∑
i
=
1
n
⁢
d
i
)
2
/
n
,
wherein 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.

### Claim 6 (depends on 3)

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′).

### Claim 7 (depends on 6)

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.

### Claim 8 (depends on 6)

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
α
i
=
U
δ
x
+
τ
i
⁢
2
T
⁢
W
δ
=
[
1
,
τ
i
⁢
2
T
]
[
U
δ
x
W
δ
]
=
a
i
⁢
ξ
,
a
i
=
[
1
,
τ
i
⁢
2
T
]
is a coefficient matrix of 1×4, and
ξ
=
[
U
δ
x
W
δ
]
is a workpiece cutter posture error combination vector of 4×1;
Step S63, using the influence model of the combined error of the i-th point to establish a posture error identification formula α=Aξ of all milling points of the workpiece and the cutter at different times, wherein α=[α1, α2, . . . , αi, . . . αn]T is a matrix of n×1, and A=[a1T, a2T, . . . , anT]T is a matrix of n×4; solving the workpiece and cutter pose combined error as ξ=(ATA)−1ATα, wherein
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ξ.

### Claim 9 (depends on 1)

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.

### Claim 10 (depends on 1)

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.
