CN106813570B - 3D recognition and localization of long cylindrical objects based on line structured light scanning - Google Patents
3D recognition and localization of long cylindrical objects based on line structured light scanning Download PDFInfo
- Publication number
- CN106813570B CN106813570B CN201510868428.2A CN201510868428A CN106813570B CN 106813570 B CN106813570 B CN 106813570B CN 201510868428 A CN201510868428 A CN 201510868428A CN 106813570 B CN106813570 B CN 106813570B
- Authority
- CN
- China
- Prior art keywords
- structured light
- data
- arc
- long cylindrical
- cylindrical object
- 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
- 230000004807 localization Effects 0.000 title abstract description 3
- 238000005259 measurement Methods 0.000 claims abstract description 46
- 238000000034 method Methods 0.000 claims abstract description 32
- 230000011218 segmentation Effects 0.000 claims abstract description 15
- 238000010586 diagram Methods 0.000 description 5
- 238000004519 manufacturing process Methods 0.000 description 4
- 238000000691 measurement method Methods 0.000 description 4
- 238000002474 experimental method Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 230000018109 developmental process Effects 0.000 description 2
- 206010033799 Paralysis Diseases 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Landscapes
- Length Measuring Devices By Optical Means (AREA)
Abstract
Description
技术领域technical field
本发明属于计算机视觉领域,具体的说涉及一种基于线结构光扫描的长圆柱形物体三维识别与定位方法。The invention belongs to the field of computer vision, in particular to a three-dimensional identification and positioning method of long cylindrical objects based on line structured light scanning.
背景技术Background technique
随着国民经济的快速发展,自动化已经成为未来的发展方向。利用机器人代替人工实现自动上下料,不仅节约生产成本,提高生产效率,同时提高安全系数,降低工人劳动强度,成为越来越多公司的理想选择。With the rapid development of the national economy, automation has become the future development direction. The use of robots to replace manual labor to realize automatic loading and unloading not only saves production costs, improves production efficiency, but also improves safety factor and reduces labor intensity of workers, which has become an ideal choice for more and more companies.
为了实现机器人自动上下料,需要测量物料的位置,然后传递给机器人,引导机械手进行抓取。而结构光测量方法因设备简单、实时性强而受到高度重视,尤其在对测量设备的体积、重量、功耗要求严格的应用场合,结构光测量更体现了其优势。In order to realize the automatic loading and unloading of the robot, the position of the material needs to be measured, and then passed to the robot to guide the manipulator to grasp it. The structured light measurement method has been highly valued because of its simple equipment and strong real-time performance. Especially in the application occasions where the size, weight and power consumption of the measurement equipment are strictly required, the structured light measurement shows its advantages.
结构光测量方法是一种主动式光学测量技术,其基本原理是通过结构光投射器向被测物体表面投射可控制光点、光条或光面结构,并由图像传感器(例如摄像机)获得图像,然后通过系统几何关系,利用三角原理计算得到物体的三维坐标。根据结构光投射器向被测物体表面投射可控制的光点、光条或光面结构,结构光可分为点结构光、线结构光和面结构光。由于点结构光测量方法需要逐点扫描物体进行测量,随着被测物体的增大,图像摄取和图像处理时间会急剧增加,难以实现实时测量;而面结构光得到三维坐标点数据量很大,计算量也会随之增加,因此,线结构光在工程上的应用更为普遍。The structured light measurement method is an active optical measurement technology. Its basic principle is to project a controllable light spot, light strip or light surface structure to the surface of the measured object through a structured light projector, and obtain an image by an image sensor (such as a camera). , and then through the geometric relationship of the system, the three-dimensional coordinates of the object are calculated by using the principle of trigonometry. Structured light can be divided into point structured light, line structured light and surface structured light according to the controllable light spot, light bar or light surface structure projected by the structured light projector to the surface of the object to be measured. Since the point structured light measurement method needs to scan the object point by point for measurement, with the increase of the measured object, the image capture and image processing time will increase sharply, and it is difficult to realize real-time measurement; while the surface structured light obtains a large amount of data of 3D coordinate points , the amount of calculation will increase accordingly, so the application of linear structured light in engineering is more common.
由于生产环境恶劣,受噪声污染严重,料箱中长圆柱形物体的半径、长度又随意变化,且摆放杂乱无章,一般的测量方法的精度很难达到实际要求。Due to the harsh production environment and serious noise pollution, the radius and length of the long cylindrical objects in the material box change randomly, and the placement is disordered, so the accuracy of the general measurement method is difficult to meet the actual requirements.
发明内容SUMMARY OF THE INVENTION
为解决生产环境内噪声污染严重,料箱中长圆柱形物体半径、长度随意变化,且摆放杂乱随意等情况对测量精度的影响,本发明提供一种测量速度快,精度高,鲁棒性强,实时、自动地实现长圆柱形物体三维识别与定位的方法。In order to solve the influence of the serious noise pollution in the production environment, the random change of the radius and length of the long cylindrical objects in the material box, and the random placement on the measurement accuracy, the invention provides a measurement speed, high precision, and robustness. A strong, real-time and automatic method for realizing three-dimensional recognition and localization of long cylindrical objects.
本发明为实现上述目的所采用的技术方案是:一种基于线结构光扫描的长圆柱形物体三维识别与定位方法,用于实现料箱中长圆柱形物体位置的测量,包括以下步骤:The technical scheme adopted by the present invention to achieve the above object is: a three-dimensional identification and positioning method for long cylindrical objects based on line structured light scanning, which is used to realize the measurement of the position of the long cylindrical objects in the material box, comprising the following steps:
利用线结构光测量传感器对料箱中的长圆柱形物体以固定步长分m次进行轴向扫描,得到m个剖面的结构光测量数据;The linear structured light measurement sensor is used to axially scan the long cylindrical object in the bin in m times with a fixed step size, and the structured light measurement data of m sections are obtained;
对每个剖面的结构光测量数据分别进行数据分割,使得属于同一物体的数据分割在一段圆弧中;Perform data segmentation on the structured light measurement data of each section, so that the data belonging to the same object is divided into a segment of arc;
对每段分割数据进行圆弧拟合,得到圆心坐标;Perform arc fitting on each segment of segmented data to obtain the coordinates of the center of the circle;
根据同一物体上的圆弧应满足的约束条件,匹配m个剖面的圆弧圆心;According to the constraints that the arcs on the same object should satisfy, match the arc centers of m sections;
利用线性插值算法计算长圆柱形物体的三维坐标;Use linear interpolation algorithm to calculate the three-dimensional coordinates of long cylindrical objects;
确定抓取的物体标号。Determine the number of the object being grabbed.
所述m的设定个剖面基本能覆盖整个长圆柱形物体的轴向,需要根据实际情况自行确定。The set section of m can basically cover the axial direction of the entire long cylindrical object, and needs to be determined by itself according to the actual situation.
所述线结构光测量传感器所投射的射线是1个。The number of rays projected by the line structured light measurement sensor is one.
所述数据分割过程中,同一段圆弧的数据点应该同时满足以下条件:During the data segmentation process, the data points of the same arc should meet the following conditions at the same time:
|xi-xi-1|+|zi-zi-1|<k1 (1)|x i -x i-1 |+|z i -z i-1 |<k 1 (1)
|zi-zi-5|<k2 (2)|z i -z i-5 |<k 2 (2)
(zi-10-zi≤k3)||(zi+10-zi≤k3) (3)(z i-10 -z i ≤k 3 )||(z i+10 -z i ≤k 3 ) (3)
其中,(xi,zi)为结构光测量数据在第i点处x、z方向上的坐标值,(xi-1,zi-1)为结构光测量数据在第i-1点处x、z方向上的坐标值,zi-5、zi-10、zi+10分为结构光测量数据在第i-5、i-10、i+10点处z方向上的坐标值,k1、k2、k3是预设常数。Among them, (x i , z i ) is the coordinate value of the structured light measurement data at the i-th point in the x and z directions, and (x i-1 , z i-1 ) is the structured light measurement data at the i-1th point. The coordinate values in the x and z directions, z i-5 , z i-10 , and z i+10 are divided into the coordinates of the i-5, i-10, and i+10th points in the z direction of the structured light measurement data. value, k 1 , k 2 , k 3 are preset constants.
所述数据分割后排除满足以下条件的结构光测量数据的干扰:After the data is divided, the interference of the structured light measurement data satisfying the following conditions is excluded:
其中,(xi,zi)为结构光测量数据在第i点处x、z方向上的坐标值,为圆弧上最后一点的结构光测量数据,k4、k5是预设常数,且存在k4<k5。Among them, (x i , z i ) is the coordinate value of the structured light measurement data in the x and z directions at the i-th point, is the structured light measurement data of the last point on the arc, k 4 and k 5 are preset constants, and k 4 <k 5 exists.
所述进行圆弧拟合要求同一段圆弧上数据的点数同时满足以下条件:The arc fitting requires that the number of data points on the same arc segment simultaneously meet the following conditions:
n>r/Tsample (6)n>r/T sample (6)
n<2*r/Tsample (7)n<2*r/T sample (7)
其中,n为同一段圆弧上数据的点数,r为圆弧半径,Tsample为结构光分辨率。Among them, n is the number of data points on the same arc, r is the radius of the arc, and T sample is the resolution of the structured light.
所述圆弧拟合采用高斯-牛顿迭代法进行,目标函数为:The arc fitting is performed by the Gauss-Newton iteration method, and the objective function is:
f(x0,z0)=(x-x0)2+(z-z0)2-r2 (8)f(x 0 ,z 0 )=(xx 0 ) 2 +(zz 0 ) 2 -r 2 (8)
其中,x、z为圆弧上的数据点坐标,x0、z0为圆弧圆心坐标,即为待求参数,其求解过程如下:Among them, x and z are the coordinates of the data points on the arc, and x 0 and z 0 are the coordinates of the center of the arc, which are the parameters to be determined. The solution process is as follows:
第一步:设置x0、z0的初始值 Step 1: Set the initial values of x 0 and z 0
其中,xk为圆弧上x方向上的第k个数据,n为圆弧上的数据量,zk为圆弧上数据z方向上的最大值,r为圆弧半径;Among them, x k is the kth data on the arc in the x direction, n is the amount of data on the arc, z k is the maximum value of the data on the arc in the z direction, and r is the radius of the arc;
第二步:对函数f(x0,z0)求二阶偏导数,即Step 2: Find the second-order partial derivative for the function f(x 0 , z 0 ), that is
同时令At the same time order
b11Δ1+b12Δ2=B1 (16)b 11 Δ 1 +b 12 Δ 2 =B 1 (16)
b21Δ1+b22Δ2=B2 (17)b 21 Δ 1 +b 22 Δ 2 =B 2 (17)
其中,fk为圆弧上第k个数据的目标函数值,Δ1、Δ2分别为圆心坐标的增量,根据式(16)、(17),可得:Among them, f k is the objective function value of the kth data on the arc, Δ 1 and Δ 2 are the increments of the coordinates of the center of the circle, respectively. According to equations (16) and (17), we can get:
第三步:更新x0、z0,即:The third step: update x 0 , z 0 , namely:
其中,分别为第i-1次迭代时的圆弧圆心坐标,分别为第i次迭代时的圆弧圆心坐标;in, are the coordinates of the arc center at the i-1th iteration, respectively, are the coordinates of the arc center at the ith iteration;
第四步:计算均方误差:Step 4: Calculate the mean squared error:
如果MS<T,T为最大均方误差值,停止迭代,得到圆弧圆心坐标x0、z0;否则转到第二步。If MS<T, T is the maximum mean square error value, stop the iteration, and obtain the arc center coordinates x 0 , z 0 ; otherwise, go to the second step.
所述同一物体上的圆弧应满足的约束条件为:The constraints that arcs on the same object should satisfy are:
其中,(xq,zq)为最后匹配的圆弧圆心坐标,为未匹配剖面的圆弧圆心坐标,k6、k7是预设常数。Among them, (x q , z q ) is the last matched arc center coordinate, are the coordinates of the arc center of the unmatched section, and k 6 and k 7 are preset constants.
所述匹配m个剖面的圆弧圆心后,该段圆弧对应的物体即为候选抓取物体。After the arc centers of the m sections are matched, the object corresponding to the arc is a candidate grasping object.
所述利用线性插值算法计算长圆柱形物体的三维坐标,具体为:Described using the linear interpolation algorithm to calculate the three-dimensional coordinates of the long cylindrical object, specifically:
已知物体抓取位置处的y值,计算离该值最近的两个剖面,得到相应剖面物体对应圆弧的圆心坐标(x1,z1)、(x2,z2),利用线性插值方法计算得到y值对应的x、z值分别为:Knowing the y value at the grasping position of the object, calculate the two sections closest to the value, and obtain the center coordinates (x 1 , z 1 ) and (x 2 , z 2 ) of the arc corresponding to the corresponding section object, and use linear interpolation The x and z values corresponding to the y value calculated by the method are:
其中,y1、y2分别为两个剖面对应的y值。Among them, y 1 and y 2 are the y values corresponding to the two profiles, respectively.
所述确定抓取的物体标号,具体为:The determining the label of the object to be grasped is specifically:
随机选择最上层可以抓取的物体,如果以下不等式成立:Randomly select objects that can be grasped by the top layer, if the following inequality holds:
那么标号为s的物体即为待抓取的物体;其中,rand()为随机数,分别为标号为s的物体两个抓取位置处对应的z值,分别为标号为k的物体两个抓取位置处对应的z值,m为候选抓取物体数目。Then the object labeled s is the object to be grasped; among them, rand() is a random number, are the z values corresponding to the two grasping positions of the object labeled s, respectively, are the z values corresponding to the two grasping positions of the object labeled k, and m is the number of candidate grasping objects.
本发明具有以下优点及有益效果:The present invention has the following advantages and beneficial effects:
1.采用结构光测量传感器和PC机实现长圆柱形物体的三维识别与定位,具有设备简单、测量精度高、实时性强的特点。1. Using structured light measurement sensor and PC to realize three-dimensional identification and positioning of long cylindrical objects, which has the characteristics of simple equipment, high measurement accuracy and strong real-time performance.
2.虽然结构光测量数据受噪声污染严重,且有直线干扰,数据本身又存在连弧的情况,但仍旧能够准确分割弧段,具有良好的抗干扰性能。2. Although the structured light measurement data is seriously polluted by noise and has straight line interference, and the data itself has arcs, it can still accurately segment arcs and has good anti-interference performance.
3.对长圆柱形物体自身的约束小,其半径和长度可以随意变化。3. The constraint on the long cylindrical object itself is small, and its radius and length can be changed at will.
4.在料箱中的长圆柱形物体存在多层、跨层以及交叉等各种摆放情况下,能够准确地定位待抓取的物体,具有较好的鲁棒性。4. In the case that the long cylindrical objects in the material box are placed in various situations such as multi-layer, cross-layer and cross, it can accurately locate the object to be grasped, and has good robustness.
附图说明Description of drawings
图1为本发明的整体流程图;Fig. 1 is the overall flow chart of the present invention;
图2为某个剖面扫描得到的线结构光数据示意图;2 is a schematic diagram of line structured light data obtained by scanning a certain profile;
图3为弧段分割结果示意图;Figure 3 is a schematic diagram of the arc segment segmentation result;
图4为圆弧拟合结果示意图。Figure 4 is a schematic diagram of the arc fitting results.
具体实施方式Detailed ways
下面结合附图及实施例对本发明做进一步的详细说明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments.
本发明的一种基于线结构光扫描的长圆柱形物体三维识别与定位方法,利用结构光测量传感器轴向扫描物体表面得到结构光测量数据,对数据进行分割、圆拟合,得到圆心坐标,并进行匹配,计算物体的三维坐标。如图1所示,具体包括如下步骤:The present invention provides a three-dimensional identification and positioning method for long cylindrical objects based on line structured light scanning. The structured light measurement sensor is used to axially scan the surface of the object to obtain structured light measurement data, and the data is divided and circle fitted to obtain the coordinates of the center of the circle, And match, calculate the three-dimensional coordinates of the object. As shown in Figure 1, it specifically includes the following steps:
1.结构光测量数据获取1. Structured light measurement data acquisition
利用结构光测量传感器对料箱中的长圆柱形物体以固定步长分m次进行轴向扫描,得到m个剖面的结构光测量数据,其中一个剖面的数据如图2所示,横坐标和纵坐标分别为X方向和Z方向的长度数据;所述的结构光测量传感器所投射的射线是1个。Using the structured light measurement sensor, the long cylindrical object in the bin is scanned axially in m times with a fixed step size, and the structured light measurement data of m sections are obtained. The data of one section is shown in Figure 2. The abscissa and The ordinate is the length data in the X direction and the Z direction respectively; the number of rays projected by the structured light measurement sensor is one.
2.数据分割2. Data segmentation
通过分析结构光测量数据中同一段圆弧上的数据特点,发现它们应该同时满足以下条件:By analyzing the data characteristics of the same arc in the structured light measurement data, it is found that they should meet the following conditions at the same time:
|xi-xi-1|+|zi-zi-1|<k1 (1)|x i -x i-1 |+|z i -z i-1 |<k 1 (1)
|zi-zi-5|<k2 (2)|z i -z i-5 |<k 2 (2)
(zi-10-zi≤k3)||(zi+10-zi≤k3) (3)(z i-10 -z i ≤k 3 )||(z i+10 -z i ≤k 3 ) (3)
其中,(xi,zi)为结构光测量数据在第i点处x、z方向上的坐标值,k1、k2、k3是常数,可以根据对样本数据进行分析,并通过大量实际情况下的实验进行验证,确保同一段圆弧上的数据分割正确。如图3所示为一剖面上弧段分割结果示意图,图中+号表示各分割弧段的起点和终点。Among them, (x i , z i ) are the coordinate values of the structured light measurement data in the x and z directions at the i-th point, and k 1 , k 2 , and k 3 are constants, which can be analyzed according to the sample data, and through a large number of Experiments in the actual situation are verified to ensure that the data segmentation on the same arc is correct. Figure 3 is a schematic diagram of the result of arc segment segmentation on a section, and the + sign in the figure indicates the starting point and end point of each segmented arc segment.
但由于测量数据中存在大量噪声,使得一段圆弧被分为两段或多段,影响接下来的圆弧拟合过程。数据分割过程受到的噪声干扰包括大噪声和小噪声,其中,大噪声是指对于第i点处的结构光测量数据(xi,zi),若其与目前圆弧上最后一点处的结构光测量数据在z方向差值的绝对值大于某数,则认为该处是大噪声;小噪声是指对于第i点处的结构光测量数据(xi,zi),若其与目前圆弧上最后一点处的结构光测量数据方向差值的绝对值小于某数,则认为该点是小噪声点。因此应该排除满足以下条件的噪声数据的干扰,继续圆弧分割过程,即:However, due to the large amount of noise in the measurement data, an arc is divided into two or more segments, which affects the subsequent arc fitting process. The noise interference in the data segmentation process includes large noise and small noise. The large noise refers to the structured light measurement data (x i , z i ) at the ith point, if it is the same as the structure at the last point on the current arc. Light measurement data If the absolute value of the difference in the z direction is greater than a certain number, it is considered to be large noise; small noise refers to the structured light measurement data (x i , z i ) at the ith point, if it is the same as the last one on the current arc Structured light measurement data at one point If the absolute value of the direction difference is less than a certain number, the point is considered to be a small noise point. Therefore, the interference of noise data that meets the following conditions should be excluded, and the arc segmentation process should continue, namely:
其中,为目前圆弧上最后一点处的结构光测量数据在z方向上的坐标值,k4、k5是常数,可以根据对样本数据进行分析,并通过大量实际情况下的实验进行验证,排除噪声的干扰,从而保证数据分割正确。本文定义满足(4)式的数据为大噪声,满足(5)式的数据为小噪声。in, are the coordinate values in the z direction of the structured light measurement data at the last point on the current arc, k 4 and k 5 are constants, which can be analyzed according to the sample data and verified through a large number of experiments under actual conditions to eliminate noise interference, so as to ensure the correct data segmentation. In this paper, the data satisfying the formula (4) is defined as large noise, and the data satisfying the formula (5) is small noise.
3.圆弧拟合3. Arc fitting
如果同一段圆弧上数据的点数满足以下条件则进行圆弧拟合:If the number of data points on the same arc segment satisfies the following conditions, the arc fitting is performed:
n>r/Tsample (6)n>r/T sample (6)
n<2*r/Tsample (7)n<2*r/T sample (7)
其中,n为同一段圆弧上数据的点数,r为圆弧半径,Tsample为轴向扫描步长。本文采用高斯-牛顿迭代法拟合圆弧圆心。标准圆的表达式为:Among them, n is the number of data points on the same arc, r is the radius of the arc, and T sample is the axial scan step. In this paper, the Gauss-Newton iteration method is used to fit the arc center. The expression for a standard circle is:
(x-x0)2+(z-z0)2=r2 (30)(xx 0 ) 2 +(zz 0 ) 2 =r 2 (30)
式中,x、z为圆上的点坐标,x0、z0为圆心坐标。令In the formula, x and z are the coordinates of the point on the circle, and x 0 and z 0 are the coordinates of the center of the circle. make
f(x0,z0)=(x-x0)2+(z-z0)2 (31)f(x 0 ,z 0 )=(xx 0 ) 2 +(zz 0 ) 2 (31)
那么高斯-牛顿迭代法通过使下述表达式取得最小值得到圆心坐标(x0,z0),即Then the Gauss-Newton iteration method obtains the coordinates of the center of the circle (x 0 , z 0 ) by taking the minimum value of the following expression, namely
其具体步骤如下:The specific steps are as follows:
第一步:设置x0、z0的初始值,其中x0为圆弧上数据x方向上的平均值,z0为圆弧上数据z方向上的最大值减去圆弧半径,即Step 1: Set the initial values of x 0 and z 0 , where x 0 is the average value of the data on the arc in the x-direction, and z 0 is the maximum value of the data on the arc in the z-direction minus the arc radius, that is
第二步:对函数f(x0,z0)关于x0、z0求二阶偏导数,Step 2: Find the second-order partial derivative of the function f(x 0 , z 0 ) with respect to x 0 , z 0 ,
同时令At the same time order
b11Δ1+b12Δ2=B1 (16)b 11 Δ 1 +b 12 Δ 2 =B 1 (16)
b21Δ1+b22Δ2=B2 (17)b 21 Δ 1 +b 22 Δ 2 =B 2 (17)
其中,Δ1、Δ2分别为圆心坐标的增量,根据(16)、(17)两式,可得:Among them, Δ 1 and Δ 2 are the increments of the coordinates of the center of the circle, respectively. According to the formulas (16) and (17), we can get:
第三步:更新x0、z0,即:The third step: update x 0 , z 0 , namely:
第四步:计算均方误差:Step 4: Calculate the mean squared error:
如果MS<T,停止迭代,得到圆弧圆心坐标x0、z0;否则转到第二步。其中,T为最大均方误差值。如图4所示为圆弧拟合结果示意图,图中圆形表示分割弧段拟合得到的圆,+号表示拟合得到的圆的圆心。If MS<T, stop the iteration and obtain the arc center coordinates x 0 , z 0 ; otherwise, go to the second step. Among them, T is the maximum mean square error value. Figure 4 shows a schematic diagram of the arc fitting result. The circle in the figure represents the circle obtained by dividing the arc segment, and the + sign indicates the center of the circle obtained by the fitting.
4.圆弧匹配4. Arc matching
设第一个未匹配剖面的所有圆弧圆心坐标为用于匹配的所有圆弧圆心坐标为(x1,z1),(x2,z2),...,(xq,zq),...,(xm,zm)。因此属于同一物体的两个圆弧应该同时满足以下条件:Let the coordinates of the centers of all arcs of the first unmatched section be The center coordinates of all arcs used for matching are (x 1 , z 1 ),(x 2 ,z 2 ),...,(x q ,z q ),...,(x m ,z m ). Therefore, two arcs belonging to the same object should satisfy the following conditions at the same time:
其中,k6、k7是常数,可以根据对样本数据进行分析,并通过大量实际情况下的实验进行验证得到。满足上述两式后,更新用于匹配的圆弧圆心坐标,即:Among them, k 6 and k 7 are constants, which can be obtained by analyzing the sample data and verifying through a large number of experiments under actual conditions. After satisfying the above two formulas, update the arc center coordinates for matching, namely:
5.计算物体三维坐标5. Calculate the three-dimensional coordinates of the object
如果某段圆弧匹配次数等于扫描次数m,那么该段圆弧对应的长圆柱形物体即为候选抓取物体。已知物体抓取位置处的y值,计算离该值最近的两个剖面,得到相应剖面物体对应的圆弧的圆心坐标(x1,z1)、(x2,z2),则存在以下线性关系:If the matching times of a certain arc is equal to the scanning times m, then the long cylindrical object corresponding to this arc is the candidate grasping object. Knowing the y value at the grasping position of the object, calculate the two sections closest to this value, and obtain the center coordinates (x 1 , z 1 ) and (x 2 , z 2 ) of the arc corresponding to the corresponding section object, then there are The following linear relationship:
最后可得y值对应的x、z值分别为:Finally, the x and z values corresponding to the y value can be obtained as:
其中,y1、y2分别为两个剖面对应的y值。Among them, y 1 and y 2 are the y values corresponding to the two profiles, respectively.
6.确定抓取物体标号6. Determine the label of the grasped object
如果从候选长圆柱形物体中确定待抓取的物体的方式是固定的,而这个物体又由于一些原因无法抓取,那么系统就会重复上述过程,陷入瘫痪。因此本文选择随机的方法确定待抓取的物体。如果以下不等式成立:If the method of determining the object to be grasped from the candidate long cylindrical objects is fixed, and this object cannot be grasped for some reason, the system will repeat the above process and become paralyzed. Therefore, this paper chooses a random method to determine the object to be grasped. If the following inequality holds:
那么标号为s的长圆柱形物体即为待抓取的物体。其中,rand()为随机数,z1、z2分别为两个抓取位置处对应的z值,m为候选抓取物体数目。Then the long cylindrical object marked with s is the object to be grasped. Among them, rand() is a random number, z 1 and z 2 are the z values corresponding to the two grasping positions, respectively, and m is the number of candidate grasping objects.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510868428.2A CN106813570B (en) | 2015-11-30 | 2015-11-30 | 3D recognition and localization of long cylindrical objects based on line structured light scanning |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510868428.2A CN106813570B (en) | 2015-11-30 | 2015-11-30 | 3D recognition and localization of long cylindrical objects based on line structured light scanning |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106813570A CN106813570A (en) | 2017-06-09 |
| CN106813570B true CN106813570B (en) | 2019-04-09 |
Family
ID=59108327
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510868428.2A Active CN106813570B (en) | 2015-11-30 | 2015-11-30 | 3D recognition and localization of long cylindrical objects based on line structured light scanning |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106813570B (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110017769A (en) * | 2019-03-12 | 2019-07-16 | 精诚工科汽车系统有限公司 | Part detection method and system based on industrial robot |
| CN110928339A (en) * | 2019-12-09 | 2020-03-27 | 江苏亚太航空科技有限公司 | Automatic feeding control method, device and system |
| CN111402411A (en) * | 2020-04-10 | 2020-07-10 | 贵刚 | Scattered object identification and grabbing method based on line structured light |
| CN111322950B (en) * | 2020-04-17 | 2021-08-17 | 易思维(杭州)科技有限公司 | Method for locating the position of a cylinder using a line structured light sensor and its use |
| CN111474516B (en) * | 2020-04-17 | 2022-01-11 | 华中科技大学 | Multi-level indoor positioning method and system based on crowdsourcing sample surface fitting |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US4491731A (en) * | 1980-06-25 | 1985-01-01 | Fuji Electric Co., Ltd. | Tube wall thickness measurement |
| JPH055608A (en) * | 1991-06-28 | 1993-01-14 | Kawasaki Steel Corp | Method and apparatus for measuring position of circular cross-section object |
| JP2007183225A (en) * | 2006-01-10 | 2007-07-19 | Toyota Motor Corp | Light irradiation apparatus, surface shape inspection system, and surface shape inspection method |
| CN101135550A (en) * | 2007-10-08 | 2008-03-05 | 天津大学 | Measuring method of spatial circular hole geometric parameters based on line structured light vision sensor |
| CN101285680A (en) * | 2007-12-12 | 2008-10-15 | 中国海洋大学 | Calibration Method of Extrinsic Parameters of Line Structured Light Probe |
| CN101387501A (en) * | 2008-10-06 | 2009-03-18 | 天津大学 | Apparatus and method for measuring circular cross-sectional shape and orientation of ultra-large workpiece |
| CN101571379A (en) * | 2009-06-11 | 2009-11-04 | 天津大学 | Method for measuring diameter and straightness accuracy parameters of seamless round steel pipe |
| CN102853762A (en) * | 2012-07-09 | 2013-01-02 | 山西太钢不锈钢股份有限公司 | Method for measuring central position of steel coil |
| CN104021538A (en) * | 2013-02-28 | 2014-09-03 | 株式会社理光 | Object positioning method and device |
| CN104567673A (en) * | 2014-12-26 | 2015-04-29 | 苏州优谱德精密仪器科技有限公司 | Method for measuring circle center position tolerance of workpiece hole |
-
2015
- 2015-11-30 CN CN201510868428.2A patent/CN106813570B/en active Active
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US4491731A (en) * | 1980-06-25 | 1985-01-01 | Fuji Electric Co., Ltd. | Tube wall thickness measurement |
| JPH055608A (en) * | 1991-06-28 | 1993-01-14 | Kawasaki Steel Corp | Method and apparatus for measuring position of circular cross-section object |
| JP2007183225A (en) * | 2006-01-10 | 2007-07-19 | Toyota Motor Corp | Light irradiation apparatus, surface shape inspection system, and surface shape inspection method |
| CN101135550A (en) * | 2007-10-08 | 2008-03-05 | 天津大学 | Measuring method of spatial circular hole geometric parameters based on line structured light vision sensor |
| CN101285680A (en) * | 2007-12-12 | 2008-10-15 | 中国海洋大学 | Calibration Method of Extrinsic Parameters of Line Structured Light Probe |
| CN101387501A (en) * | 2008-10-06 | 2009-03-18 | 天津大学 | Apparatus and method for measuring circular cross-sectional shape and orientation of ultra-large workpiece |
| CN101571379A (en) * | 2009-06-11 | 2009-11-04 | 天津大学 | Method for measuring diameter and straightness accuracy parameters of seamless round steel pipe |
| CN102853762A (en) * | 2012-07-09 | 2013-01-02 | 山西太钢不锈钢股份有限公司 | Method for measuring central position of steel coil |
| CN104021538A (en) * | 2013-02-28 | 2014-09-03 | 株式会社理光 | Object positioning method and device |
| CN104567673A (en) * | 2014-12-26 | 2015-04-29 | 苏州优谱德精密仪器科技有限公司 | Method for measuring circle center position tolerance of workpiece hole |
Non-Patent Citations (1)
| Title |
|---|
| 《利用结构光进行三维测量的新方法》;虞启琏等;《应用光学》;20001231;全文 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106813570A (en) | 2017-06-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106813570B (en) | 3D recognition and localization of long cylindrical objects based on line structured light scanning | |
| CN108182689B (en) | Three-dimensional identification and positioning method for plate-shaped workpiece applied to robot carrying and polishing field | |
| CN110014426B (en) | Method for grabbing symmetrically-shaped workpieces at high precision by using low-precision depth camera | |
| CN110370286B (en) | Recognition method of fixed-axis motion rigid body space position based on industrial robot and monocular camera | |
| CN112907735B (en) | Flexible cable identification and three-dimensional reconstruction method based on point cloud | |
| CN105354880B (en) | A kind of sand blasting machine people's automatic path generation method based on line laser structured light | |
| CN110455187B (en) | A three-dimensional vision-based detection method for box workpiece welds | |
| CN102519400B (en) | Large slenderness ratio shaft part straightness error detection method based on machine vision | |
| CN107671896B (en) | Rapid visual positioning method and system based on SCARA robot | |
| CN111055293A (en) | High-precision constant-force grinding method for industrial robot based on curved surface self-adaption | |
| CN106643551A (en) | Blade shape rapid scanning device and method | |
| Zhang et al. | Stud pose detection based on photometric stereo and lightweight YOLOv4 | |
| Dharmara et al. | Robotic assembly of threaded fasteners in a non-structured environment | |
| CN102785129A (en) | On-line detection method of curved surface machining precision of complex part | |
| CN112964186B (en) | Device and method for measuring clearance in automatic shaft hole assembly process | |
| CN107101582A (en) | Axial workpiece run-out error On-line Measuring Method based on structure light vision | |
| CN112802070B (en) | Aircraft skin local point cloud positioning method based on multi-descriptor voting | |
| CN107388991B (en) | A kind of more fillet axial workpiece radius of corner measurement methods in end face | |
| CN108827187A (en) | A kind of measuring system for workpiece progress measuring three-dimensional profile | |
| CN113532328A (en) | Surface profile real-time measurement system and method in medium plate straightening process | |
| CN207881649U (en) | A kind of rotary double excitation contour outline measuring set | |
| CN103810676B (en) | A kind of monitoring method of the steel pipe speed of service | |
| CN106444774B (en) | Visual navigation method of mobile robot based on indoor lighting | |
| Cheng et al. | Anomaly detection of tire tiny text: Mechanism and method | |
| Chen et al. | Flatness measurement of platform screen system welding assembly using stereo vision and grid pattern projector |
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 |