CN113515091B - Real-time track interpolation method and device for corner smoothing spline - Google Patents
Real-time track interpolation method and device for corner smoothing spline Download PDFInfo
- Publication number
- CN113515091B CN113515091B CN202110359418.1A CN202110359418A CN113515091B CN 113515091 B CN113515091 B CN 113515091B CN 202110359418 A CN202110359418 A CN 202110359418A CN 113515091 B CN113515091 B CN 113515091B
- Authority
- CN
- China
- Prior art keywords
- sampling
- sequence
- spline
- arc length
- chord
- 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
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/18—Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
- G05B19/41—Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by interpolation, e.g. the computation of intermediate points between programmed end points to define the path to be followed and the rate of travel along that path
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/30—Nc systems
- G05B2219/34—Director, elements to supervisory
- G05B2219/34083—Interpolation general
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T90/00—Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation
Abstract
The invention discloses a real-time interpolation method and a real-time interpolation device for a corner smoothing spline, belonging to the field of numerical control machine tool machining, wherein the method comprises the following steps: s1: establishing a chord height error optimization model corresponding to the corner smoothing spline; s2: substituting the chord height error estimation method into the chord height error optimization model to obtain a sampling parameter sequence and a sampling point sequence, and calculating a sampling arc length sequence by using the sampling point sequence; s3: establishing a least square fitting equation by utilizing the sampling parameter sequence and the sampling arc length sequence; solving a least square fitting equation in real time to establish an arc length parameter mapping model; s4: and (4) inputting the spline parameters of the spline with the smooth corner into the arc length parameter mapping model, and acquiring the spline parameters and coordinates corresponding to the next interpolation point to realize real-time track interpolation. The method provided by the invention can quickly calculate the high-precision spline parameters, and further obtain the high-precision interpolation point coordinates so as to reduce the fluctuation of the feeding speed.
Description
Technical Field
The invention belongs to the field of numerical control machine tool machining, and particularly relates to a method and a device for interpolating a corner smoothing spline in real time.
Background
In today's field of numerical control machining, straight lines and arcs are still widely used as tool trajectories in production environments due to direct coding and good support of CNC. Due to poor continuity between straight-line tracks, frequent acceleration and deceleration of the tool are required, which causes frequent fluctuation of the feed speed and the acceleration, and even in places with too large corners, the tool needs to be decelerated to approach zero to pass through, which has a great influence on the surface quality of the workpiece and also reduces the machining efficiency. Thus, many numerical control systems provide a smoother, more continuous transition between straight segment processing trajectories by constructing local splines at the corners of adjacent straight segments. However, due to the nonlinear relation between the arc length of the spline curve and the parameters, the problem of feed speed fluctuation exists in the real-time interpolation of the spline. For this purpose, a number of real-time interpolation methods of spline trajectories are produced.
The current real-time interpolation method of various spline curves is to establish an optimization function and find spline parameters meeting the precision through continuous iteration; the calculation amount of this method is usually large, the calculation is time-consuming, more importantly, the number of iterations is uncertain, the stability of the whole calculation process is difficult to guarantee, and in extreme cases, the number of iterations may be too many, which causes interpolation blocking, which is very dangerous for processing.
Disclosure of Invention
Aiming at the defects or improvement requirements of the prior art, the invention provides a real-time interpolation method and a real-time interpolation device for a corner smooth spline, aiming at rapidly calculating high-precision spline parameters and further obtaining high-precision interpolation point coordinates to reduce feed speed fluctuation, thereby solving the technical problems of low calculation efficiency, poor stability and low precision of the conventional spline interpolation method.
To achieve the above object, according to one aspect of the present invention, there is provided a method for real-time interpolation of a trajectory of a corner-smoothed spline, including:
s1: establishing a chord height error optimization model corresponding to the corner smoothing spline;
s2: substituting the chord height error estimation method into the chord height error optimization model to obtain a sampling parameter sequence and a sampling point sequence, and calculating a sampling arc length sequence by using the sampling point sequence;
s3: establishing a least square fitting equation by using the sampling parameter sequence and the sampling arc length sequence; solving the least square fitting equation in real time to establish an arc length parameter mapping model;
s4: and inputting the spline parameters of the corner smoothing spline into the arc length parameter mapping model, and acquiring spline parameters and coordinates corresponding to a next interpolation point to realize real-time track interpolation.
In one embodiment, the S1 includes:
establishing the chord height error optimization model, and changing the distribution of sampling points to reduce the deviation of chord length and arc length; the chord height error optimization model is expressed as:
the chord height error optimization model meets the upper limit constraint of the real-time requirement, and the upper limit n of the number of sampling points is given; with the increase of the sampling cycle number i, the number t (i) of sampling points is increased continuously until the sampling is stopped when the upper limit n of the number of sampling points is reached.
In one embodiment, the S2 includes:
s21: substituting the chord height error estimation method into the chord height error optimization model to obtain the sampling parameter sequence U and the sampling point sequence P:
s22: obtaining a sampling arc length sequence S ═ S by the approximate arc length of the accumulated chord length0 s1 s2 ··· sn-1]Wherein, in the step (A),
in one embodiment, the chord height error estimation method in S2 includes:
s201: smoothing two adjacent sampling points p on the spline curvekAnd pk+1Tangent vector V ofkAnd Vk+1Expressed as:
Vk=αktk Vk+1=αk+1tk+1;
wherein the corner smoothing spline curve is a plane curve constructed at the corner of two straight line segments, pk=C(uk),pk+1=C(uk+1),αkAnd alphak+1Are each pkAnd pk+1Tangent vector mode length of (t)kAnd tk+1Are each pkAnd pk+1Unit tangent of thetakAnd thetak+1Respectively is tangent vector VkAnd Vk+1And chord line vectorThe included angle of (A);
s202: corresponding parameter value u to the maximum error point of the chord height on the corner smooth spline curvechordAnd estimating to obtain:
uk、uk+1are each pkAnd pk+1The chord height error between the two, q is a proportionality coefficient;
s203: using the value u of the parameterchordEstimating to obtain a curve segmentUpper chord height error value epsilonchordAnd point p corresponding to the maximum value of the chord height errorchord;
In one embodiment, the S3 includes:
s31: normalizing the sampling arc length sequence to obtain a sequence theta, wherein theta is [ alpha ═ alpha [0 α1 α2··· αn-1]=[0 s1/smax s2/smax ··· 1];
S32: setting a boundary constraint of the arc length parameter mapping model to ensure the continuity of the interpolation speed at the endpoint, wherein the boundary constraint is expressed as:
s33: to determine A ═ a0 a1 a2 a3 a4 a5]TThe normalized parameter sequence Θ ═ α0α1α2···αn-1]Arc length parameter mapping quintic polynomial model for substituting to-be-determined coefficient as independent variableIn (3), a fitting parameter sequence is obtained
S34: combining the boundary constraint and the sequence of sampling parameters U ═ U0 u1 u2 ··· un-1]And obtaining the least square fitting equation:
s35: performing QR decomposition on coefficient matrix in the boundary constraint equationSolving the least squares fit equation to yield:
wherein A ═ a0 a1 a2 a3 a4 a5]TIs the coefficient of a fitting polynomial and is,a boundary constraint coefficient matrix; PhiQ is [. phi. ]1 Φ2],QTA=[B C]T;
S36: and solving a fitting parameter polynomial coefficient A by adopting a Gaussian orthogonal method to obtain the arc length parameter mapping model.
In one embodiment, the S4 includes:
s41: arc length s obtained by speed planningkThe arc length skInputting the arc length parameter mapping model to calculate spline parameter u of next interpolation pointk:
S42: the spline parameter u of the next interpolation point is usedkSubstituting the equation corresponding to the corner smooth spline curve to obtain the next interpolation point coordinate pk=C(uk)。
In one embodiment, the method before S1 further includes:
performing power-base conversion on the corner smoothing splines to represent various different corner smoothing splines by adopting a uniform power base; the power-based expression is of the form:
wherein, U is [ 1U … U ]d]For a set of linearly independent bases of polynomial space, aiIs a polynomial coefficient, i is 0,1, …, d, u is a spline parameter, d is a spline order.
According to another aspect of the present invention, there is provided a device for real-time interpolation of a corner-smoothed spline trajectory, comprising:
the establishing module is used for establishing a chord height error optimization model corresponding to the corner smoothing spline;
the calculation module is used for substituting the chord height error estimation method into the chord height error optimization model to obtain a sampling parameter sequence and a sampling point sequence, and calculating a sampling arc length sequence by using the sampling point sequence;
the solving module is used for establishing a least square fitting equation by utilizing the sampling parameter sequence and the sampling arc length sequence; solving the least square fitting equation in real time to establish an arc length parameter mapping model;
and the interpolation module is used for inputting the spline parameters of the corner smoothing splines into the arc length parameter mapping model and acquiring the spline parameters and coordinates corresponding to the next interpolation point so as to realize real-time interpolation of the track.
In general, compared with the prior art, the above technical solution contemplated by the present invention can achieve the following beneficial effects:
(1) the invention utilizes the chord height error optimization model to sample the spline track in real time, obtains the spline parameters and the sampling point sequence, and further calculates to obtain the arc length sequence. And fitting the arc length and the parameter sequence by adopting a polynomial, solving a fitting expression by adopting a QR decomposition-based calculation method, and considering the continuity constraint of corner smooth splines at the boundary to finally obtain a mapping model of the arc length and the parameters. And during spline interpolation, fast calculating high-precision spline parameters in real time by using the arc length and the parameter mapping model according to the input arc length, further calculating high-precision interpolation point coordinates, and reducing feed speed fluctuation.
(2) The sampling mode is based on the chord height error optimization model, and a chord height error rapid estimation method is provided, so that the sampling process is rapid and stable, and can be carried out in real time when corner smooth transition splines are constructed in a numerical control system. When the arc length parameter mapping model is constructed, the first-order continuity of the end points is considered, the continuity of the interpolation speed at the end points is ensured, and the fluctuation is avoided. And the method based on QR decomposition is adopted to solve the arc length parameter mapping model, so that the solving mode is fast and stable.
Drawings
FIG. 1 is a schematic diagram of a numerically controlled machined corner smooth transition spline curve in an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a method for real-time interpolation of a corner smoothing spline track according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of a method for real-time interpolation of corner-smoothed spline traces according to another embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating the arc length, chord length, and end tangent between two adjacent sampling points on a curve according to an embodiment of the present invention;
FIG. 5a is a schematic flow chart of the arc length parameter mapping model construction in FIG. 3;
fig. 5b is a schematic flow chart of the non-uniform sampling in fig. 3.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
FIG. 1 is a schematic diagram of a numerically controlled machined corner smooth transition spline curve in an embodiment of the present invention; for the corner smoothing transition spline curve in fig. 1, the present invention provides a real-time interpolation method for the trajectory of the corner smoothing spline, as shown in fig. 2 and fig. 3, including:
s1: establishing a chord height error optimization model corresponding to the corner smoothing spline;
s2: substituting the chord height error estimation method into the chord height error optimization model to obtain a sampling parameter sequence and a sampling point sequence, and calculating a sampling arc length sequence by using the sampling point sequence;
s3: establishing a least square fitting equation by utilizing the sampling parameter sequence and the sampling arc length sequence; solving a least square fitting equation in real time to establish an arc length parameter mapping model;
s4: and (4) inputting the spline parameters of the spline with the smooth corner into the arc length parameter mapping model, and acquiring the spline parameters and coordinates corresponding to the next interpolation point to realize real-time track interpolation.
In one embodiment, S1 includes:
establishing a chord height error optimization model, and changing the distribution of sampling points to reduce the deviation of chord length and arc length; the chord height error optimization model is expressed as:
the chord height error optimization model meets the upper limit constraint of the real-time requirement, and the upper limit n of the number of sampling points is given; with the increase of the sampling cycle number i, the number t (i) of sampling points is increased continuously until the sampling is stopped when the upper limit n of the number of sampling points is reached.
Specifically, in order to quickly calculate the arc length in a real-time scene, a strategy of accumulating the chord length to approximate the arc length is generally adopted, the chord length to approximate the arc length is deviated, and the deviation of the curve and the chord is generally measured by a chord height error epsilon. The chord height error of the curve is the maximum distance from the curve to the connection line of the two end points of the curve. In order to reduce the deviation between the chord length and the arc length, the distribution of sampling points is changed, and a chord height error optimization model is established, namely:
where i is the number of cycles. By increasing sampling points in a continuous cycle, the string height error sequence epsilon between the sampling point sequencesiThe maximum chord height error in (1) is minimal. Meanwhile, in order to guarantee the real-time performance of the sampling process, the upper limit n of the number of the sampling points is given. The number t (i) of sampling points increases with the increase of the sampling cycle number i until the sampling is reachedAnd stopping sampling when the upper limit n of the number of the sampling points is reached.
In one embodiment, S2 includes:
s21: substituting the chord height error estimation method into a chord height error optimization model to obtain a sampling parameter sequence U and a sampling point sequence P:
s22: obtaining a sampling arc length sequence S ═ S by the approximate arc length of the accumulated chord length0 s1 s2 ··· sn-1]Wherein, in the step (A),
in one embodiment, the chord height error estimation method in S2 includes:
s201: as shown in fig. 4, smoothing the corner with two adjacent sampling points p on the spline curvekAnd pk+1Tangent vector V ofkAnd Vk+1Expressed as:
Vk=αktk Vk+1=αk+1tk+1;
wherein the corner smoothing spline curve is a plane curve constructed at the corner of two straight line segments, pk=C(uk),pk+1=C(uk+1),αkAnd alphak+1Are each pkAnd pk+1Tangent vector mode length of (t)kAnd tk+1Are each pkAnd pk+1Unit tangent of thetakAnd thetak+1Respectively is tangent vector VkAnd Vk+1And chord line vectorThe included angle of (A);
s202: corresponding parameter value u to maximum error point of upper chord height of corner smooth spline curvechordAnd estimating to obtain:
uk、uk+1are each pkAnd pk+1The chord height error between the two, q is a proportionality coefficient;
s203: using the value u of the parameterchordEstimating to obtain a curve segmentUpper chord height error value epsilonchordAnd point p corresponding to the maximum value of the chord height errorchord;
In particular, in order to quickly find the parameter value u on the curvek、uk+1Two adjacent sampling points pk=C(uk) And pk+1=C(uk+1) Chord height error between and corresponding parameter value uchordAnd avoiding iterative solution, and estimating the chord height error by adopting a method. As shown in FIG. 5a, the corner-smoothing spline is a plane curve whose shape is primarily governed by the end tangent vector VkAnd Vk+1Chord line vectorInfluence. Point pkAnd pk+1Tangent vector V ofkAnd Vk+1Can be expressed as:
Vk=αktk Vk+1=αk+1tk+1;
wherein alpha iskAnd alphak+1Are respectively a point pkAnd pk+1Tangent vector mode length of (t)kAnd tk+1Are respectively a point pkAnd pk+1Unit tangent of thetakAnd thetak+1Respectively is tangent vector VkAnd Vk+1And chord line vectorThe included angle of (a).
Then the parameter value u corresponding to the maximum error point of the upper chord height of the curvechordIt can be estimated that:
uchord≈q·uk+(1-q)·uk+1;
wherein q is a proportionality coefficient:
then, according to the parameter value estimation, the curve segment is obtainedUpper chord height error value epsilonchordAnd point p corresponding to the maximum value of the chord height errorchord:
Further, the chord height error estimation method is substituted into a chord height error optimization model to obtain a sampling parameter sequence U and a sampling point sequence P:
further, the cumulative chord length is adopted to approximate the arc length, and a sampling arc length sequence is obtained:
S=[s0 s1 s2 ··· sn-1];
wherein:
in one embodiment, S3 includes:
s31: normalizing the sampling arc length sequence to obtain a sequence theta, wherein theta is [ alpha ═ alpha [ ]0 α1 α2 ··· αn-1]=[0 s1/smax s2/smax ··· 1];
S32: setting the boundary constraint of the arc length parameter mapping model to ensure the continuity of the interpolation speed at the endpoint, wherein the boundary constraint is expressed as:
s33: mapping a fifth order polynomial model to arc length parameters of coefficients to be determinedTo determine the coefficient A ═ a0 a1 a2 a3 a4 a5]TThe normalized parameter sequence Θ is ═ α0 α1 α2 ··· αn-1]Taken as independent variable to obtain fitting parameter sequence
S34: combining boundary constraint and sampling parameter sequence U ═ U0 u1 u2 ··· un-1]And obtaining a least square fitting equation:
s35: QR decomposition of coefficient matrices in boundary constraint equationsSolving a least squares fit equation to obtain:
wherein A ═ a0 a1 a2 a3 a4 a5]TIs the coefficient of a fitting polynomial and is,a boundary constraint coefficient matrix; PhiQ is [. phi. ]1 Φ2],QTA=[B C]T;
S36: and (4) solving a fitting parameter polynomial coefficient A by adopting a Gaussian orthogonal method to obtain an arc length parameter mapping model.
Specifically, after obtaining the sampling arc length and the parameter sequence, in order to obtain the arc length parameter mapping modelAn arc length parameter fit is established to solve the equation, as shown in figure 5 b.
Normalizing the sampling arc length sequence (Min-Max Normalization) to obtain a sequence theta ═ alpha0α1α2···αn-1]=[0s1/smax s2/smax···1]Conversion of original arc length parameter mapping model into
Secondly, setting the boundary constraint of the arc length parameter mapping model for ensuring the continuity of the interpolation speed at the end point:
mapping a fifth-order polynomial model to the arc length parameter of the coefficient to be determinedTo determine the coefficient A ═ a0 a1 a2 a3 a4 a5]TThe normalized parameter sequence Θ is ═ α0 α1 α2 ··· αn-1]As independent variable to obtain fitting parameter sequence
Combining the sampling parameter sequence U ═ U0 u1 u2 ··· un-1]Considering the boundary constraint, obtaining a least squares fitting equation lsec (least Square with accuracy constraint) with constraint:
wherein A ═ a0 a1 a2 a3 a4 a5]TIs the coefficient of a fitting polynomial and is,the coefficient matrix is constrained for the boundary.
To quickly solve the LSEC model, coefficient matrices in the boundary constraint equations are appliedCarrying out QR decomposition, i.e.Converting the least squares fit equation into twoLinearly independent equations, to perform separate solutions:
wherein Φ Q ═ Φ1 Φ2],QTA=[B C]T;
And finally, solving a fitting parameter polynomial coefficient A by adopting a Gaussian orthogonal method to obtain a fitting polynomial coefficient, namely obtaining an arc length parameter mapping model.
In one embodiment, S4 includes:
s41: arc length s obtained by speed planningkWill be arc length skInputting the arc length parameter mapping model to calculate the spline parameter u of the next interpolation pointk:
S42: spline parameter u of the next interpolation pointkThe equation corresponding to the corner smoothing spline curve is substituted to obtain the next interpolation point coordinate pk=C(uk)。
In one embodiment, the method before S1 further includes:
performing power base conversion on the corner smoothing splines to represent various different corner smoothing splines by adopting a uniform power base; the power-based expression is of the form:
wherein U ═ 1Ud]For a set of linearly independent bases of polynomial space, ai(i ═ 0,1, …, d) is the polynomial coefficient, u is the spline parameter, and d is the spline order.
Specifically, the numerical control system may use various splines as internal transition splines, and in order to provide a universal spline real-time interpolation algorithm, it is first required to use a universal expression form for all spline curves. The power-based expression is a general expression of a polynomial curve. Various commonly used spline curves, such as the Hermite curve, Bezier curve, Akima curve, etc., are therefore converted to the power-base expression form c (u) ═ x (u), y (u), z (u)), i.e.:
wherein U is [ 1U … U ]d]Is a set of linearly independent bases of polynomial space, ai(i-0, 1, …, d) is a polynomial coefficient.
According to another aspect of the present invention, there is provided a device for real-time interpolation of a corner-smoothed spline trajectory, comprising: the device comprises an establishing module, a calculating module, a solving module and an interpolating module. The device comprises an establishing module, a calculating module and a calculating module, wherein the establishing module is used for establishing a chord height error optimization model corresponding to a corner smoothing spline; the calculation module is used for substituting the chord height error estimation method into the chord height error optimization model to obtain a sampling parameter sequence and a sampling point sequence, and calculating a sampling arc length sequence by using the sampling point sequence; the solving module is used for establishing a least square fitting equation by utilizing the sampling parameter sequence and the sampling arc length sequence; solving a least square fitting equation in real time to establish an arc length parameter mapping model; and the interpolation module is used for inputting the spline parameters of the corner smoothing splines into the arc length parameter mapping model and acquiring the spline parameters and coordinates corresponding to the next interpolation point so as to realize real-time interpolation of the track.
It will be understood by those skilled in the art that the foregoing is only a preferred embodiment of the present invention, and is not intended to limit the invention, and that any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (5)
1. A real-time interpolation method for a corner smoothing spline track is characterized by comprising the following steps:
s1: establishing a chord height error optimization model corresponding to the corner smoothing spline;
s2: substituting the chord height error estimation method into the chord height error optimization model to obtain a sampling parameter sequence and a sampling point sequence, and calculating a sampling arc length sequence by using the sampling point sequence;
s3: establishing a least square fitting equation by using the sampling parameter sequence and the sampling arc length sequence; solving the least square fitting equation in real time to establish an arc length parameter mapping model;
s4: inputting the spline parameters of the corner smoothing spline into the arc length parameter mapping model, and acquiring spline parameters and coordinates corresponding to a next interpolation point to realize real-time track interpolation;
the S1 includes:
establishing the chord height error optimization model, and changing the distribution of sampling points to reduce the deviation of chord length and arc length; the chord height error optimization model is expressed as:
wherein the chord height error optimization model satisfies an upper limit constraint of a real-time requirement, epsiloniA string height error sequence between sampling point sequences; giving an upper limit n of the number of sampling points; with the increase of the sampling cycle times i, the number t (i) of the sampling points is continuously increased until the sampling is stopped when the upper limit n of the number of the sampling points is reached;
the S2 includes:
s21: substituting the chord height error estimation method into the chord height error optimization model to obtain the sampling parameter sequence U and the sampling point sequence P:
s22: obtaining a sampling arc length sequence S ═ S by the approximate arc length of the accumulated chord length0 s1 s2 ··· sn-1]Wherein, in the step (A),
the chord height error estimation method in S2 includes:
s201: smoothing two adjacent sampling points p on the spline curvekAnd pk+1Tangent vector V ofkAnd Vk+1Expressed as:
Vk=αktk Vk+1=αk+1tk+1;
wherein the corner smoothing spline curve is a plane curve built at the corner of two straight line segments, pk=C(uk),pk+1=C(uk+1),αkAnd alphak+1Are each pkAnd pk+1Tangent vector mode length of (t)kAnd tk+1Are each pkAnd pk+1Unit tangent of thetakAnd thetak+1Respectively is tangent vector VkAnd Vk+1And chord line vectorThe included angle of (A);
s202: corresponding parameter value u to the maximum error point of the chord height on the corner smooth spline curvechordAnd estimating to obtain:
uk、uk+1are each pkAnd pk+1The chord height error between the two, q is a proportionality coefficient;
s203: using the value u of the parameterchordEstimating to obtain a curve segmentUpper chord height error value epsilonchordAnd point p corresponding to the maximum value of the chord height errorchord;
2. The method for real-time interpolation of trajectories of corner-smoothing splines as claimed in claim 1, wherein said S3 comprises:
s31: normalizing the sampling arc length sequence to obtain a sequence theta, wherein theta is [ alpha ═ alpha [0 α1 α2 ··· αn-1]=[0 s1/smax s2/smax ··· 1];
S32: setting a boundary constraint of the arc length parameter mapping model to ensure the continuity of the interpolation speed at the endpoint, wherein the boundary constraint is expressed as:
s33: to determine A ═ a0 a1 a2 a3 a4 a5]TThe normalized parameter sequence Θ ═ α0 α1 α2 ··· αn-1]Arc length parameter mapping quintic polynomial model taken as independent variable into coefficient to be determinedTo obtain a fitting parameter sequence
S34: combining the boundary constraint and the sequence of sampling parameters U ═ U0 u1 u2 ··· un-1]And obtaining the least square fitting equation:
s35: performing QR decomposition on coefficient matrix in the boundary constraint equationSolving the least squares fit equation to yield:
wherein A ═ a0 a1 a2 a3 a4 a5]TIs the coefficient of a fitting polynomial and is,a boundary constraint coefficient matrix; PhiQ is [. phi. ]1Φ2],QTA=[B C]T;
S36: and solving a fitting parameter polynomial coefficient A by adopting a Gaussian orthogonal method to obtain the arc length parameter mapping model.
3. The method for real-time interpolation of trajectories of corner-smoothing splines as claimed in claim 2, wherein said S4 comprises:
s41: arc length s obtained by speed planningkThe arc length skInputting the arc length parameter mapping model to calculate spline parameter u of next interpolation pointk:
S42: the spline parameter u of the next interpolation point is usedkSubstituting the equation corresponding to the corner smooth spline curve to obtain the next interpolation point coordinate pk=C(uk)。
4. The method for real-time interpolation of trajectories of corner-smoothing splines as claimed in any one of claims 1 to 3, wherein the method further comprises before S1:
performing power-base conversion on the corner smoothing splines to represent various different corner smoothing splines by adopting a uniform power base; the power-based expression is of the form:
wherein, U is [ 1U … U ]d]For a set of linearly independent bases of polynomial space, aiIs a polynomial coefficient, i is 0,1, …, d, u is a spline parameter, d is a spline order.
5. A device for real-time interpolation of a trajectory of a corner-smoothing spline, for performing the method of real-time interpolation of a trajectory of a corner-smoothing spline of claim 1, comprising:
the building module is used for building a chord height error optimization model corresponding to the corner smoothing spline;
the calculation module is used for substituting the chord height error estimation method into the chord height error optimization model to obtain a sampling parameter sequence and a sampling point sequence, and calculating a sampling arc length sequence by using the sampling point sequence;
the solving module is used for establishing a least square fitting equation by utilizing the sampling parameter sequence and the sampling arc length sequence; solving the least square fitting equation in real time to establish an arc length parameter mapping model;
and the interpolation module is used for inputting the spline parameters of the corner smoothing splines into the arc length parameter mapping model and acquiring the spline parameters and coordinates corresponding to the next interpolation point so as to realize real-time interpolation of the track.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110359418.1A CN113515091B (en) | 2021-04-02 | 2021-04-02 | Real-time track interpolation method and device for corner smoothing spline |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110359418.1A CN113515091B (en) | 2021-04-02 | 2021-04-02 | Real-time track interpolation method and device for corner smoothing spline |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113515091A CN113515091A (en) | 2021-10-19 |
CN113515091B true CN113515091B (en) | 2022-05-20 |
Family
ID=78062220
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110359418.1A Active CN113515091B (en) | 2021-04-02 | 2021-04-02 | Real-time track interpolation method and device for corner smoothing spline |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113515091B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115481356A (en) * | 2022-09-21 | 2022-12-16 | 中建材创新科技研究院有限公司 | Cutting length regulating and controlling method for high-precision cutting of paper gypsum board |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6115051A (en) * | 1996-08-07 | 2000-09-05 | Adobe Systems Incorporated | Arc-length reparameterization |
EP1235126A1 (en) * | 2001-02-26 | 2002-08-28 | Hitachi, Ltd. | Numerically controlled curved surface machining unit |
CN101493687A (en) * | 2009-03-02 | 2009-07-29 | 广西大学 | Real time forward looking whole-process acceleration and deceleration controlled NURBS curve self-adapting subsection interpolation method |
CN101615024A (en) * | 2009-07-23 | 2009-12-30 | 哈尔滨工业大学 | Five-coordinate numerally controlled machine tool motion controller with NURBS interpolation function |
CN107450472A (en) * | 2017-08-31 | 2017-12-08 | 华中科技大学 | A kind of method that cutter path parameter arc length is realized based on three bezier curve interpolation |
CN109062137A (en) * | 2018-07-28 | 2018-12-21 | 华中科技大学 | A kind of five axis B-spline knife rail arc length parameterized methods based on cutter shaft stability |
CN109283892A (en) * | 2018-11-08 | 2019-01-29 | 北京航空航天大学 | A kind of feed rate adaptive interpolation algorithm based on parametric curve geometrical characteristic and the high error limitation of bow |
CN110032142A (en) * | 2019-04-29 | 2019-07-19 | 大连理工大学 | Modified profile errors precompensation method is minimized based on Machining Path |
CN112269356A (en) * | 2020-10-27 | 2021-01-26 | 南京溧航仿生产业研究院有限公司 | NURBS track interpolation method for robot |
-
2021
- 2021-04-02 CN CN202110359418.1A patent/CN113515091B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6115051A (en) * | 1996-08-07 | 2000-09-05 | Adobe Systems Incorporated | Arc-length reparameterization |
EP1235126A1 (en) * | 2001-02-26 | 2002-08-28 | Hitachi, Ltd. | Numerically controlled curved surface machining unit |
CN101493687A (en) * | 2009-03-02 | 2009-07-29 | 广西大学 | Real time forward looking whole-process acceleration and deceleration controlled NURBS curve self-adapting subsection interpolation method |
CN101615024A (en) * | 2009-07-23 | 2009-12-30 | 哈尔滨工业大学 | Five-coordinate numerally controlled machine tool motion controller with NURBS interpolation function |
CN107450472A (en) * | 2017-08-31 | 2017-12-08 | 华中科技大学 | A kind of method that cutter path parameter arc length is realized based on three bezier curve interpolation |
CN109062137A (en) * | 2018-07-28 | 2018-12-21 | 华中科技大学 | A kind of five axis B-spline knife rail arc length parameterized methods based on cutter shaft stability |
CN109283892A (en) * | 2018-11-08 | 2019-01-29 | 北京航空航天大学 | A kind of feed rate adaptive interpolation algorithm based on parametric curve geometrical characteristic and the high error limitation of bow |
CN110032142A (en) * | 2019-04-29 | 2019-07-19 | 大连理工大学 | Modified profile errors precompensation method is minimized based on Machining Path |
CN112269356A (en) * | 2020-10-27 | 2021-01-26 | 南京溧航仿生产业研究院有限公司 | NURBS track interpolation method for robot |
Non-Patent Citations (5)
Title |
---|
Alessandro Bardine ; Stefano Campanelli ; Pierfrancesco Foglia ; .NURBS interpolator with confined chord error and tangential and centripetal acceleration control.《International Congress on Ultra Modern Telecommunications and Control Systems》.2010, * |
Development and implementation of a NURBS interpolator with smooth feedrate scheduling for CNC machine tools;Min Liu;Yu Huang;Ling Yin;Jian WenGuo;XinYu Shao;《International Journal of Machine Tools and Manufacture》;20140722;全文 * |
吴继春 ; 王笑江 ; 周会成 ; 方海国.数控加工刀位点精简及相邻轨迹一致拟合方法研究.《制造技术与机床》.2018, * |
基于双核的嵌入式数控系统速度前瞻控制研究;覃珍莹;《中国优秀硕士学位论文全文数据库 工程科技Ⅰ辑》;20180315;全文 * |
曲面数控加工编程轨迹的NURBS拟合及插补算法研究;吴继春;《中国优秀博硕士学位论文全文数据库(博士)工程科技Ⅰ辑》;20130715;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN113515091A (en) | 2021-10-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109571473B (en) | Error-controllable small line segment trajectory fairing method | |
Liu et al. | Development and implementation of a NURBS interpolator with smooth feedrate scheduling for CNC machine tools | |
CN111590594B (en) | Robot trajectory tracking control method based on visual guidance | |
CN104615083B (en) | Curved surface tool path contour error compensation method based tool location point correction | |
Li et al. | Dual sliding mode contouring control with high accuracy contour error estimation for five-axis CNC machine tools | |
Bi et al. | A general, fast and robust B-spline fitting scheme for micro-line tool path under chord error constraint | |
Yau et al. | Fast Bezier interpolator with real-time lookahead function for high-accuracy machining | |
CN108073138B (en) | Elliptical arc smooth compression interpolation algorithm suitable for high-speed high-precision machining | |
CN109976262B (en) | Global curvature continuous fairing method for micro-line segment processing | |
CN109960215B (en) | Off-line compensation method for contour error of machining track of four-axis lathe | |
CN101539769A (en) | Method for fitting and interpolating G01 code based on quadratic B spline curve | |
CN102393678A (en) | Track smoothing method suitable for five-axis numerical control device | |
CN113204215B (en) | Numerical control machining global NURBS track real-time interpolation method and application thereof | |
CN106843146B (en) | A kind of adaptive variable-gain profile errors compensation method | |
CN106959664B (en) | Based on the online nonlinear error compensation method of the double turntables of five axis | |
CN113515091B (en) | Real-time track interpolation method and device for corner smoothing spline | |
CN106774153A (en) | A kind of profile tolerance compensation method of S-shaped rose cutter | |
CN106774154B (en) | A kind of space curve interpolating method based on osculating plane theory | |
Wang et al. | Computer aided contouring operation for traveling wire electric discharge machining (EDM) | |
CN111610751B (en) | Interpolation error multi-subdivision iterative calculation method for cross point set NURBS interpolation curve | |
CN108062071B (en) | Real-time measuring method for parameter curve track servo contour error | |
CN116627086A (en) | Space continuous small line segment arc fitting method | |
CN109697272B (en) | Simple quadratic B-spline curve fitting method | |
Shi et al. | A novel contouring error estimation for three-dimensional contouring control | |
CN111590570A (en) | Contour control method for synchronous cross-coupling robot |
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 |