CN103862330B - Based on the bend pipe magnetic grinding automatic navigation method of machine vision - Google Patents

Based on the bend pipe magnetic grinding automatic navigation method of machine vision Download PDF

Info

Publication number
CN103862330B
CN103862330B CN201210545165.8A CN201210545165A CN103862330B CN 103862330 B CN103862330 B CN 103862330B CN 201210545165 A CN201210545165 A CN 201210545165A CN 103862330 B CN103862330 B CN 103862330B
Authority
CN
China
Prior art keywords
sigma
bend pipe
circle
center
coordinate
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.)
Expired - Fee Related
Application number
CN201210545165.8A
Other languages
Chinese (zh)
Other versions
CN103862330A (en
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.)
Shenyang Institute of Automation of CAS
Original Assignee
Shenyang Institute of Automation of CAS
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 Shenyang Institute of Automation of CAS filed Critical Shenyang Institute of Automation of CAS
Priority to CN201210545165.8A priority Critical patent/CN103862330B/en
Publication of CN103862330A publication Critical patent/CN103862330A/en
Application granted granted Critical
Publication of CN103862330B publication Critical patent/CN103862330B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B24GRINDING; POLISHING
    • B24BMACHINES, DEVICES, OR PROCESSES FOR GRINDING OR POLISHING; DRESSING OR CONDITIONING OF ABRADING SURFACES; FEEDING OF GRINDING, POLISHING, OR LAPPING AGENTS
    • B24B1/00Processes of grinding or polishing; Use of auxiliary equipment in connection with such processes
    • B24B1/005Processes of grinding or polishing; Use of auxiliary equipment in connection with such processes using a magnetic polishing agent

Abstract

The present invention relates to a kind of bend pipe magnetic based on machine vision grinding automatic navigation method.Its method comprises: demarcate CCD camera parameter and obtain Robot Hand-eye relational matrix; CCD camera carries out three-dimensional image acquisition to the striation of outer surface of bent pipe, obtains the semicircular data point set of camera light plane space; Carry out being with the least square fitting of Radius Constraint to data point set, try to achieve the central coordinate of circle under camera light plane coordinate system and central coordinate of circle under being converted to basis coordinates system; B-spline curves matching is carried out to a series of centre point, obtains bend pipe orbit of shaft center; The magnetic grinding and polishing device of control carries out pose adjustment according to orbit of shaft center, completes the magnetic Polishing machining of bend pipe.Real-time of the present invention is good, accuracy is high, can complete the processing of complicated bend pipe, significantly shorten the process-cycle, raises the efficiency and machining accuracy.

Description

Based on the bend pipe magnetic grinding automatic navigation method of machine vision
Technical field
The present invention relates to the technology such as computer vision, image procossing, B-spline curves matching, robot controlling, be specially and adopt computer vision methods to carry out self-navigation to free elbow internal wall magnetic grinding.
Background technology
In recent years, the high-accuracy pipe fitting occurred in the field such as mechanical carrier, Aero-Space, due to conveying is highly purified gas or liquid, very high to the roughness requirements of inner surface of pipe fitting.The high glossy of inside pipe wall, can ensure on the one hand to carry unobstructed, avoid occurring that turbulent flow makes tube fluid pressure uniform; Be avoid producing due to blemish polluting and corrosion on the other hand, improve service life.Due to the restriction of environment for use, a lot of pipe fitting is elongated bend pipe, and it is complex-shaped, and curvature is changeable.When grinding elbow internal wall, need move along the axis line track of bend pipe.This just requires in process, determines the machining locus of bend pipe.Current existence two kinds of situations, a kind of situation is, the center curve of known bend pipe, add that to preset axle center curve man-hour be that machining locus is processed, but the machining locus of setting and actual bend pipe center curve difference are very large, need to carry out self-navigation, carrying out smoothly of guarantee processing.At all another kind of situation can not determine the situation of bend pipe axle center curve, relies on self-navigation just can complete the processing of whole bend pipe completely.Self-navigation requires certain real-time, can identify rapidly the case of bending of bend pipe, processing unit (plant) is adjusted, and ensures to carry out magnetic Polishing machining with correct machining posture to bend pipe.
Summary of the invention
In order to overcome the problems referred to above, realize the self-navigation of bend pipe processing, the object of this invention is to provide a kind of tracking accurately, real-time is good, the automatic navigation method that working (machining) efficiency is high.
The technical scheme that the present invention is adopted for achieving the above object is: based on the bend pipe magnetic grinding automatic navigation method of machine vision, comprise the following steps:
1) Robotic Hand-Eye Calibration is carried out to camera; Control arm motion makes one end of bend pipe vertically penetrate the bearing centre of magnetic lapping device, and fixed bending tube two ends; By the outer surface of the linear light vertical irradiation of light source at bend pipe, form semicircular striation;
2) camera absorbs this optical strip image, and obtains the three-dimensional point set relative to camera coordinates system Oc of this optical strip image; The approximate center of circle and the radius that least square fitting obtains this semicircle striation is carried out to three-dimensional point set, then this approximate center of circle is optimized, obtain this semicircle striation center of circle at camera coordinates system O cin coordinate p; Coordinate p is converted to this center of circle at basis coordinates system of robot O bin coordinate C;
3) using first editing objective point that coordinate C moves as robot arm, control arm motion makes the bearing centre of magnetic lapping device with this impact point for starting point makes initial straight-line motion; Repeat step 2 simultaneously) obtain a series of central coordinate of circle C i;
4) by central coordinate of circle C icarry out the orbit of shaft center obtaining bend pipe based on the matching of B-spline curves; This orbit of shaft center is position required for processing of robots and attitude as editing objective track, realizes robot carries out magnetic grinding self-navigation to free bend pipe.
Described to three-dimensional point set carry out least square fitting obtain this semicircle striation the approximate center of circle (m, n, l) and and radius r be m = 2 ( bde - a ) 1 + e 2 + d 2 , n = - b / 2 - dem 1 + e 2 , l = dm + em + f r = m 2 + n 2 + f 2 - 2 lf + l 2 - c
Wherein a, B, C, D are the coefficient in line-structured light plane equation Ax+By+Cz+D=0, and wherein, line-structured light plane equation is determined by the three-dimensional point of the demarcation in camera intrinsic parameter and line-structured light plane.
a = HD - EG GG - D 2 , b = HC - ED D 2 - CG , c = Σ ( x i 2 + y i 2 ) + aΣ x i + bΣ y i N , G = NΣ y i 2 - Σ y i Σ y i ,
E = N ( 1 + d 2 ) Σ x i 3 + ( 1 + e 2 ) Σ x i Σ y i 2 + NhΣ x i 2 Σ y i - ( 1 + d 2 ) Σ x i 2 Σ x i
- ( 1 + e 2 ) Σ y i 2 Σ x i - hΣ x i y i Σ x i
E = N ( 1 + d 2 ) Σ x i 2 Σ y i + N ( 1 + e 2 ) Σ y i 3 + NhΣ x i Σ y i 2 - ( 1 + d 2 ) Σ x i 2 Σ y i
- ( 1 + e 2 ) Σ y i 2 Σ y i - hΣ x i y i Σ y i
(x i, y i, z i) (i=1,2 ..., N) and be three-dimensional point set, N is number a little.
Described being optimized this approximate center of circle adopts LMF algorithm, is specially the center of circle p (p after by approximate center of circle c (x, y, z), optimization 1, p 2, p 3) and variance res bring into LMF algorithmic formula namely obtain optimization after the center of circle;
LMF algorithmic formula be [p, ssq, CNT]=LMFsolve (res, c, ' Display' ,-1), wherein, ssq represents residual sum, and CNT represents iterations, and-1 represents controling parameters.
Described by central coordinate of circle C ithe matching carried out based on B-spline curves comprises the following steps:
4-1) from sequence of points center of circle C iin extract discrete data point in order, determine the knot vector of each data point by the method for accumulation Chord Length Parameterization; Define establishment equation group according to the discrete data point extracted and knot vector by B-spline curves, obtain curve controlled summit; By the knot vector on accumulation Chord Length Parameterization method determination curve controlled summit, according to obtaining control vertex and knot vector determines B-spline curves;
4-2) B-spline curves of gained are divided equally by arc length, again get a little as discrete data point in the same ratio position of every section of arc; Re-executing step 4-1) SPL that obtains is the orbit of shaft center of bend pipe.
The described equation group defining establishment by B-spline curves is
p ( u i ) = Σ j = 0 n d j N j , k ( u i ) = Σ j = i - k i d j , k ( u i ) = q i - k
d n-k+1+i=d i(i=0,1,…,k-1)
Wherein, for knot vector, summit d j(j=i-k, i-k+1 ... i), N i,k(x) (i=0,1 ..., n) be B-spline basic function, n is control vertex number, qi (i=0,1 ..., m) be one group of data point that k B-spline curves pass through.
The present invention has following beneficial effect and advantage:
1. utilize the present invention to follow the tracks of free bend pipe orbit of shaft center efficiently, real-time is good, eliminates the step that track presets, shortens the process-cycle.
2. the present invention adopts CCD camera to obtain space three-dimensional image by the method for computer vision, determine bend pipe surface information, utilize the least square method determination bend pipe home position of band Radius Constraint, then with B-spline curves curved surface adaptive fitting algorithm, a series of bend pipe centre point is processed again, determine bend pipe orbit of shaft center, and secondary gets the matching again a little carrying out orbit of shaft center, make machining locus fairing more, be conducive to the level and smooth working motion of robot.
Accompanying drawing explanation
Fig. 1 is free bend pipe magnetic Polishing machining system architecture schematic diagram of the present invention;
Fig. 2 is bend pipe magnetic lapping device structural representation of the present invention;
Fig. 3 bend pipe space circle of the present invention center of circle and radius acquiring method flow chart;
Fig. 4 is the axle center path approximating method flow chart of bend pipe of the present invention;
Fig. 5 is B-spline curves fitting effect comparison diagram of the present invention.
Detailed description of the invention
Below in conjunction with drawings and Examples, the present invention is described in further detail.
Technical scheme of the present invention adopts computer vision to free bend pipe real-time tracking, to reach elbow internal wall magnetic grinding.
First require to vision camera itself do strict demarcate and hand and eye calibrating to determine Robot Hand-eye relational matrix;
The line-structured light of light source is radiated on the transversal outer surface of bend pipe, and form semicircular striation, CCD camera absorbs this image, and three-dimensional reconstruction, obtain the three-dimensional point set of bend pipe half transversal outer surface, and this three-dimensional point set is the local coordinate system relative to camera;
Half transversal outer surface three-dimensional data point set is carried out to least square fitting and the optimization of Radius Constraint, obtain bend pipe cross-section center coordinate position under local coordinate system;
By Robot Hand-eye relational matrix, under the central coordinate of circle under camera local coordinate system is transformed to robot end's coordinate system, then under transforming to robot polar coordinate system, obtain the coordinate of central coordinate of circle under basis coordinates system of robot;
B-spline curves matching fairing is carried out to the center of circle under the basis coordinates system of a series of robot obtained, determines bend pipe orbit of shaft center.
Utilize the present invention can carry out real-time track extraction to bending axis efficiently, realize controlling in real time the track of robot and attitude, there is stronger practical value.
The step of the free elbow internal wall magnetic grinding automatic navigation method based on computer vision of the present invention is as follows:
First, camera calibration and hand and eye calibrating is carried out to determine Robot Hand-eye relational matrix; The line-structured light of light source is incident upon outer surface of bent pipe, and CCD camera carries out three-dimensional image acquisition to striation; To the image zooming-out light stripe centric line gathered and three-dimensional reconstruction, obtain the semicircle data point set of pipe half-section under camera coordinates system; Double circular data point set carries out least square fitting and the optimization of Radius Constraint, obtains the central coordinate of circle under camera coordinates system; By Robot Hand-eye relational matrix, under this central coordinate of circle is transformed to robot end's coordinate system, then under transforming to basis coordinates system of robot, obtain the coordinate of the center of circle under basis coordinates system of robot; B-spline curves matching is carried out to the center of circle under the basis coordinates system of a series of robot obtained, determines bend pipe orbit of shaft center.
Carry out elaborating of key technology below:
1. the structure of autopilot and principle
As shown in Figure 1, magnetic lapping device is fixed on articulated arm robots's end to the schematic diagram of autopilot structure, and vision sensor is connected with end effector of robot (i.e. magnetic lapping device) maintaining rigidness, and vision sensor is made up of light source and CCD camera.
As shown in Figure 3, need before system cloud gray model to demarcate camera, obtain the relevant parameter of camera; Also to carry out hand and eye calibrating to determine Robot Hand-eye relational matrix.Light source projects striation is in the outer cross section surface of pipe, and CCD camera carries out three-dimensional image acquisition to striation, extract optical losses and carry out three-dimensional reconstruction, obtain managing the semicircular data point set of outer cross section surface relative under camera coordinates system, the LMF method of the method for least square and band Radius Constraint is utilized to process to data point set, determine the home position coordinate under camera coordinates system, to the matrixing of central coordinate of circle through trick relational matrix and robot end's coordinate system and basis coordinates system of robot, obtain the central coordinate of circle of centre point under basis coordinates system, B-spline curves curved surface adaptive fitting algorithm is utilized to carry out B-spline curves matching to the center of circle point set under gained basis coordinates system, determine bend pipe orbit of shaft center, robot controlling end effector carries out inner polishing operation along required track to free bend pipe.
As shown in Figure 2, the magnetic lapping device that the present invention adopts is the magnetic grinding for free elbow internal wall, concrete structure is as follows: the support 1 be fixedly connected with robot arm 10 end is inlaid with bearing 2 by flange, the uniform magnet 3 in one end of bearing 2, the other end is connected with the belt pulley 11 be arranged on support 1 by conveyer belt 4, and belt pulley 11 is fixed on support by a bearing; The turning cylinder of belt pulley 11 is connected with motor 6 main shaft by flexible axle 5; Support 1 side is also installed with aluminium box 7, and aluminium box 7 internal fixtion has light source 8 and camera 9.The optical axis of light source 8 is perpendicular to the axial line of bearing 2.
Before work starts, Robotic Hand-Eye Calibration is carried out to camera 9; Control arm motion makes one end of bend pipe 9 vertically penetrate bearing 2 center, and fixed bending tube 9 two ends, bend pipe 9 external diameter is less than bearing 2 internal diameter, the gap within making bend pipe 9 and bearing 2 inner hole wall leave 3mm; During work, make the outer surface of linear light vertical irradiation at bend pipe 10 of light source 4, form semicircular striation; While gathering optical strip image data, drive motors band dynamic bearing 2 rotates with certain speed (800 revs/min), and the magnet on bearing 2 also rotates thereupon; Iron powder in bend pipe 9 and abrasive material with magnetic rotation, carry out magnetic grinding to bend pipe inside under the effect of magnetic force simultaneously; Control motion makes bearing 2 endoporus center along the movement in real time of bend pipe orbit of shaft center, can complete the attrition process of the self-navigation to whole elbow internal wall.。
2. the acquiring method of central coordinate of circle
2.1 utilize least square method to ask for the space circle center of circle and radius
Because the three-dimensional point data of the transversal outer surface of bend pipe obtained are half circular arc, the matching time error carrying out justifying is comparatively large, therefore can utilize known conditions: the radius of pipe is known, if the radius of pipe is R; The spatial image obtained for camera processes, and obtains space circular arc data (x i, y i, z i) (i=1,2 ..., N), then the desirable center of circle (m, n, l) and radius R are Least Square Method value equation group:
( x i - m ^ ) 2 + ( y i - n ^ ) 2 + ( z i - l ^ ) 2 = R 2 ^ - - - ( 1 )
(i=1,2…,N)
Least square solution.
For the striation circular arc data (x that camera obtains i, y i, z i) (i=1,2 ..., N), they are distributed on the line-structured light plane Ax+By+Cz+D=0 of camera, and A, B, C, D are equation coefficient, and the zi value of such circular arc data can by optic plane equations by x iand y irepresent, that is:
z=dx+ey+f(2)
Wherein: can be transformed on two-dimensional space asking ternary least square method, i.e. (x i-m) 2+ (y i-n) 2+ (z i-l) 2=R 2transfer to:
(x i-m) 2+(y i-n) 2+(dx i+ey i+f i-l) 2=R 2(3)
Formula (3) can turn to:
(1+d 2)x 2+(1+e 2)y 2+ax+by+c+hxy=0(4)
Wherein: a=2 (fd-ld-m), b=2 (fe-le-n), h=2de, c=m 2+ n 2+ (f-l) 2-R 2.
If sample set (x i, y i, z i) (i=1,2 ..., N) to the distance in the center of circle be d i:
( x i - m ) 2 + ( y i - n ) 2 + ( z i - l ) 2 = d i 2 - - - ( 5 )
Point (x i, y i, z i) (i=1,2 ..., N) to rounded edge distance square with the difference of two squares of radius be:
δ i = d i 2 - R 2 = ( 1 + d 2 ) x i 2 + ( 1 + e 2 ) y i 2 + ax i + by i + c + hx i y i - - - ( 6 )
Q (a, b, c) is made to be δ iquadratic sum:
Q ( a , b , c ) = Σ δ i 2 = Σ [ ( 1 + d 2 ) x i 2 + ( 1 + e 2 ) y i 2 + ax i + by i + c + hx i y i ] 2 - - - ( 7 )
Ask parameter a, b, c make the value of Q (a, b, c) minimum:
∂ Q ( a , b , c ) ∂ a = Σ 2 [ ( 1 + d 2 ) x i 2 + ( 1 + e 2 ) y i 2 + ax i + by i + c + hx i y i ] x i - - - ( 8 )
∂ Q ( a , b , c ) ∂ b = Σ 2 [ ( 1 + d 2 ) x i 2 + ( 1 + e 2 ) y i 2 + ax i + by i + c + hx i y i ] y i - - - ( 9 )
∂ Q ( a , b , c ) ∂ c = Σ 2 [ ( 1 + d 2 ) x i 2 + ( 1 + e 2 ) y i 2 + ax i + by i + c + hx i y i ] - - - ( 10 )
Make (8) * N-(10) * ∑ x i, (9) * N-(10) * ∑ y i:
Ca+Db+E=0(11)
Da+Gb+H=0
Wherein: C = NΣ x i 2 - Σ x i * Σ x i , D=N∑x iy i-∑x i*∑y i G = N y i 2 - Σ y i Σ y i
E = N ( 1 + d 2 ) Σ x i 3 + ( 1 + e 2 ) Σ x i Σ y i 2 + NhΣ x i 2 Σ y i - ( 1 + d 2 ) Σ x i 2 Σ x i
- ( 1 + e 2 ) Σ y i 2 Σ x i - hΣ x i y i Σ x i
E = N ( 1 + d 2 ) Σ x i 2 Σ y i + N ( 1 + e 2 ) Σ y i 3 + NhΣ x i Σ y i 2 - ( 1 + d 2 ) Σ x i 2 Σ y i
- ( 1 + e 2 ) Σ y i 2 Σ y i - hΣ x i y i Σ y i
Can be solved by formula (11):
a = HD - EG GG - D 2 , b = HC - ED D 2 - CG , c = Σ ( x i 2 + y i 2 ) + aΣ x i + bΣ y i N - - - ( 12 )
Radius and the center of circle are:
m = 2 ( bde - a ) 1 + e 2 + d 2 , n = - b / 2 - dem 1 + e 2 , l = dm + en + f
r = m 2 + n 2 + f 2 - 2 lf + l 2 - c
2.2 utilize LMF method to be optimized the center of circle of trying to achieve and radius
Utilize least square method to obtain the center of circle and the radius of space circle, and the real radius of bend pipe can be obtained by actual measurement, if the radial misalignment of the radius obtained and actual measurement is comparatively large, the center of circle calculated also can be forbidden.In order to address this problem, by about beam radius, LMF algorithm is adopted to solve the optimization problem of the center of circle, the space degree of accuracy.
If the round heart of known spatial is c (x, y, z), about beam radius is r, space circular arc sample set (x i, y i, z i) (i=1,2 ... N), the center of circle after optimization is p (p 1, p 2, p 3), so the variance of least square is:
res=∑[(x i-p 1) 2+(y i-p 2) 2+(z i-p 3) 2-r 2](14)
The expression formula of LMF algorithm is:
[Xf,ssq,CNT]=LMFsolve(FUN,Xo,Options)(15)
Wherein Xf represents final approximate solution, and ssq represents residual sum, and CNT represents iterations, and FUN is function name, and Xo represents n and ties up initial solution, and Options represents alternative controling parameters.
By known center of circle c (x, y, z), the unknown center of circle p (p after optimization 1, p 2, p 3) and variance res bring formula (15) into:
[p,ssq,CNT]=LMFsolve(res,c,'Display',-1)(16)
Center of circle p (the p closer to actual conditions after band Radius Constraint is optimized is calculated by LMF algorithm 1, p 2, p 3).
The coordinate transform in 2.3 centers of circle
By being with the center of circle after Radius Constraint least square fitting to be p (p 1, p 2, p 3), this center of circle is the central coordinate of circle of striation under camera coordinates system, and in practical application, carries out subsequent treatment under the camera light plane center of circle being transformed into basis coordinates system, therefore needs the aiming plane center of circle to carry out coordinate transform.
In free bend pipe system of processing, CCD camera is (pxCE, pyCE, pzCE) relative to the coordinate of robot end, T ce3 × 3 matrixes that middle the first row first row starts are the attitude rotational transformation matrix (CE be cameratorobotend) of camera to robot end.Trick relational matrix and the camera transformation matrix relative to end is obtained by demarcating camera:
T ce = nxCE oxCE axCE pxCE nyCE oyCE ayCE pyCE nzCE ozCE azCE pzCE 0 0 0 0 - - - ( 17 )
Robot end's coordinate system relative to the transformation matrix of basis coordinates system of robot is:
T eb = nxEB oxEB axEB pxEB nyEB oyEB ayEB pyEB nzEB ozEB azEB pzEB 0 0 0 1 - - - ( 18 )
Wherein, (pxEB, pyEB, pzEB) for robot end is relative to the coordinate under robot base mark system, T eb3 × 3 matrixes that middle the first row first row starts are the attitude rotational transformation matrix (EB be endtobase) of robot end to robot base mark system.
Then camera to the transformation matrix of basis coordinates system of robot is:
T cb = T eb * T ce = nxCB oxCB axCB pxCB nyCB oyCB ayCB pyCB nzCB ozCB azCB pzCB 0 0 0 1 - - - ( 19 )
Wherein, (pxCB, pyCB, pzCB) for camera is relative to the coordinate of basis coordinates system of robot, T cb3 × 3 matrixes that middle the first row first row starts are the attitude rotational transformation matrix (CB be cameratobase) of camera to robot base mark system.
Robot end is (pxEB, pyEB, pzEB) relative to the coordinate of robot, obtains the coordinate (px, py, pz) of the camera light plane center of circle under basis coordinates system of robot thus:
px py pz 1 = nxCB oxCB axCB pxCB nyCB oyCB ayCB pyCB nzCB ozCB azCB pzCB 0 0 0 1 p 1 p 2 p 3 1 - - - ( 20 )
The algorithm flow that the space circle center of circle and radius are determined as shown in Figure 3.
3. the B-spline curves fit procedure of bend pipe orbit of shaft center
The B-spline curves initial fitting of 3.1 bend pipe orbit of shaft center
B-spline interpolation curve is expressed as:
In formula (21), k represents the power of B-spline, and t is node, and subscript i is the sequence number of B-spline difference curve.
From formula (21), for determining i-th k B-spline N i,kx () need use t i, t i+1..., t i+k+1k+2 node altogether, n+1 control vertex d in equation (22) i(i=0,1 ..., n+1 k B-spline basic function N n) will be used i,k(x) (i=0,1 ..., n).B-spline curves are defined in interval x ∈ [t i, t i+1] on curved section, omit the item that wherein basic function gets null value, can be expressed as:
P ( x ) = Σ j = i = k i d j N j , k ( x ) , x ∈ [ t i , t i + 1 ] - - - ( 22 )
Namely on k B-spline curves, domain of definition intrinsic parameter is x ∈ [t i, t i+1] 1 p (x) at the most with k+1 summit d j(j=i-k, i-k+1 ... i) relevant, have nothing to do with other summit.
Different according to the distribution situation of the knot vector interior joint of B-spline curves, B-spline curves can be divided into following 4 types: Uniform B-Spline Curve, Quasi uniform B-spline, segmentation bezier curve, general non-uniform B-spline curve.
The B-spline curves curved surface adaptive fitting algorithm that this axis line track generation method adopts proposes on the basis of Quasi uniform B-spline, can meet the requirement of different fitting precision.
Corresponding pose adjustment is made for making the orbit of shaft center change of end effector of robot according to bend pipe in traveling process, need B-spline curves curved surface adaptive fitting algorithm be utilized to carry out curve fitting to a series of center of circle C obtained, as shown in Figure 4, its step comprises specific algorithm flow process:
1) from the point sequence of the centre point C tried to achieve, discrete data point is extracted in order; 2) to the method pressing specification accumulation Chord Length Parameterization of fetching data determine the parameter value of each discrete data point; 3) defined by B-spline interpolation curve and set up equation group, inverse curve controlled summit; By the method for specification accumulation Chord Length Parameterization, knot vector is tried to achieve to control vertex; 4) B-spline curves are determined by required control vertex and knot vector.
Specific implementation step is:
1) required B-spline interpolation curve will by n+1 control point d i(i=0,1 ..., n) with knot vector U=[u 0, u 1... u n+k-1] definition.Wherein, n=m+k-1, namely control vertex number has more k-1 than data point number, total m+k control point;
2) one group of data point q that k B-spline curves pass through first is extracted i(i=0,1 ..., m), these data points obtain from the point sequence of the centre point C asked for;
3) the first and last end points of B-spline interpolation curve is consistent with first and last data point respectively, the connection segment point of curve successively with the node one_to_one corresponding in the B-spline matched curve domain of definition.By end-points interpolation condition, the clamped condition of k+1 multiple knot end points should be got, get again the specification domain of definition, so have
u 0=u 1=…=u k=0,u n+1=u n+2=…=u n+k+1
4) method of data point by specification accumulation Chord Length Parameterization is obtained namely from u kthe domain of definition internal segment point value risen equals successively the data point parameter value risen.Now can provide by interpolation condition the system of linear equations formed with n+1 control point m+1 the linear equation that be unknown vector:
p ( u i ) = Σ j = 0 n d j N j , k ( u i ) = Σ j = i - k i d j , k ( u i ) = q i - k - - - ( 23 )
In formula, u ∈ [ u t , u t + 1 ] ⋐ [ u k , u n + 1 ] , t = k , k + 1 , . . . , n .
5) for open curve, equation number is less than unknown number of vertex, must supplement k-1 the additional equation provided by suitable boundary condition, could simultaneous solution.For C k-1continuous print B-spline closed curve, domain of definition interior nodes can be determined equally, but the domain of definition is total to the clamped condition that 2k node just should not get into multiple knot end points outward, and should be got into by nodal values according to the method for structure B-spline curves
u 0=u n-k+1-1,u 1=u n-k+2-1,…,u n-k=u n-1;u n+2=1+u k+1,u n+3=1+u k+2,…,u n+k+1=1+u 2k
Because first and last data point is mutually overlapping, q 0=q m, equation reduces one.Because the first and last k strong point generated is consistent, i.e. d n-k+1+i=d i(i=0,1 ..., k-1), so only remaining m equation;
6) form equation group by above-mentioned two gained equation simultaneous, solve curve controlled summit d i(i=0,1 ..., knot vector U=[u n) and to control vertex utilizing specification accumulation Chord Length Parameterization method to obtain 0, u 1..., u n+k+1] jointly determine B-spline curves.When actual configuration B-spline interpolation curve, adopt C 2continuous print B-spline Curve is as interpolation curve.
The quadratic fit of 3.2B SPL
The B-spline curves tentatively asked for are consistent with already present curve.But due to measured deviation, if can there is noise and swing when data point is too much, the B-spline curves that inverse operation process obtains can depart from some some place and ideal curve.Disturbance will cause machining locus level and smooth not frequently, for improving this situation, propose and carrying out to obtaining B-spline curves the method that a quadratic fit is got in segmentation.Concrete steps are:
1) B-spline curves after matching are divided equally by arc length, again get a little, as the data point asking for B-spline curves in the special ratios position (such as position of halving) of each curved section;
2) then again by B-spline curves fitting algorithm, quadratic fit is carried out to a series of data points obtained, again obtain B-spline curves.
Experiment proves, this curve is closer to ideal curve movement locus, and amplitude of fluctuation and frequency all significantly reduce, and is more suitable for the smooth motion processing of robot.Curve effect contrast figure as shown in Figure 5.

Claims (5)

1., based on the bend pipe magnetic grinding automatic navigation method of machine vision, it is characterized in that comprising the following steps:
1) Robotic Hand-Eye Calibration is carried out to camera; Control arm motion makes one end of bend pipe vertically penetrate the bearing centre of magnetic lapping device, and fixed bending tube two ends; By the outer surface of the linear light vertical irradiation of light source at bend pipe, form semicircular striation;
2) camera absorbs this optical strip image, and obtain this optical strip image relative to camera coordinates system O cthree-dimensional point set; The approximate center of circle and the radius that least square fitting obtains this semicircle striation is carried out to three-dimensional point set, then this approximate center of circle is optimized, obtain this semicircle striation center of circle at camera coordinates system O cin coordinate p; Coordinate p is converted to this center of circle at basis coordinates system of robot O bin coordinate C;
3) using first editing objective point that coordinate C moves as robot arm, control arm motion makes the bearing centre of magnetic lapping device with this impact point for starting point makes initial straight-line motion; Repeat step 2 simultaneously) obtain a series of central coordinate of circle C i;
4) by central coordinate of circle C icarry out the orbit of shaft center obtaining bend pipe based on the matching of B-spline curves; This orbit of shaft center is position required for processing of robots and attitude as editing objective track, realizes robot carries out magnetic grinding self-navigation to free bend pipe.
2. the bend pipe magnetic based on machine vision according to claim 1 grinding automatic navigation method, is characterized in that: described to three-dimensional point set carry out least square fitting obtain this semicircle striation the approximate center of circle (m, n, l) and and radius r be m = 2 ( b d e - a ) 1 + e 2 + d 2 , n = - b / 2 - d e m 1 + e 2 , l = d m + e n + f r = m 2 + n 2 + f 2 - 2 l f + l 2 - c
Wherein a, B, C, D are the coefficient in line-structured light plane equation Ax+By+Cz+D=0, and wherein, line-structured light plane equation is determined by the three-dimensional point of the demarcation in camera intrinsic parameter and line-structured light plane;
a = H D - E G C G - D 2 , b = H D - E G D 2 - C G , c = Σ ( x i 2 + y i 2 ) + aΣx i + bΣy i N , G = NΣy i 2 - Σy i Σy i ,
E = N ( 1 + d 2 ) Σx i 3 + ( 1 + e 2 ) Σx i Σy i 2 + NhΣx i 2 Σy i - ( 1 + d 2 ) Σx i 2 Σx i - ( 1 + e 2 ) Σy i 2 Σx i - hΣx i y i Σx i
H = N ( 1 + d 2 ) Σx i 2 Σy i + N ( 1 + e 2 ) Σy i 3 + NhΣx i Σy i 2 - ( 1 + d 2 ) Σx i 2 Σy i - ( 1 + e 2 ) Σy i 2 Σy i - hΣx i y i Σy i ,
(x i, y i, z i) (i=1,2 ..., N) and be three-dimensional point set, N is number a little, h=2de.
3. the grinding of the bend pipe magnetic based on machine vision automatic navigation method according to claim 1, it is characterized in that: described being optimized this approximate center of circle adopts LMF algorithm, be specially the center of circle p (p after being similar to center of circle c (x, y, z), optimization 1, p 2, p 3) and variance res bring into LMF algorithmic formula namely obtain optimization after the center of circle;
LMF algorithmic formula be [p, ssq, CNT]=LMFsolve (res, c, ' Display' ,-1), wherein, ssq represents residual sum, and CNT represents iterations, and-1 represents controling parameters.
4. the grinding of the bend pipe magnetic based on machine vision automatic navigation method according to claim 1, is characterized in that: described by central coordinate of circle C ithe matching carried out based on B-spline curves comprises the following steps:
4-1) from sequence of points center of circle C iin extract discrete data point in order, determine the knot vector of each data point by the method for accumulation Chord Length Parameterization; Define establishment equation group according to the discrete data point extracted and knot vector by B-spline curves, obtain curve controlled summit; By the knot vector on accumulation Chord Length Parameterization method determination curve controlled summit, according to obtaining control vertex and knot vector determines B-spline curves;
4-2) B-spline curves of gained are divided equally by arc length, again get a little as discrete data point in the same ratio position of every section of arc; Re-executing step 4-1) SPL that obtains is the orbit of shaft center of bend pipe.
5. the bend pipe magnetic based on machine vision according to claim 4 grinding automatic navigation method, is characterized in that: the described equation group defining establishment by B-spline curves is
p ( u i ) = Σ j = 0 n d j N j , k ( u i ) = Σ j = i - k i d j , k ( u i ) = q i - k
d n-k+1+i=d i(i=0,1,…,k-1)
Wherein, u ∈ [ u t , u t + 1 ] ⋐ [ u k , u n + 1 ] , t = k , k + 1 , ... , n For knot vector, summit d j(j=i-k, i-k+1 ... i), N i,k(x) (i=0,1 ..., n) be B-spline basic function, n is control vertex number, q i(i=0,1 ..., m) be one group of data point that k B-spline curves pass through.
CN201210545165.8A 2012-12-14 2012-12-14 Based on the bend pipe magnetic grinding automatic navigation method of machine vision Expired - Fee Related CN103862330B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210545165.8A CN103862330B (en) 2012-12-14 2012-12-14 Based on the bend pipe magnetic grinding automatic navigation method of machine vision

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210545165.8A CN103862330B (en) 2012-12-14 2012-12-14 Based on the bend pipe magnetic grinding automatic navigation method of machine vision

Publications (2)

Publication Number Publication Date
CN103862330A CN103862330A (en) 2014-06-18
CN103862330B true CN103862330B (en) 2016-03-23

Family

ID=50901667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210545165.8A Expired - Fee Related CN103862330B (en) 2012-12-14 2012-12-14 Based on the bend pipe magnetic grinding automatic navigation method of machine vision

Country Status (1)

Country Link
CN (1) CN103862330B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104864807B (en) * 2015-04-10 2017-11-10 深圳大学 A kind of manipulator hand and eye calibrating method based on active binocular vision
CN106503348A (en) * 2016-11-01 2017-03-15 武汉理工大学 A kind of method of the reduction shaft shoulder stress concentration based on B-spline curves
CN108074277B (en) * 2016-11-18 2021-09-21 中国科学院沈阳自动化研究所 Elbow measurement and allowance positioning method for digital manufacturing
CN107218930B (en) * 2017-05-05 2020-01-03 山东大学 Monocular-hand-eye-system-based active measurement method for six-dimensional position-posture of space circle
CN107290140A (en) * 2017-06-14 2017-10-24 东华大学 A kind of method for measuring Yarn-spinning spindle ingot end oscillation trajectory
CN107422693B (en) * 2017-08-02 2019-08-06 辽宁科技大学 Center line is reconstructed to space bent pipe inner surface polishing locus generation method
CN108972160A (en) * 2018-08-03 2018-12-11 辽宁科技大学 A kind of complexity axis bend pipe surfaces externally and internally magnetic abrasive finishing device and method
CN109615662A (en) * 2018-12-04 2019-04-12 中冶赛迪工程技术股份有限公司 A kind of coordinate system scaling method, system, computer readable storage medium and equipment
CN109605140B (en) * 2018-12-25 2021-03-23 珞石(山东)智能科技有限公司 Cutter edging method based on machine vision and six-axis mechanical arm with force control function
CN112265000B (en) * 2020-11-13 2023-12-22 辽宁科技大学 Device and method for rapidly acquiring magnetic particle grinding track on inner surface of bent pipe
CN112489139B (en) * 2020-12-14 2022-05-17 华南农业大学 Calibration method for geometric center position of camera and robot based on external identification
CN112873204B (en) * 2021-01-13 2022-08-05 深圳瀚维智能医疗科技有限公司 Robot calibration method, device, equipment and computer readable storage medium
CN112894209A (en) * 2021-01-19 2021-06-04 常州英迈乐智能系统有限公司 Automatic plane correction method for intelligent tube plate welding robot based on cross laser

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102059619A (en) * 2010-06-25 2011-05-18 沈阳工业大学 Complicated curved surface digital controlled grinding method based on grinding wheel envelope profile
CN102430963A (en) * 2011-08-26 2012-05-02 大连工业大学 Design method of twist drill suitable for CNC (Computerized Numerical Control) machine tool

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10337638A (en) * 1997-06-09 1998-12-22 Nikon Corp Shape creating method
JP3790966B2 (en) * 2002-05-01 2006-06-28 株式会社ルネサステクノロジ Inspection method and inspection apparatus for semiconductor element surface

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102059619A (en) * 2010-06-25 2011-05-18 沈阳工业大学 Complicated curved surface digital controlled grinding method based on grinding wheel envelope profile
CN102430963A (en) * 2011-08-26 2012-05-02 大连工业大学 Design method of twist drill suitable for CNC (Computerized Numerical Control) machine tool

Also Published As

Publication number Publication date
CN103862330A (en) 2014-06-18

Similar Documents

Publication Publication Date Title
CN103862330B (en) Based on the bend pipe magnetic grinding automatic navigation method of machine vision
CN110653805B (en) Task constraint path planning method for seven-degree-of-freedom redundant manipulator in Cartesian space
CN106199626B (en) Based on the indoor three-dimensional point cloud map generation system and method for swinging laser radar
CN110919658B (en) Robot calibration method based on vision and multi-coordinate system closed-loop conversion
CN104057290A (en) Method and system for assembling robot based on visual sense and force feedback control
CN109029448B (en) Monocular vision inertial positioning's IMU aided tracking model
CN104385281B (en) A kind of Zero calibration method of two-freedom high speed parallel robot
CN110948504B (en) Normal constant force tracking method and device for robot machining operation
CN111610523B (en) Parameter correction method for wheeled mobile robot
CN108469823B (en) Homography-based mobile robot formation following method
CN102183205A (en) Method for matching optimal assembly poses of large-sized parts
CN103395073A (en) Zero calibration method of six-axis industrial robot
CN109877840A (en) A kind of double mechanical arms scaling method based on camera optical axis constraint
CN108021534B (en) Permanent magnet spherical motor position detection method based on 3-D magnetic field sensor
CN112659122B (en) Propeller cleaning path planning method and cleaning robot using same
CN103878770A (en) Space robot visual delay error compensation method based on speed estimation
CN102426392A (en) Electromagnetic tracking method based on quadrature magnetic bar rotation search and system thereof
CN109176487A (en) A kind of cooperating joint section scaling method, system, equipment, storage medium
CN114670191B (en) Seven-degree-of-freedom elbow offset mechanical arm track planning method
CN110883774A (en) Robot joint angle zero calibration system, method and storage medium
CN112907735A (en) Flexible cable identification and three-dimensional reconstruction method based on point cloud
CN110962127B (en) Auxiliary calibration device for tail end pose of mechanical arm and calibration method thereof
CN111002302B (en) Mechanical arm grabbing track planning method combining Gaussian mixture model and dynamic system
CN112990549B (en) Space non-cooperative target near-around flight observation track optimization method
CN108200547B (en) Rigid body positioning method based on measured distance

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160323

Termination date: 20171214