CN106959666A - A kind of space free curve approximating method based on NURBS - Google Patents

A kind of space free curve approximating method based on NURBS Download PDF

Info

Publication number
CN106959666A
CN106959666A CN201710208719.8A CN201710208719A CN106959666A CN 106959666 A CN106959666 A CN 106959666A CN 201710208719 A CN201710208719 A CN 201710208719A CN 106959666 A CN106959666 A CN 106959666A
Authority
CN
China
Prior art keywords
nurbs
overbar
sigma
formula
curve
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.)
Pending
Application number
CN201710208719.8A
Other languages
Chinese (zh)
Inventor
张铁
罗欣
邹焱飚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
South China University of Technology SCUT
Original Assignee
South China University of Technology SCUT
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by South China University of Technology SCUT filed Critical South China University of Technology SCUT
Priority to CN201710208719.8A priority Critical patent/CN106959666A/en
Publication of CN106959666A publication Critical patent/CN106959666A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical 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/408Numerical 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 data handling or data format, e.g. reading, buffering or conversion of data
    • G05B19/4086Coordinate conversions; Other special calculations
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/35Nc in input of data, input till input file format
    • G05B2219/35356Data handling

Abstract

The invention discloses a kind of space free curve approximating method based on NURBS, including step:Obtaining one group needs data point, the corresponding nurbs curve parameter of data point is calculated using Chord Length Parameterization or centripetal parameterization, NURBS knot vectors are calculated, the control point of nurbs curve is calculated using least square method combination system of linear equations, weight factor is determined, finally nurbs curve is can obtain.The present invention is using the relative Solving Linear NURBS methods advised, amount of calculation is relatively small, and solution is difficult to the problem of NURBS space-curve fittings are difficult to real-time calculate.

Description

A kind of space free curve approximating method based on NURBS
Technical field
The present invention relates to space free curve approximating method, more particularly to a kind of space free curve based on NURBS is intended Conjunction method.
Background technology
Space-curve fitting has in terms of robot and numerical control machine tool motion coordinates measurement, points cloud processing widely should With.The main method of space-curve fitting has lagrangian fit method, is segmented three Hermite fitting process, arc-spline curve It is fitted fitting process, NURBS spline curve fitting methods etc..But imperial lattice phenomenon, and error of fitting occurs in Lagrange's interpolation Larger segmentation;The not high only continuous first derivative of three Hermite interpolation slickness;Arc-spline curve curvature is in jump Formula changes, and illustrates that fairness is poor, and poor with circular fitting easement curve adaptability.And existing nurbs curve fitting process Because calculating complicated, time-consuming, needs the occasion compared with hard real-time not apply to for motion planning and robot control etc..
The content of the invention
It is an object of the invention to provide a kind of space free curve approximating method based on NURBS, it is intended to solves space certainly By curve matching flatness and real-time computational problem.
The purpose of the present invention is realized by following technical proposals:
1st, a kind of space free curve approximating method based on NURBS, it is characterised in that comprise the following steps:
S1, one group of discrete point sequence { Q of acquisitionk, k=0,1 ..., n;
S2, Chord Length Parameterization or centripetal parameterization is used to calculate the corresponding nurbs curve parameter of data point;
S3, calculating NURBS knot vectors;
S4, the control point using least square method combination system of linear equations calculating nurbs curve;
S5, weight factor is determined, it is general all to take 1, finally give nurbs curve.
2nd, a kind of space free curve approximating method based on NURBS according to claim 1, it is characterised in that The Chord Length Parameterization of the step S2 is comprised the following steps:
S2.1, make d be two neighboring discrete point chord length (space length) sum, then have
In formula, QkFor discrete point vector;K=0,1 ..., n;
The corresponding parameter of S2.2, then discrete pointFor
3rd, a kind of space free curve approximating method based on NURBS according to claim 1, it is characterised in that The centripetal parametrization of the step S2 is comprised the following steps:
S2.1, order
In formula, QkFor discrete point vector;K=0,1 ..., n;
S2.2, then discrete point QkCorresponding parameterFor
4th, a kind of robotic joint space smooth track planing method according to claim 1, it is characterised in that institute Step S3 is stated to comprise the following steps:
S3.1, order
In formula, m+1 is data point { Qk, k=0,1 ..., m number;N+1 is control point Pk, k=0,1 ..., n numbers Mesh;P is NURBS SPL number of times;
S3.2, the knot vector U=[u for then having NURBS SPLs0 u1 ... un+p+1] be
In formula, n counts out for control subtracts 1;P is NURBS SPL number of times;For data point QiCorresponding parameter;α= jd-i;I=int (jd), int (m) represent to take the maximum integer less than or equal to m.
5th, a kind of robotic joint space smooth track planing method according to claim 1, it is characterised in that institute Step S4 is stated to comprise the following steps:
S4.1, then according to the requirement of least square fitting method, that is, want NURBS SPL C (u) to meet following condition:
①Q0=C (0), Qm=C (1);
2. remainder data point { Qk, k=1,2 ..., m-1 and the corresponding points on curveMistake Poor quadratic sum is minimum
S4.2, according to formula (6), order
In formula,
S4.3, the object function f of formula (7) are on n-1 variable Pk, k=1,2 ..., n-1 scalar function will make Object function f is minimum, i.e., to make f is on n-1 variable Pk, k=1,2 ..., n-1 partial derivative is all zero, that is, is had
In formula, l=1,2 ..., n-1;
It can be obtained by formula (8) with abbreviation
In formula, l=1,2 ..., n-1;
S4.4, the system of linear equations containing n-1 unknown number and n-1 equation can be obtained
(NTN) P=R (10)
In formula,
P=[P1 … Pn-1]T
Due to the knot vector definition mode using step S3, it is ensured that each node interval comprises at least a data point Corresponding parameterSo that the coefficient matrix of system of linear equations is the sparse matrix of positive definite, it can be solved using Gaussian reduction, Solve the control point P of NURBS SPLsk, k=0,1 ..., n.
The present invention has the following advantages and effect relative to prior art:
NURBS SPLs of the present invention, with lagrangian fit method, are segmented three Hermite fitting process, The curve of arc-spline curve fitting fitting process etc. method generation is compared, with higher derivative it is continuous the characteristics of, flatness is more preferable. And fitting algorithm calculates simple, it is adaptable to the high occasion of motion planning and robot control energy requirement of real-time.
Brief description of the drawings
Fig. 1 is the space free curve approximating method schematic flow sheet based on NURBS of the embodiment of the present invention.
Embodiment
With reference to embodiment and accompanying drawing, the present invention is described in further detail, but embodiments of the present invention are not limited In this.
Now to be fitted certain six degree of freedom drag articulation serial manipulator motion path as object, base is followed the steps below In NURBS space free curve fitting:
1st, a kind of space free curve approximating method based on NURBS, it is characterised in that comprise the following steps:
S1, one group of discrete point sequence { Q of acquisitionk, k=0,1 ..., n;
S2, Chord Length Parameterization or centripetal parameterization is used to calculate the corresponding nurbs curve parameter of data point;
S3, calculating NURBS knot vectors;
S4, the control point using least square method combination system of linear equations calculating nurbs curve;
S5, weight factor is determined, it is general all to take 1, finally give nurbs curve.
2nd, a kind of space free curve approximating method based on NURBS according to claim 1, it is characterised in that The Chord Length Parameterization of the step S2 is comprised the following steps:
S2.1, make d be two neighboring discrete point chord length (space length) sum, then have
In formula, QkFor discrete point vector;K=0,1 ..., n;
The corresponding parameter of S2.2, then discrete pointFor
3rd, a kind of space free curve approximating method based on NURBS according to claim 1, it is characterised in that The centripetal parametrization of the step S2 is comprised the following steps:
S2.1, order
In formula, QkFor discrete point vector;K=0,1 ..., n;
S2.2, then discrete point QkCorresponding parameterFor
4th, a kind of robotic joint space smooth track planing method according to claim 1, it is characterised in that institute Step S3 is stated to comprise the following steps:
S3.1, order
In formula, m+1 is data point { Qk, k=0,1 ..., m number;N+1 is control point Pk, k=0,1 ..., n numbers Mesh;P is NURBS SPL number of times;
S3.2, the knot vector U=[u for then having NURBS SPLs0 u1 ... un+p+1] be
In formula, n counts out for control subtracts 1;P is NURBS SPL number of times;For data point QiCorresponding parameter;α= jd-i;I=int (jd), int (m) represent to take the maximum integer less than or equal to m.
5th, a kind of robotic joint space smooth track planing method according to claim 1, it is characterised in that institute Step S4 is stated to comprise the following steps:
S4.1, then according to the requirement of least square fitting method, that is, want NURBS SPL C (u) to meet following condition:
①Q0=C (0), Qm=C (1);
2. remainder data point { Qk, k=1,2 ..., m-1 and the corresponding points on curveMistake Poor quadratic sum is minimum
S4.2, according to formula (6), order
In formula,
S4.3, the object function f of formula (7) are on n-1 variable Pk, k=1,2 ..., n-1 scalar function will make Object function f is minimum, i.e., to make f is on n-1 variable Pk, k=1,2 ..., n-1 partial derivative is all zero, that is, is had
In formula, l=1,2 ..., n-1;
It can be obtained by formula (8) with abbreviation
In formula, l=1,2 ..., n-1;
S4.4, the system of linear equations containing n-1 unknown number and n-1 equation can be obtained
(NTN) P=R (10)
In formula,
P=[P1 … Pn-1]T
Due to the knot vector definition mode using step S3, it is ensured that each node interval comprises at least a data point Corresponding parameterSo that the coefficient matrix of system of linear equations is the sparse matrix of positive definite, it can be solved using Gaussian reduction, Solve the control point P of NURBS SPLsk, k=0,1 ..., n.
Above-described embodiment is present aspect preferably embodiment, but the bright embodiment of we is not by above-described embodiment Limitation, other any Spirit Essences away from the present invention and the change made under principle, modification, replacement, combine, it is simplified, Equivalent substitute mode is should be, is included within protection scope of the present invention.

Claims (5)

1. a kind of space free curve approximating method based on NURBS, it is characterised in that comprise the following steps:
S1, one group of discrete point sequence { Q of acquisitionk, k=0,1 ..., n;
S2, Chord Length Parameterization or centripetal parameterization is used to calculate the corresponding nurbs curve parameter of data point;
S3, calculating NURBS knot vectors;
S4, the control point using least square method combination system of linear equations calculating nurbs curve;
S5, weight factor is determined, it is general all to take 1, finally give nurbs curve.
2. a kind of space free curve approximating method based on NURBS according to claim 1, it is characterised in that described Step S2 Chord Length Parameterization is comprised the following steps:
S2.1, make d be two neighboring discrete point chord length (space length) sum, then have
d = Σ k = 1 n | Q k - Q k - 1 | , - - - ( 1 )
In formula, QkFor discrete point vector;K=0,1 ..., n;
The corresponding parameter of S2.2, then discrete pointFor
{ u ‾ 0 = 0 u ‾ n = 1 u ‾ k = u ‾ k - 1 + | Q k - Q k - 1 | d , k = 1 , 2 , ... , n - 1 . - - - ( 2 )
3. a kind of space free curve approximating method based on NURBS according to claim 1, it is characterised in that described Step S2 centripetal parametrization is comprised the following steps:
S2.1, order
d = Σ k = 1 n | Q k - Q k - 1 | , - - - ( 3 )
In formula, QkFor discrete point vector;K=0,1 ..., n;
S2.2, then discrete point QkCorresponding parameterFor
{ u ‾ 0 = 0 u ‾ n = 1 u ‾ k = u ‾ k - 1 + | Q k - Q k - 1 | d , k = 1 , 2 , ... , n - 1 . - - - ( 4 )
4. a kind of space free curve approximating method based on NURBS according to claim 1, it is characterised in that described Step S3 is comprised the following steps:
S3.1, order
d = m + 1 n + 1 - p , - - - ( 5 )
In formula, m+1 is data point { Qk, k=0,1 ..., m number;N+1 is control point Pk, k=0,1 ..., n numbers;P is NURBS SPL number of times;
S3.2, the knot vector U=[u for then having NURBS SPLs0 u1 ... un+p+1] be
u 0 = u 1 = ... = u p = 0 u n = u n + 1 = ... = u n + p + 1 = 1 u j + p = ( 1 - α ) u ‾ i - 1 + α u ‾ i , j = 1 , 2 , ... , n - p , - - - ( 2 - 51 )
In formula, n counts out for control subtracts 1;P is NURBS SPL number of times;For data point QiCorresponding parameter;α=jd-i; I=int (jd), int (m) represent to take the maximum integer less than or equal to m.
5. a kind of space free curve approximating method based on NURBS according to claim 1, it is characterised in that described Step S4 is comprised the following steps:
S4.1, then according to the requirement of least square fitting method, that is, want NURBS SPL C (u) to meet following condition:
①Q0=C (0), Qm=C (1);
2. remainder data point { Qk, k=1,2 ..., m-1 and the corresponding points on curveError put down Side and minimum
Σ k = 1 m - 1 | δ k | 2 = min Σ k = 1 m - 1 | Q k - C ( u ‾ k ) | 2 ; - - - ( 6 )
S4.2, according to formula (6), order
f = Σ k = 1 m - 1 | Q k - C ( u ‾ k ) | 2 f = Σ k = 1 m - 1 | R k - Σ i = 1 n - 1 N i , p ( u ‾ k ) P i | 2 f = Σ k = 1 m - 1 [ R k 2 - 2 Σ i = 1 n - 1 N i , p ( u ‾ k ) P i R k + ( Σ i = 1 n - 1 N i , p ( u ‾ k ) P i ) 2 ] , - - - ( 7 )
In formula,
S4.3, the object function f of formula (7) are on n-1 variable Pk, k=1,2 ..., n-1 scalar function will make target letter Number f is minimum, i.e., to make f is on n-1 variable Pk, k=1,2 ..., n-1 partial derivative is all zero, that is, is had
∂ f ∂ P l = Σ k = 1 m - 1 [ - 2 N l , p ( u ‾ k ) R k + 2 N l , p ( u ‾ k ) Σ i = 1 n - 1 N i , p ( u ‾ k ) P i ] = 0 , - - - ( 8 )
In formula, l=1,2 ..., n-1;
It can be obtained by formula (8) with abbreviation
Σ k = 1 m - 1 ( Σ i = 1 n - 1 N l , p ( u ‾ k ) N i , p ( u ‾ k ) ) P i = Σ k = 1 m - 1 N l , p ( u ‾ k ) R k , - - - ( 9 )
In formula, l=1,2 ..., n-1;
S4.4, the system of linear equations containing n-1 unknown number and n-1 equation can be obtained
(NTN) P=R (10)
In formula,
P=[P1 … Pn-1]T
Due to the knot vector definition mode using step S3, it is ensured that each node interval comprises at least a data point correspondence ParameterSo that the coefficient matrix of system of linear equations is the sparse matrix of positive definite, it can be solved, solved using Gaussian reduction The control point P of NURBS SPLsk, k=0,1 ..., n.
CN201710208719.8A 2017-03-31 2017-03-31 A kind of space free curve approximating method based on NURBS Pending CN106959666A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710208719.8A CN106959666A (en) 2017-03-31 2017-03-31 A kind of space free curve approximating method based on NURBS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710208719.8A CN106959666A (en) 2017-03-31 2017-03-31 A kind of space free curve approximating method based on NURBS

Publications (1)

Publication Number Publication Date
CN106959666A true CN106959666A (en) 2017-07-18

Family

ID=59483142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710208719.8A Pending CN106959666A (en) 2017-03-31 2017-03-31 A kind of space free curve approximating method based on NURBS

Country Status (1)

Country Link
CN (1) CN106959666A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107038733A (en) * 2017-05-03 2017-08-11 浙江精工钢结构集团有限公司 The multi-section circular arc approximating method of Nurbs curves
CN108595837A (en) * 2018-04-24 2018-09-28 福州大学 A kind of highway easement curve design method
CN109799785A (en) * 2017-11-17 2019-05-24 深圳市腾盛工业设备有限公司 A kind of spline curve localization method and storage medium
CN110377932A (en) * 2019-05-31 2019-10-25 江南大学 A kind of molded line representation method of steel ball reducer cycloid disc
CN111055286A (en) * 2020-01-13 2020-04-24 广州启帆工业机器人有限公司 Industrial robot track generation method, system, device and storage medium
CN113433889A (en) * 2021-06-08 2021-09-24 西安交通大学 Tool path planning method for five-axis machine tool machining based on three-section type cavel curve

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09114512A (en) * 1995-10-14 1997-05-02 Tochigi Pref Gov Curved surface machining method by nc machine tool
CN101920603A (en) * 2010-08-06 2010-12-22 东莞市升力智能科技有限公司 NURBS figure laser broom method
CN103761389A (en) * 2014-01-20 2014-04-30 北京航空航天大学 Layered fairing method for complex curved surface
CN104635619A (en) * 2013-11-12 2015-05-20 沈阳高精数控技术有限公司 Five-axis numerical control machining method based on interpolation of vector of cutting tool

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09114512A (en) * 1995-10-14 1997-05-02 Tochigi Pref Gov Curved surface machining method by nc machine tool
CN101920603A (en) * 2010-08-06 2010-12-22 东莞市升力智能科技有限公司 NURBS figure laser broom method
CN104635619A (en) * 2013-11-12 2015-05-20 沈阳高精数控技术有限公司 Five-axis numerical control machining method based on interpolation of vector of cutting tool
CN103761389A (en) * 2014-01-20 2014-04-30 北京航空航天大学 Layered fairing method for complex curved surface

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
赵作智: "基于非均匀有理B样条(NURBS)的曲面反求的研究", 《中国优秀硕士学位论文全文数据库工程科技Ⅱ辑》 *
陈晓兵: "基于STL数据模型的NURBS刀轨生成算法", 《组合机床与自动化加工技术》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107038733A (en) * 2017-05-03 2017-08-11 浙江精工钢结构集团有限公司 The multi-section circular arc approximating method of Nurbs curves
CN107038733B (en) * 2017-05-03 2021-02-05 浙江精工钢结构集团有限公司 Multi-segment circular arc fitting method of Nurbs curve
CN109799785A (en) * 2017-11-17 2019-05-24 深圳市腾盛工业设备有限公司 A kind of spline curve localization method and storage medium
CN109799785B (en) * 2017-11-17 2021-01-26 深圳市腾盛精密装备股份有限公司 Spline curve positioning method and storage medium
CN108595837A (en) * 2018-04-24 2018-09-28 福州大学 A kind of highway easement curve design method
CN108595837B (en) * 2018-04-24 2021-11-26 福州大学 Expressway transition curve design method
CN110377932A (en) * 2019-05-31 2019-10-25 江南大学 A kind of molded line representation method of steel ball reducer cycloid disc
CN110377932B (en) * 2019-05-31 2023-12-01 江南大学 Molded line representation method of steel ball speed reducer swing wire coil
CN111055286A (en) * 2020-01-13 2020-04-24 广州启帆工业机器人有限公司 Industrial robot track generation method, system, device and storage medium
CN113433889A (en) * 2021-06-08 2021-09-24 西安交通大学 Tool path planning method for five-axis machine tool machining based on three-section type cavel curve

Similar Documents

Publication Publication Date Title
CN106959666A (en) A kind of space free curve approximating method based on NURBS
CN108237534A (en) A kind of space collision free trajectory method of continuous type mechanical arm
US20210011458A1 (en) Method for programming repeating motion of redundant robotic arm
CN101441736B (en) Path planning method of motor crane robot
CN109782779B (en) AUV path planning method in ocean current environment based on population hyperheuristic algorithm
CN105159096B (en) A kind of redundancy space manipulator joint moment optimization method based on particle cluster algorithm
CN108205318A (en) Method for planning track of robot and device
CN109343345A (en) Mechanical arm polynomial interopolation method for planning track based on QPSO algorithm
CN110216673B (en) Non-dominated neighborhood immune genetic multi-target optimization method for joint track of electro-hydraulic robot
CN107016649A (en) A kind of vision data complementing method estimated based on local low-rank tensor
CN109676610B (en) Circuit breaker assembly robot and method for realizing work track optimization
CN103235846B (en) The real-time assembly simulation method of flexible cable and device
CN109683552B (en) Numerical control machining path generation method on complex point cloud model guided by base curve
CN103480534B (en) Control During Paint Spraying by Robot curve surface of workpiece formative method
Ding et al. Trajectory replanning for quadrotors using kinodynamic search and elastic optimization
CN106981097A (en) A kind of T spline surface approximating methods based on subregion Local Fairing weight factor
CN111890363B (en) Mechanical arm motion planning method based on rapid self-adaptive gradient neural network algorithm
CN109446471B (en) Fluid-solid coupling interface data transmission method considering load uncertainty
CN107818563A (en) A kind of transmission line of electricity bundle spacing space measurement and localization method
CN114925462A (en) Thin-wall part machining deformation prediction method based on cutting force and rigidity correlation evolution
CN109033181B (en) Wind field geographic numerical simulation method for complex terrain area
CN109931940A (en) A kind of robot localization method for evaluating confidence based on monocular vision
CN106934853A (en) A kind of acquiring method of the automobile workpiece surface normal vector based on point cloud model
CN105404174A (en) Solving method for six-degree-of-freedom series robot inverse kinematics solution
CN109895097B (en) Sub-gradient method of motion model of welding 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170718