CN109918807B - Local tool path smoothing method for optimizing curvature - Google Patents
Local tool path smoothing method for optimizing curvature Download PDFInfo
- Publication number
- CN109918807B CN109918807B CN201910189683.2A CN201910189683A CN109918807B CN 109918807 B CN109918807 B CN 109918807B CN 201910189683 A CN201910189683 A CN 201910189683A CN 109918807 B CN109918807 B CN 109918807B
- Authority
- CN
- China
- Prior art keywords
- control
- vertex
- spline
- curvature
- local
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Abstract
The invention relates to a local tool path fairing method for optimizing curvature, which comprises the steps of firstly establishing a quintic quasi-uniform B spline which is provided with 7 control vertexes and symmetrically distributed on the control vertexes to realize G3 continuity at the joint of a straight line and a curve, and optimizing the curvature of the curve by minimizing the strain energy and the jump energy of the curve to obtain a fairing path with the optimal curvature. The analytical solution of the fairing track of the local corner is realized by establishing a fitting function relation between the corner angle value and the control vertex distribution proportion, the analytical solution of the fairing track of the local corner is realized, the curvature peak value is greatly reduced, and the stability in the processing process is improved.
Description
Technical Field
The invention relates to a local tool path smoothing method, in particular to a G3 continuous local tool path smoothing method with optimized curvature.
Background
Typical features of the above documents are: the tool path smoothed by the literature method meets the precision requirement and a certain continuity requirement, but the curvature is not optimized, the optimal smoothing path cannot be achieved, the peak values of acceleration and acceleration in the machining process are large, and the machining efficiency is influenced.
Disclosure of Invention
Technical problem to be solved
In order to overcome the defects that the curvature is not optimized, the curvature peak value is large, the feeding speed is reduced, the machining efficiency is influenced, and the acceleration peak value are large in the machining process in the conventional G3 continuous local tool path smoothing method, the invention provides a G3 continuous local tool path smoothing method with the optimal curvature. The method comprises the steps of firstly establishing a quintic quasi-uniform B spline which is provided with 7 control vertexes and symmetrically distributed on the control vertexes to realize G3 continuity of a joint of a straight line and a curve, and optimizing the curvature of the curve by adopting a minimum energy method. In order to solve the control vertex by analysis, the invention establishes a fitting function of the corner angle value and the control vertex distribution ratio, and realizes the analysis and the solution of the local corner fairing track.
Technical scheme
A local tool path smoothing method for optimizing curvature is characterized by comprising the following steps:
step 1: in the form of two adjacent straight line segments pk-1pkAnd pkpk+1Five quasi-uniform B-splines with symmetrically distributed control vertices inserted on the local corners, wherein the point pk-1、pkIs a straight line segment pk-1pkEnd point of (1), point pkAnd pk+1Is a straight line segment pkpk+1The endpoint of (1); it controls the vertex Pk,iCalculated using the following formula, i ═ 0,1, 2.
Pk,3=pk
Pk,0=pk-(dk,1+dk,2+dk,3)mk
Pk,1=pk-(dk,2+dk,3)mk
Pk,2=pk-dk,3mk
Pk,4=pk-dk,3nk
Pk,5=pk-(dk,2+dk,3)nk
Pk,6=pk-(dk,1+dk,2+dk,3)nk
Wherein
In the formula (d)k,1To control the vertex Pk,0And Pk,1Distance between dk,2To control the vertex Pk,1And Pk,2Distance between dk,3To control the vertex Pk,2And Pk,3The distance between them;
step 2: the node vector of the B spline is U ═ 0000000.5111111;
and step 3: establishing an inserted B spline P according to the B spline control vertex solved in the step 1 and the node vector selected in the step 2k(u):
Wherein
In the formula, n is the number of B control vertexes minus one, i represents the sequence number of the basis function, and p represents the number of the basis function is 5;
and 4, step 4: since the control vertexes of the inserted B-splines are symmetrically distributed, the maximum error occurs at the midpoint P of the splinek(0.5), substituting the parameter u to 0.5 in step 3 may result in:
tolerance constraint of inserting B-spline as emax=‖Pk,3-Pk(0.5)‖≤εwIn which epsilonwRepresenting a given tolerance value;
and 5: the control vertex P obtained in the step 1k,iI is 0,1,2, 6, the tolerance constraint expression of step 4 is substituted into
step 6: the length of the straight line segment inserted into the B-spline is constrained to
In the formula Ik=‖pk-1pk‖,lk+1=‖pk pk+1‖;
And 7: let xk=[dk,1dk,2dk,3]Establishing an objective function of the curvature optimization by an energy method, and solving xk=[dk,1dk, 2dk,3];
minEk(xk)
s.t.
C(xk)≤O
Wherein
In the formula betakIs a proportionality coefficient for balancing strain energy of curveEnergy of harmonious degree
And 8: calculating x according to steps 1-7k=[dk,1dk,2dk,3]Let control vertex distribution ratio μ be dk,1/dk,3,ν=dk,2/dk,3Establishing thetakAnd a fitting function of μ, ν:
in the formula CA,iAnd CB,iIs a fitting coefficient, i ═ 1, 2.., 6;
and step 9: and (3) resolving the local smooth track:
1) calculating a corner angle value θk;
2) Determining control vertex distribution proportion coefficients mu and v according to the step 8;
4) Calculating dk,1=μdk,3、dk,1=μdk,3;
5) Calculating a control vertex P according to step 1k,iObtaining a locally smoothed trajectory, i ═ 0,1,2,. 6:
advantageous effects
The invention provides a local tool path fairing method for optimizing curvature, which comprises the steps of firstly establishing a quintic quasi-uniform B spline which is provided with 7 control vertexes and symmetrically distributed on the control vertexes to realize G3 continuity at the joint of a straight line and a curve, and optimizing the curvature of the curve by minimizing the strain energy and the jump energy of the curve to obtain a fairing path with the optimal curvature. The analytical solution of the fairing track of the local corner is realized by establishing a fitting function relation between the corner angle value and the control vertex distribution proportion, the analytical solution of the fairing track of the local corner is realized, the curvature peak value is greatly reduced, and the stability in the processing process is improved.
Drawings
FIG. 1 is a schematic diagram of a spline curve inserted in a local tool path smoothing process by using the present invention.
FIGS. 2 and 3 are graphs of the results of fitting functions between the corner angles and the control vertex distribution ratios established by the present invention.
FIGS. 4, 5, 6 and 7 are graphs showing the comparison of the distribution of the curvature of the track after smoothing of example 1 by the method of the present invention and the method of reference [1 ].
Fig. 8 and 9 are graphs showing the comparison of the acceleration during processing of the trajectory after smoothing of example 2 by the method of the present invention and the method of document [1 ].
FIGS. 10 and 11 are graphs showing a comparison of the jerk during processing of the trajectory after smoothing of example 2 by the method of the present invention and the method of reference [1 ].
Detailed Description
The invention will now be further described with reference to the following examples and drawings:
example 1 was used to demonstrate the advantage of the invention in terms of curvature of the smooth trail. Example 2 was used to demonstrate the advantages of the present invention during processing.
Example 1:
(1) the selected angles are theta respectively in the experimentk=15°、θk=30°、θk=45°、θk60 ° corner, taking l 10mm, the coordinates of the points making up the corner are [ p ]k-1;pk;pk+1]=[00;l 0;l+lcos(π-θ)lsin(π-θ)]Selecting a tolerance value epsilonw=0.1mm。
(2) Passing the corner angle value θ according to step (8)kAnd determining the control vertex distribution proportion coefficients mu and v.
(3) Computing a control vertex Pk,2And Pk,3A distance d betweenk,3
(4) Calculating dk,1And dk,2The value of (c): dk,1=μdk,3、dk,1=μdk,3
(5) Calculating the control peak P of the smooth trajectoryk,i(i=0,1,2,...,6),
Pk,3=pk
Pk,0=pk-(dk,1+dk,2+dk,3)mk
Pk,1=pk-(dk,2+dk,3)mk
Pk,2=pk-dk,3mk
Pk,4=pk-dk,3nk
Pk,5=pk-(dk,2+dk,3)nk
Pk,6=pk-(dk,1+dk,2+dk,3)nk
Wherein the content of the first and second substances,
will control the vertex Pk,iAnd substituting the expression of the B spline to obtain the track after the local fairing.
(6) The distribution of the curvature of the trajectory after fairing in the interval of the spline parameter u ═ 0,1 is calculated, and the specific results are shown in fig. 4, 5, 6 and 7. It can be seen that the method smoothed trace has a significantly reduced peak curvature compared to the typical G3 continuous local method smoothed trace.
Example 2:
(1) verification test selection of the starting Point [ p ]k-1;pk;pk+1]=[00;100;10+10cos(π-30°)10sin(π-30°)]And (4) forming a track for smoothing, wherein the unit length of a coordinate axis is 1 mm. Selected tolerance value epsilonwThe feed rate was 3mm/s at 0.1 mm.
(3) Root of herbaceous plantPassing the corner angle value theta according to step (8)kAnd determining the control vertex distribution proportion coefficients mu and v.
(4) Calculating the distance dk,3
(5) Calculating dk,1And dk,2The value of (c): dk,1=μdk,3、dk,1=μdk,3。
(6) Calculating the control peak P of the smooth trajectoryk,i(i=0,1,2,...,6)
Pk,3=pk
Pk,0=pk-(dk,1+dk,2+dk,3)mk
Pk,1=pk-(dk,2+dk,3)mk
Pk,2=pk-dk,3mk
Pk,4=pk-dk,3nk
Pk,5=pk-(dk,2+dk,3)nk
Pk,6=pk-(dk,1+dk,2+dk,3)nk
Wherein the content of the first and second substances,
and substituting the control vertex into an expression of a B spline to obtain a track subjected to local fairing.
(7) The smooth track is processed at a constant feed speed of 3mm/s, and the acceleration in the processing process is shown in the attached figures 8 and 9, so that the acceleration peak value in each axis motion of the smooth track is smaller under the same processing condition. The x-axis can be reduced by 9.03 percent, and the y-axis can be reduced by 13.37 percent.
(8) The jerk during the machining process is compared with that shown in fig. 10 and 11, and it can be seen that under the same machining conditions, the jerk peak value in each axis motion of the smooth track of the invention is smaller. The x-axis can be reduced by 10.79 percent, and the y-axis can be reduced by 12.17 percent.
Claims (1)
1. A local tool path smoothing method for optimizing curvature is characterized by comprising the following steps:
step 1: in the form of two adjacent straight line segments pk-1pkAnd pkpk+1Five quasi-uniform B-splines with symmetrically distributed control vertices inserted on the local corners, wherein the point pk-1、pkIs a straight line segment pk-1pkEnd point of (1), point pkAnd pk+1Is a straight line segment pkpk+1The endpoint of (1); it controls the vertex Pk,iCalculated using the following formula, i ═ 0,1, 2.
Pk,3=pk
Pk,0=pk-(dk,1+dk,2+dk,3)mk
Pk,1=pk-(dk,2+dk,3)mk
Pk,2=pk-dk,3mk
Pk,4=pk-dk,3nk
Pk,5=pk-(dk,2+dk,3)nk
Pk,6=pk-(dk,1+dk,2+dk,3)nk
Wherein
In the formula (d)k,1To control the vertex Pk,0And Pk,1Distance between dk,2To control the vertex Pk,1And Pk,2Distance between dk,3To control the vertex Pk,2And Pk,3The distance between them;
step 2: the node vector of the B spline is U ═ 0000000.5111111;
and step 3: establishing an inserted B spline P according to the B spline control vertex solved in the step 1 and the node vector selected in the step 2k(u):
Wherein
In the formula, n is the number of B control vertexes minus one, i represents the sequence number of the basis function, and p represents the number of the basis function is 5;
and 4, step 4: since the control vertexes of the inserted B-splines are symmetrically distributed, the maximum error occurs at the midpoint P of the splinek(0.5), substituting the parameter u to 0.5 in step 3 may result in:
tolerance constraint of inserting B-spline as emax=‖Pk,3-Pk(0.5)‖≤εwIn which epsilonwRepresenting a given tolerance value;
and 5: the control vertex P obtained in the step 1k,iI is 0,1,2, 6, the tolerance constraint expression of step 4 is substituted into
step 6: the length of the straight line segment inserted into the B-spline is constrained to
In the formula Ik=‖pk-1pk‖,lk+1=‖pk pk+1‖;
And 7: let xk=[dk,1 dk,2 dk,3]Establishing an objective function of the curvature optimization by an energy method, and solving xk=[dk,1 dk,2dk,3];
minEk(xk)
s.t.
C(xk)≤O
Wherein
In the formula betakIs a proportionality coefficient for balancing strain energy of curveEnergy of harmonious degree
And 8: calculating x according to steps 1-7k=[dk,1 dk,2 dk,3]Let control vertex distribution ratio μ be dk,1/dk,3,ν=dk,2/dk,3Establishing thetakAnd a fitting function of μ, ν:
in the formula CA,iAnd CB,iIs a fitting coefficient, i ═ 1, 2.., 6;
and step 9: and (3) resolving the local smooth track:
1) calculating a corner angle value θk;
2) Determining control vertex distribution proportion coefficients mu and v according to the step 8;
4) Calculating dk,1=μdk,3、dk,1=μdk,3;
5) Calculating a control vertex P according to step 1k,iAfter obtaining local fairingI-0, 1,2, 6:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910189683.2A CN109918807B (en) | 2019-03-13 | 2019-03-13 | Local tool path smoothing method for optimizing curvature |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910189683.2A CN109918807B (en) | 2019-03-13 | 2019-03-13 | Local tool path smoothing method for optimizing curvature |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109918807A CN109918807A (en) | 2019-06-21 |
CN109918807B true CN109918807B (en) | 2022-03-11 |
Family
ID=66964644
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910189683.2A Active CN109918807B (en) | 2019-03-13 | 2019-03-13 | Local tool path smoothing method for optimizing curvature |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109918807B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112859734B (en) * | 2019-11-27 | 2022-01-25 | 西安交通大学 | Airthoid curve and motion planning smoothing method based on same |
CN111230864B (en) * | 2020-01-15 | 2021-03-23 | 清华大学 | Tool path planning method for five-axis parallel machining robot |
CN112346406B (en) * | 2020-11-03 | 2022-03-01 | 西北工业大学 | Smoothing method for tool path of five-axis numerical control machine tool |
CN113791576B (en) * | 2021-08-19 | 2023-10-17 | 五邑大学 | Method, device, equipment and storage medium for local fairing transition between tracks |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101482979A (en) * | 2008-12-30 | 2009-07-15 | 清华大学 | Fairing-optimized CAD method for NURBS space curve curvature continuous split joint |
JP2013045332A (en) * | 2011-08-25 | 2013-03-04 | Fanuc Ltd | Tool locus display device with display part of acceleration or jerk at tool tip point |
CN103631198A (en) * | 2013-11-04 | 2014-03-12 | 上海交通大学 | Cutter track compression method based on G2 continuous Bezier curve |
CN103676786A (en) * | 2013-12-23 | 2014-03-26 | 北京航空航天大学 | Curve fairing method based on accelerated speed principle |
CN105425725A (en) * | 2015-12-09 | 2016-03-23 | 华中科技大学 | Curve fitting method for discrete cutter path |
CN105700466A (en) * | 2015-11-23 | 2016-06-22 | 上海交通大学 | Curvature fairing method for high-speed numerical control processing track |
CN108132645A (en) * | 2016-12-01 | 2018-06-08 | 华中科技大学 | A kind of guarantee continuous curve-fitting methods of cutter path entirety G2 |
CN108415367A (en) * | 2018-03-13 | 2018-08-17 | 南京航空航天大学 | A kind of automatic fiber placement track overall situation curvature Smoothing Algorithm |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011096077A (en) * | 2009-10-30 | 2011-05-12 | Makino Milling Mach Co Ltd | Method and device for generating tool path |
-
2019
- 2019-03-13 CN CN201910189683.2A patent/CN109918807B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101482979A (en) * | 2008-12-30 | 2009-07-15 | 清华大学 | Fairing-optimized CAD method for NURBS space curve curvature continuous split joint |
JP2013045332A (en) * | 2011-08-25 | 2013-03-04 | Fanuc Ltd | Tool locus display device with display part of acceleration or jerk at tool tip point |
CN103631198A (en) * | 2013-11-04 | 2014-03-12 | 上海交通大学 | Cutter track compression method based on G2 continuous Bezier curve |
CN103676786A (en) * | 2013-12-23 | 2014-03-26 | 北京航空航天大学 | Curve fairing method based on accelerated speed principle |
CN105700466A (en) * | 2015-11-23 | 2016-06-22 | 上海交通大学 | Curvature fairing method for high-speed numerical control processing track |
CN105425725A (en) * | 2015-12-09 | 2016-03-23 | 华中科技大学 | Curve fitting method for discrete cutter path |
CN108132645A (en) * | 2016-12-01 | 2018-06-08 | 华中科技大学 | A kind of guarantee continuous curve-fitting methods of cutter path entirety G2 |
CN108415367A (en) * | 2018-03-13 | 2018-08-17 | 南京航空航天大学 | A kind of automatic fiber placement track overall situation curvature Smoothing Algorithm |
Non-Patent Citations (3)
Title |
---|
Effect of cutter runout on chatter stability of milling process;Yingchao Ma等;《Procedia CIRP》;20161231;第56卷;第115-118页 * |
G2连续的A级曲面精确重构及光顺技术研究;蔡玉俊等;《现代制造工程》;20171231(第4期);第60-66页 * |
五轴线性刀路的转接光顺及轨迹生成算法;赵欢等;《机械工程学报》;20180228;第54卷(第3期);第108-116页 * |
Also Published As
Publication number | Publication date |
---|---|
CN109918807A (en) | 2019-06-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109918807B (en) | Local tool path smoothing method for optimizing curvature | |
CN109571473B (en) | Error-controllable small line segment trajectory fairing method | |
CN110716493B (en) | Five-axis micro-line segment machining path fairing method | |
CN109664303B (en) | Error-controllable B-spline transition type smooth trajectory generation method for four-axis industrial robot | |
CN110355614B (en) | Grinding wheel track solving method for integral end mill cutter body gap grinding process | |
CN110399681B (en) | Parametric modeling method for edge curve of arc-head end mill | |
CN105261065B (en) | A kind of blade part front and rear edge profile towards adaptability processing redesigns method | |
CN108073138B (en) | Elliptical arc smooth compression interpolation algorithm suitable for high-speed high-precision machining | |
CN107491034B (en) | Cutter axis vector optimization method based on covariant field functional | |
CN112847364B (en) | Robot milling tool path C 3 Continuous online real-time analysis fairing method | |
US9827617B2 (en) | Drill and method of manufacturing drill | |
CN113759827B (en) | High-speed high-precision five-axis cutter path corner smoothing method | |
CN112506139B (en) | Partial corner fairing method for five-axis short straight line segment track | |
CN108021093B (en) | Web broken line feed parameter optimization method based on NC program | |
CN106774154A (en) | A kind of space curve interpolating method theoretical based on osculating plane | |
CN113589754B (en) | Groove grinding processing method of variable helix angle micro drill bit | |
Li et al. | Tool path optimization in postprocessor of five-axis machine tools | |
CN109521731B (en) | G2 continuous Bezier tool path smoothing algorithm based on tolerance zone | |
CN112486094B (en) | Cutter optimization and processing track generation method for complex curved surface side milling | |
CN108098515B (en) | Method for machining drill groove type by using multiple formed grinding wheels | |
CN113504764A (en) | Continuous line segment numerical control machining path smoothing method based on position vector weighted integral | |
CN103454977B (en) | The straight burr system of aircraft structure curved surface in small, broken bits | |
CN111708327B (en) | PH spline transition linear path processing method with G2 continuity | |
CN111026035B (en) | Method for solving cyclone milling blade tool location point based on curvature change | |
CN113515091B (en) | Real-time track interpolation method and device for corner smoothing spline |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |