Next Article in Journal
An Unsupervised Learning-Based Spatial Co-Location Detection System from Low-Power Consumption Sensor
Previous Article in Journal
Multielement Ring Array Based on Minute Size PMUTs for High Acoustic Pressure and Tunable Focus Depth
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Laser Scanning and Parametrization of Weld Grooves with Reflective Surfaces

Department of Mechanical and Industrial Engineering, Norwegian University of Science and Technology (NTNU), 7034 Trondheim, Norway
*
Author to whom correspondence should be addressed.
Sensors 2021, 21(14), 4791; https://doi.org/10.3390/s21144791
Submission received: 24 June 2021 / Revised: 8 July 2021 / Accepted: 11 July 2021 / Published: 13 July 2021

Abstract

:
This paper presents a novel weld groove parametrization algorithm, which is developed specifically for weld grooves in typical stub and butt joints between large tubular elements. The procedure is based on random sample consensus (RANSAC) with additionally proposed correction steps, including a corner correction step for grooves with narrow root weld, and an iterative error elimination step for improving the initially obtained data fit. The problem of curved groove sides (due to the pipe geometry) is attributed and solved. In addition, the procedure detects and eliminates several types of data noise due to laser line reflections. The performance of the procedure is studied experimentally using small-scale test objects, which have been ground using typical industrial power tools to achieve a realistic level of reflections. The execution times and data fit errors of the proposed procedure are compared to a procedure based on a more conventional RANSAC approach for line segment detection.

1. Introduction

Welding is an important manufacturing process for steel components and structures. Welding is often done by manual labor, especially for complex welding processes, complex interface geometries, and welds with high quality requirements. Alternatively, welding automation using robotic arms (i.e., robotic welding) can be used for products welded at factories. Robotic welding is relatively easy to implement for production lines with standard products with known geometry and small welds with few beads in the weld cross-section. However, robotic welding becomes more challenging when large components have to be welded together. This is due to larger geometrical deviations of components and large welds required to connect them. In such applications, scanning and parametrization of weld grooves is a vital step before welding can start. In this work, we propose an algorithm for precise parametrization of weld grooves at interfaces between large tubular joints when a 2-dimensional (2D) laser scanner is used.
Various types of sensors can be used in robotic welding. The common application areas are seam tracking, weld pool monitoring, quality inspection, weld position identification, and groove geometry extraction. When the set of parameters in the extracted features is sufficient to describe a weld groove section uniquely, then the process of feature extraction can also be referred to as weld groove parametrization. Typical sensor technologies are ultrasound sensors [1], infrared sensors [2], arc-sensing [3], magneto-optical sensors [4], and computer vision sensors [5,6].
Computer vision sensors are often used for weld groove (or weld seam) tracking, feature extraction, or groove geometry parametrization. Although, in some applications, analysis of global 3-dimensional (3D) point clouds [7,8,9] or passive light systems [10] can be used for global weld seam detection, most of the research in weld seam tracking and groove feature extraction is done using local structured light sensors. That is, sensors projecting structured light into the region of interest (ROI). Structured light sensors are especially efficient when high-precision groove parametrization is required [11]. The reader can find more information on the application of different structured light sensors to robotic welding in the recently published review article [5].
Line laser triangulation sensors are a type of structured light sensors where the projected light is a line. Such sensors can scan one weld groove section at a time. The groove parametrization task can then be defined as a replacement of all scanned data points with a small set of parameters. One reasonable set of such parameters are the coordinates of corner points in the groove section [12]. A simple way to detect the corners is to identify points where the direction of the profile changes by using the gradient. This was done in [13], where the authors applied the technique to V-grooves (or U-grooves). A similar feature extraction technique for V-grooves using averaged slope between four consequent points was presented in [14], where the least-square method was additionally used to improve the location of corner points. Another corner detection algorithm based on the first and second derivatives with the Gaussian filter was suggested in [15]. Alternatively, a template matching method can be used for groove geometry parametrization. The method allows for missing data recovery, which is especially important for missing corners of a V-groove [16]. Parametrization of weld grooves can also be done using random sample consensus (RANSAC) [10,17,18]. The groove corner detection based on RANSAC consists of the following steps. First, a point pair is randomly selected from the entire dataset, then the points close to the line (inliers) through the point pair are identified. These two steps are repeated for several iterations until the fit with the most inliers is found, then a line segment is defined using the best inlier set. Once all line segments are found, then groove corners are found as intersections between the line segments.
When weld grooves in large tubular joints are scanned and parametrized, two main joint types should be taken into consideration. These are butt joints with a typical V-groove and stub joints (or T-joints) with an asymmetric weld groove with one side being curved (due to the pipe geometry) [19]. The online weld seam tracking technique was proposed and tested for large tubular joints in [20], where the pipes were interfaced and welded with a fillet weld (i.e., without a pre-machined weld groove). A similar work for the intersection between a pipe and a sphere was presented in [21], where the problem of curved groove sides was discussed. In the case of multi-pass welding, the groove around the whole joint should be first scanned and parametrized offline before the welding can start. This is due to non-uniform welding grooves with a varying number of beads required in each scanned groove section [22,23,24].
Commonly, weld grooves are ground before welding, which means that the groove steel surface can be very reflective, and the groove parametrization algorithms have to be able to handle some data noise. When laser triangulation sensors are used, noise can be handled at two levels: the camera image level and the point cloud level [25]. If there is access to raw image data, noise filtering at the image level is possible [14,16,26,27]; alternatively, noise can be removed at the level of the final dataset (the triangulated 2D point cloud level) [13,28]. The latter case is more practical when the commercial sensors with partially closed interfaces are used.
Although a lot of research has been done on weld groove (or weld seam) parametrization (i.e., feature extraction), most of the research has dealt with V or U-grooves. In addition, little attention had been paid to the cases with strong surface reflections and high levels of data noise. In this paper, we propose a novel procedure for parametrization of weld grooves commonly used in stub or butt joints of large tubular elements. The algorithm takes a triangulated 2D point cloud from a commercial line laser sensor as an input and returns the corners points of a groove. The proposed procedure is based on a RANSAC search, where we propose several additional correction steps to obtain a better data fit and enable effective performance for grooves with narrow root welds. The procedure can also detect some forms of data noise caused by laser line reflections on the ground steel surface. The advantage of the procedure is that it does not require prior knowledge about the groove geometry, and it is faster than the conventional RANSAC approaches for groove parametrization. The procedure is directly applicable to commercial laser triangulation sensors (where raw image data might not be available), which facilitates easier industrial implementation.
The rest of this paper is organized as follows. Section 2 presents the system under consideration, as well as the equipment and material used. Section 3 gives detailed derivations of the proposed method. Section 4 shows the experimental results, while the discussion on their significance and comparison of the proposed procedure and a more conventional RANSAC approach for line segment detection is given in Section 5. The conclusion and future work considerations are given in Section 6.

2. Materials and System Description

The system under consideration is a commercial line laser triangulation sensor and several different steel test objects with a weld groove between the plates, see Figure 1.
The sensor used in the tests is the Micro-epsilon scanCONTROL 2610-100 (produced by MICRO-EPSILON MESSTECHNIK). The sensor has a 658 nm red laser with 8 mW power output. The default settings are used without the pre-programmed cross-section templates. The output of the sensor is an array of 640 points in R 2 , formatted as an array of 640 × 2 floating-point numbers.
The test objects are steel plates (flat and cylindrical) welded together with different widths of the root welds and two different plate arrangements. The thickness of the flat plates is 22 mm and the thickness of the cylindrical plates is 20 mm, while the radius of the cylindrical plates is 600 mm. The material of the plates is S420G2+M according to EN 10225:2009. This is a typical material of tubular elements used for production of offshore jacket structures. The test objects are made to represent typical sections of tubular stub and butt joints. The first arrangement is typical for stub joints (a), (b) (where the leg plates are cylindrical) and the second arrangement is typical for butt joints (c) between large pipes, see Figure 2.
The test objects are ground similarly as they are in industrial situations, using the same type of power tools. The weld groove in the test objects (a) and (b) have different root conditions: from no root weld to step-wise increasing root weld. The test object (c) covers the cases with no root weld and a small (one weld pass) root weld. The scope of this work is limited to the cases with a ready-made root weld or with a backing weld, i.e., without a gap between plates. In practice, the root weld for very large pipes is expected to be welded manually due to large deviations in the pipe fit. Such root welds are preferred to be as small as possible (preferably one weld pass), but due to the larger gaps, they can require several weld passes, leading to wider root welds. Therefore, weld grooves with several different root weld widths are tested in this work.
In a typical industrial setup, such a sensor is fixed to a robot end-effector to perform scanning tasks. In this work, however, we propose the analysis algorithm for the obtained data, and, therefore, the sensor is hand-held for simplicity. The sensor obtains data points given in the coordinates of the sensor fixed frame, which is denoted Frame 0. This frame is oriented such that the x y -plane lies in the projected laser plane.
The goal of this work is to process the obtained data points and parameterize the weld groove. The parametrization is done in terms of the corner points of the weld groove.

3. Theoretical Basis of the Method

3.1. Geometrical Definitions

In this section, we present the geometrical objects which are used in the proposed algorithm. The main properties of those objects are also presented.
The first object we define in this section is a set of points (or a point set). The examples of point sets are given in Figure 3, where different colors are used to distinguish between them. A point set i given in the coordinates of Frame k is defined as
S i k = p i 1 k p i 2 k p i n i k R 2 × n i
where p i j k is the j-th point in the set i given in the coordinates of Frame k and n i is the number of points in the set.
The set (1) can be expressed in the coordinates of Frame l as
S i l = R k l S i k
where R k l SO ( 2 ) is a rotation matrix from Frame l to Frame k [29]. The set S i k has a center of mass point (CoM), which, when given in the coordinates of Frame k, is defined as
m i k = j = 1 n i p i j k n i .
The point set S i k is also equipped with a line fit obtained by linear regression, such a line fit is denoted L i k . The line fit can be represented as a typical line equation y = a i x + b i , where a i is the first-order coefficient, and b i is the zero-order coefficient.
The main object used in the RANSAC search (presented in Section 3.2) is a 2-dimensional (2D) line segment. A line segment i (see Figure 4) is defined by the start point p s i and the end point p e i , while the center point is defined as p c i = 0.5 ( p s i + p e i ) .
A line segment has the unit direction vector v i , the length l i , and the local coordinate Frame l i . Frame l i is located such that the x-axis is along with v i , and p s i is the origin. An important property used in the RANSAC search is a point-to-segment distance used to identify inliers. The distance from the point p j to the segment i is defined as follows
d j i = | p j , y l i | , if p j , x l i 0 and p j , x l i l i p j l i , if p j , x l i < 0 p j l i p e i l i , if p j , x l i > l i
where p j l i is a point in the coordinates of l i , p j l i = [ p j , x l i , p j , y l i ] T , · is the Euclidean norm and | · | is the absolute value operator. In addition to the point-to-segment error, we will also use point-to-line errors attributed to segment i. This means that a line is defined using p s i and p e i , and the shortest distance from a point to that line is used as an error. A point-to-line error for a segment i is defined as
d l , j i = | p j , y l i | , p j , x l i .
The points located close to the line segment are classified as inliers if the distance to the segment d i n is less or equal to the inlier tolerance d ¯ i n , see Figure 5.
In this work, we use the point-to-line error metrics (5) in the initial RANSAC search (Section 3.2.1), and point-to-segment error metrics (4) in the iterative error elimination step (Section 3.2.4).
Another object used in this work is a T-joint (or a stub joint) 2D groove profile and a V-groove profile from a butt joint. A typical model describing a groove profile with a root weld is shown in Figure 6.
A weld groove i consists of the corner points p g j , i , which can also be represented by the sequentially connected line segments. For a stub joint groove it leads to the following definition of segment start and end points
p s 1 = p g 1 , i , p e j = p s j + 1 = p g j + 1 , i for j = 1 , 2 , 3 , p e 4 = p g 5 , i .
The segment points for a butt joint groove are defined similarly.

3.2. Detection of Weld Groove Corners from Noise-Free Data

The corner detection method presented in this section is a three-step algorithm. In the first step, the sequential RANSAC procedure for finding line segments is implemented. This gives a roughly good fit, which has varying quality due to the random nature of RANSAC. In the second step, after each completed RANSAC search, it is checked if a found segment has assigned corner points belonging to the next segment; if so, those points are removed, and the segment is updated. An assigned point is a point defined as an inlier of the current segment and is removed from the remaining points of the dataset. In the third step, an iterative error elimination algorithm is implemented for the entire groove profile model. This step provides the final correction of the RANSAC fit.

3.2.1. Sequential RANSAC

The sequential RANSAC for detecting line segments from the sensor data is implemented utilizing the expected data structure. Specifically, we use the fact that all line segments should be sequentially connected and each point from the dataset has a unique x 0 coordinate. The line segments are searched in the direction from negative to positive x 0 .
The procedure starts by assigning a start point for the first segment p s 1 , which is the point with the smallest x 0 coordinate. Then a random point p r , chosen through several iterations until the line fit with the most inliers, is found, see Figure 7.
The segment is then defined by the first and the last points in the inlier set, where the inliers after the first detected gap along the x 0 axis d g , i n (see Figure 5) larger than the gap tolerance d ¯ g , i n are not included in the segment definition. Then, the next point after p e 1 is assigned to be p s 2 , all inliers of segment 1 are removed from the dataset, and the RANSAC search is done for segment 2. This loop is repeated until the condition for the minimum number of remaining points in the dataset is met.

3.2.2. Merging and Intersecting Segments

The direction vector v i of every newly found segment i is compared to the direction vector v i 1 of segment i 1 . Segments i and i 1 are merged if the angle between the direction vectors α i , i 1 is small (i.e., within the defined tolerance α ¯ i , i 1 ). This is demonstrated for segments 1 and 2 in Figure 8.
If the angle α i , i 1 is outside the tolerance α ¯ i , i 1 , then the point of intersection between segments i and i 1 , p i n t , i , i 1 , is found and the start point of i is reset as p s i = p i n t , i , i 1 , see Figure 9.

3.2.3. Correction of Assigned Corners

All points in the set of inliers attributed to a certain line segment can be referred to as points assigned to that line segment. The assigned points are removed from the overall dataset and will not be used in the further segment search.
Consider a line segment i is being found. Then there are some points belonging to segment i + 1 that will be assigned to segment i due to the inlier tolerance d ¯ i n . Those points are referred to as assigned corner points or just an assigned corner. If segment i + 1 is relatively short, then a corner assigned to segment i can cause problems searching segment i + 1 . This, for example, is a common situation for grooves with a narrow root weld. To avoid the above-described problem, we propose an intermediate step in the search algorithm, where the corner points assigned to segment i are returned to the overall dataset. The procedure is graphically demonstrated in Figure 10.
First, the line segment i is found (Figure 10a). Then the inlier coordinates are converted to the local coordinate system of the segment, the coordinates of the points are normalized along the x axis, and a line model fit is found (Figure 10b). If a corner of the next element is assigned, then the absolute value of the first-order coefficient of the line model is | a i n , i | > 0 . Then the inliers are removed from the end of the array until the acceptable limit of a i n , i is reached (Figure 10c). In the final step, the line segment is reformulated using the newly defined last assigned point (Figure 10d), and the RANSAC search of the next line segment starts.

3.2.4. Iterative Error Elimination

In the previous data analysis steps, line segments and groove corner points were defined sequentially by analysing only one segment at a time. It is, however, possible to improve the groove profile fit when the entire profile model is analyzed together with the dataset taking into consideration the relative geometric connections between segments. Therefore, we propose an iterative corner error elimination step for the entire groove model. The schematic representation of the input data with rounded corners and the groove profile fit before and after the iterative error elimination is shown in Figure 11.
First, the points are divided into point sets depending on the segment that is the closest, i.e., the point j belongs to the point set i when
p j S i if d j i = min ( d j i ) i
where d j i is given in (4) and min ( d j i ) i is the operator which returns minimum d j i for all i. For each point set i the CoM m i 0 and the line fit L i 0 are obtained, both in the coordinates of Frame 0, see Figure 12.
Then segment i moved by the vector
e i 0 = R l i 0 N y R 0 l i ( m i 0 p c i 0 )
where p c i 0 is given in Figure 4 and
N y = 0 0 0 1 .
After the translation (8) the segment is rotated about p c i 0 such that v i is aligned with L i .
Consider a case with only three segments and two corners for simplicity, then two iterations of the above shown alignment are graphically shown in Figure 13.
The first iteration starts. The points are divided into point sets using (7), which is shown in three different colors. Then, the translation (8) (for i = 1 ) and the rotation to the line fit L 1 is applied for segment 1. The start point of line segment 2 p s 2 is aligned with the new position of p e 1 , and the translation (8) (for i = 2 ) and the rotation to the line fit L 2 is applied for segment 2. The same operation is done for segment 3. The second iteration starts. The points are divided into point sets again, considering the new locations of the segments and the alignment is done for all three segments again. The procedure normally gives reasonable results after 4–5 iterations. Alternatively, a loop exit condition can be defined based on the convergence threshold for the position of the segment end points.

3.3. Detection of Weld Groove Corners from Noisy Data

This section further develops the procedure presented in Section 3.2. In this section, the data noise due to reflections in the polished steel surfaces is taken into account.
After each line segment is found, the algorithm performs a check if there is reflection noise after the line segment. If no noise is detected, the RANSAC search of the next line segment starts. If the noise is detected, then the first non-noisy point is sought, and the RANSAC search of the next line segment starts from that point. The details of the procedure are given in the following subsections.

3.3.1. Noise Detection

In Section 3.2.1, it was described that the end of a line segment is determined by the gap between inliers being larger than the defined gap tolerance. This can happen due to partly missing data or when the data point deviates outside the inlier tolerance. This deviation can be just due to the shape of the point cloud (see Figure 8), and it can be caused by noise in the data. Therefore, after each line segment is found, a check for noise is performed.
When a laser is pointed at shiny reflective surfaces, the projected laser line is reflected (sometimes several times), producing light pollution around the true laser line projection, see Figure 14.
This light pollution causes difficulties for the sensor algorithm to identify the true laser line projection, and, therefore, such line pollution is referred to as noise in this work. The noise causes the data points to deviate from their true locations in the final 2D data output of the sensor. Such noise is rather difficult to predict, since it varies depending on the scanned surface finish and the geometry of the groove. However, arrays of consequent noisy points in most of the cases have different geometrical structures, comparing to the noise-free points. In this subsection we propose several metrics M : R 2 × R which can be used to identify noisy points from the noise-free points.
The first noise detection check is based on the maximum relative y 0 -distance between the two neighboring points. Consider that any point of S i 0 has the coordinates p i j 0 = [ x i j y i j ] T , then
Δ p i j 0 = y i j y i , j 1 x i j x i , j 1
is the relative y-gap between the points, and the condition is given as
max ( Δ p i j 0 ) j \ 1 > d ¯ n 1
where d ¯ n 1 is the relative gap condition tolerance. Another condition on the relative y-gap size inconsistency is defined as
j = 2 n i 1 Δ p i j 0 Δ p i , j 1 0 n i 2 > d ¯ n 2 .
The noise detection checks are performed over a set of consequent points S i = [ p i 1 p i n i ] , where the number of points in the set is a parameter, see Figure 15a.
If the noise is detected in the set S i , then a new set S i + 1 is checked for noise, see Figure 15b. The first point in the set S i + 1 is selected to be p i + 1 , 1 = p i n i . This process continues until a noise-free set is found. When the first noise-free point set is found, then the first point of the set is used for the RANSAC search of the next line segment, see Figure 15c. The flow diagram of the procedure is shown in Figure 16.

3.3.2. Iterative Error Elimination for Noisy Data

The iterative error elimination procedure for noisy data is essentially the same as described in Section 3.2.4. However, the difference is that all the points from the noisy point sets S i 0 are removed from the original dataset. Then the iterative error elimination procedure is initiated.
It is worth noting that if the data contains a lot of noise, then the iterative error elimination procedure can result in divergence from the best-fit groove corner position. This happens due to a lack of data points, which gives a poor line fit. This means that the procedure should be avoided when very noisy data are analyzed.

4. Experimental Results

In this section, the performance and precision of the weld groove parametrization algorithm are studied using the data obtained experimentally by scanning the test objects shown in Figure 2. The performance of the proposed algorithm is evaluated using two parameters. The first one is the execution time t e x (wall-clock time is used). The second one is the average relative distance d e , i of the points in S i to the found segment i, where S i is a set of points with the shortest distance (4) to segment i compared to the other segments (7). Both the execution time and the fit error were calculated for 10 consequent runs of the algorithm to simulate scanning multiple sections along the weld groove. The algorithm is implemented in Python and is run on a notebook computer with the Ubuntu operating system, 2-core Intel Core i7 CPU, and 16 GB of RAM.
The data were sampled by a hand-held sensor. The orientation of the sensor was selected and altered such that it was possible to capture various types of noise, as well as collect the data without noise. First, the scanned data without noise is analyzed and the discussion on different functionality of the proposed groove parametrization procedure is presented. Then, the data with various typical types of noise caused by reflections are analyzed. Three main noise groups are defined in this work: N1—noise on the outer surfaces, N2—noise in the corners, and N3—noise inside the groove. The datasets analyzed are summed up in Table 1.

4.1. Results Using Noise-Free Data

4.1.1. Stub Joints

The scope of this part of the experimental program was to demonstrate the performance and speed of execution of the proposed groove parametrization algorithm when applied to stub joint grooves. The root widths of 0, 3, and 11 mm were considered.
First, the performance of the groove parametrization algorithm was studied using the case of a groove without a root weld (i.e., 0 mm root weld), which was a relatively simple case. The scanned data were denoted as dataset 1. The dataset was of good quality with distinct sharp corners, which gave good groove parametrization results, see Figure 17.
The blue corner dots in the graph show the result before the iterative error elimination procedure (see Section 3.2.4) and the red dots show after. The last segment of the section was shortened to 30 mm, and then the iterative error elimination step was applied. This was necessary since the last side of the groove was curved (due to the geometry of stub joints), and the best line fit was obtained locally in the groove. The quantitative evaluation of the parametrization results is given in Table 2, which shows maximum, minimum, and mean execution times and segment fit errors for 10 consequent algorithm runs for the same dataset.
The mean execution time was measured to be 0.061 s, which gives above 16 scans per second. Provided that the entire weld needs to be scanned discretely every 20–30 mm along its length, such execution speed would allow for an approximate scanning capacity of 400 mm/s. Such scanning speed is several times above the practical scanning speed in the industry. The average point-to-segment error among all segments was within 0.034 to 0.070 mm, which was a very good segment-to-data fit. It is also notable that the maximum, minimum, and mean results were consistent over 10 algorithm runs due to the good quality of the scanned data.
The next analyzed dataset (dataset 2) was obtained by scanning the groove with a 10 mm root, see Figure 18.
The results showed a clear improvement of the groove parametrization after the iterative error elimination step, which is also reflected in Table 2. The mean execution time was 0.092 s, which was slightly higher than in the previous case. This was due to one extra segment compared to the case without a root weld. The average point-to-segment error after the iterative error elimination step was relatively consistent over 10 algorithm runs. However, the average point-to-segment error before the error elimination procedure was significantly higher and was inconsistent from run to run. This demonstrates the benefit of using the iterative error elimination procedure.
The next test was performed for the groove with a 3 mm wide root weld (the dataset 3). Parametrization of grooves with a narrow root weld is a more complex task, since the algorithm can neglect the root by assigning its point as inliers to the neighboring groove sides. Therefore, the correction of assigned corners procedure (see Section 3.2.3) was introduced in the algorithm. This correction prevents the points of the next segment from being assigned as inliers of the current segment. The results of the parametrization are shown in Figure 19 and the quantitative results are given in Table 2.
The mean execution time was 0.126 s, which roughly corresponded to 200 mm/s available scanning speed. The point-to-segment errors were similarly low compared to the previous tests. To demonstrate the importance of the correction of assigned corners procedure, the results for datasets 2 and 3 without the correction step are presented in Figure 20.
For the case with a 10 mm root, it is seen that the blue dots are located well after the corners. In that case, the iterative error elimination step corrected that error, moving the corner points to their realistic positions (the red dots). In the case with a 3 mm root (to the right), it is seen that the root segment was not detected at all, and the iterative error elimination procedure is not designed to correct such errors.

4.1.2. Butt Joints

The weld groove parametrization procedure presented in this work was originally developed for stub joints. In fact, the procedure is independent of the groove configuration. In this subsection we demonstrate that it can also be efficiently applied for the weld grooves in butt joints.
The tests with a butt joint groove were performed for the case without root weld (i.e., 0 mm root) and the case with 7 mm root weld, using datasets 4 and 5 (see Table 1). The results are given in Figure 21.
The execution times and average point-to-segment errors for 10 sequential runs are given in Table 3. The execution times were in accordance with the results obtained from scanning stub joint grooves, taking the number of segment into consideration. The average point-to-segment error was of a similar magnitude comparing to previous results, as well as the error was relatively consistent over the 10 algorithm runs. The slightly higher average error of 0.160 mm was observed for segment 3 (dataset 5) in Table 3 due to the convex shape of the root weld. The slightly higher inconsistency between the maximum and minimum values is also attributed to the same reason.

4.2. Results Using Noisy Data

In this subsection, we study the performance of the algorithm using datasets with noise caused by reflections. The data noise caused by reflections can be different in structure and intensity, and can be located in different places. This depends on the surface treatment and laser pointing angle. In this work, we used test objects with surfaces machined using the same type of power tools as used in the industry, and the laser pointing angle was selected freely to obtain datasets with various types of noise. Data noise was classified into 3 different groups (N1, N2, and N3) depending on the noise location. The groups are described in the introduction to Section 4. Two datasets from each noise group were tested in this part of the experimental program. The quantitative evaluation of the algorithm performance was given in terms of the maximum and mean values. Only root weld widths of 0 and 3 mm were considered, as the primary focus of this subsection is studying the performance of the algorithm with different types of noise. Only tests with stub joint grooves were considered here. The test results with butt joint grooves along with the comparison to a more conventional RANSAC groove parametrization algorithm will be presented in the next section.
First, datasets 6 and 7 were analyzed, see Table 1. The data contained noise on the outer plate surfaces, i.e., the noise of type N1. The parametrization results are shown graphically in Figure 22, and the quantitative results are given in Table 4.
The grey color in the graphs indicates the points identified as noise by the noise detection algorithm. The mean execution time was within 0.126 to 0.139 s, which was similar to the results using the noise-free dataset 3. The average point-to-segment error among all segments was within 0.039 to 0.258 mm, which was higher than the errors using the noise-free datasets. This could be explained by the minor noise, which was within the segment inlier tolerances and was not identified as noise by the noise detection algorithm. Such minor noise caused larger distances from the points to the found segment, which led to larger point-to-segment errors. It is also notable that the maximum and mean results were relatively consistent over 10 algorithm runs.
The next datasets analyzed (datasets 8 and 9) were selected based upon their containing corner noise (i.e., type N2). The results showed that it was possible to identify the corner noise and locate the missing groove corner, see Figure 23 and Table 4. The noise did not affect the mean execution times, which were within 0.061 to 0.108 s. The average point-to-segment errors were within 0.044 to 0.160 mm, which were of the same magnitude as in the previous cases.
The two last noisy datasets (datasets 10 and 11) were selected to include the N3 noise, which is the noise inside the groove. The results are plotted in Figure 24. The weld groove, in this case, was without a root, which was selected based on groove grinding conditions in the available test objects giving the best examples of the N3 noise.
The N3 noise is different from the N1 and N2 types since it is mostly caused by the dominant part of spread reflections towards the other wall of the groove. This means that the noisy points are not necessarily located chaotically in the y 0 direction (see, for example, Figure 22). The noisy points can, alternatively, form rather well-structured line segments in the false locations, see the graph to the right in Figure 24. In this case, the only effective noise detection condition is (11). Regardless of the more complex noise detection problem, the execution times and the average point-to-segment errors were similar to all other cases considered in this subsection, see Table 4.

5. Discussion and Comparison to the Conventional RANSAC Algorithm

In this section a discussion on the advantages and disadvantages of the proposed procedure compared to the recently published methods is given. In addition, the proposed procedure is compared to a groove parametrization procedure based on the conventional RANSAC approach for line segment search.
Recently, several methods have been proposed for weld seam tracking, where weld seam or weld groove parametrization (feature extraction) was a part of the procedure. In most of the proposed methods groove parametrization was done at the camera image level, i.e., using camera image points or pixels [14,16,26,27]. Image points can be seen as raw data, which gives more flexibility in choosing filtering, processing and parametrization techniques. In our work the proposed procedure used triangulated sensor points for analysis, i.e., 2D points given in the coordinates of local sensor coordinate frame. This can be advantageous if access to raw image data is not possible, when commercial line laser sensors are used. Some methods using triangulated points have been also previously reported (e.g., [13]), however the methods did not include strong data noise caused by the reflections of a laser.
Processing noisy data has been an important part of the recent developments. It is, however, worth noting that the recent methods have mostly been made for online seam tracking where arc and splashing noise was a central problem. It is beneficial for robotic welding when scanning and welding can be done simultaneously. In the case of a stub joint, it is more reasonable to scan and parameterize the entire weld groove and then generate motion paths for a welding robot. This is justified by the fact that the interface between elements in a stub joint is rather complex, which leads to the groove with variable number of weld layers and beads along the weld. In such cases, it is more reasonable to plan the entire multi-pass weld before the welding of the first bead starts. At the same time a groove has to be ground just before welding to remove rust and dust. Then the noise caused by laser reflections is a dominant noise problem, while results in Section 4 revealed that the noise can be quite severe.
As in our work, a set of groove corner points is often selected as a parametrization basis in the previously reported methods. The dominant approaches for groove parametrization are the methods based on gradients, which can be both of the first-order or the second-order, or various combination of both [13,14,15]. These approaches proved to be fast enough to be used in real-time weld seam tracking. The results reported in Section 4 suggest that the proposed method is running at approximately 10 Hz, which can be too slow for some real-time seam tracking. On the other hand, due to the nature of data gradient functions, the obtained parametrization results might be poor for triangulated points with a lot of data noise.
The parametrization methods which are the closest to the proposed procedure are the more conventional RANSAC approaches for line segment detection [10,17]. RANSAC uses model fitting, and can be effective even with very noisy data. Therefore, RANSAC was selected as a basis for the proposed method. When used with noise-free data, RANSAC can effectively detect lines and line segments without prior knowledge of the weld groove geometry [17]. In the presence of strong data noise, RANSAC would also detect line segments from noisy points or line segments deviated by noise. Then, pre-knowledge of the groove geometry is required to filter out the line segments from noisy points. In this work we propose a procedure for the precise parametrization of weld grooves from triangulated points with strong data noise, and, therefore, we suggest that comparing our approach with the conventional RANSAC line segment detector is a relevant addition to our experimental investigation. The comparison is presented in the rest if this section.
Summing up, the advantages of the proposed procedure are:
  • Can be used with commercial sensors where only triangulated data points are available;
  • Can be used with strong data noise, cause by laser reflections;
  • Can be used for grooves in both stub and butt joints;
  • Does not require pre-knowledge of the weld groove geometry,
while the disadvantages compared to the recent works are:
  • Might be too slow for some real-time robot path generators;
  • Does not account for a gap between plates;
  • Is not developed to filter out arc and splash noise.
Given the advantages and disadvantages above, the proposed procedure is relevant in terms of the industrial implementation as a part of the robotic welding system for large tubular joints.

5.1. Conventional RANSAC Algorithm

This method is based on the conventional RANSAC approach for searching line segments. Therefore, a term conventional was adopted. The algorithm used here is similar to that implemented in [17], with some more logic implemented for analyzing grooves with narrow root welds and filtering out the line segment found from noisy points. The procedure consists of the following steps. First, a point pair is randomly selected from the entire dataset, then a line is defined through the selected points. Next, the points within the defined margin to the line (inliers) are identified, and the largest line segment on the line is found. These steps are repeated for a number of iterations until the segment with the most inliers is found, then a line segment is defined using linear regression for the best inlier set. Once all line segments are found (i.e., the condition for min number of the remaining points is met), groove corners are found as intersections between the line segments, which correspond to the pre-defined groove opening angle. Additional logic is implemented to search for a root weld in a groove before the groove side walls, This way, it is ensured that narrow root welds will not be neglected. It is noted that the conventional RANSAC algorithm does not need pre-knowledge of groove geometry to detect line segments. That knowledge is, however, required for filtering out the line segments detected from noisy points.

5.2. Comparison of Experimental Results

Comparison of experimental results from the proposed and conventional RANSAC procedures was made using an example of a V-groove, which is typical for butt joints, which means that the test object c ) was used (see Figure 2). The results are compared in terms of the execution time and average point-to-segment errors.
Comparison of the results for dataset 5 was made using the mean dataset 5 values only from Table 3 and the mean results using the conventional RANSAC approach, which is summed up in Table 5.
It is noted that for the other datasets used for the comparison, we will not provide the explicit results with the maximum, minimum, and mean values, but rather give a similar summary table with mean values only. The results given in Table 5 showed a clear advantage of the proposed method in terms of the execution time, which was 0.142 s compared to 1.886 s from the conventional approach. The execution time was the average value per run over 10 consequent runs. The precision of the parametrization in terms of the average point-to-segment error was rather similar. The proposed method gave a better precision for segments 2 to 5, while the conventional method gave a better precision for segment 1. It is, however, noted that both methods had high precision in the results, and minor numerical variations did not have practical importance for the results. It was concluded that the proposed method had the same precision as the conventional method for the tested noise-free dataset, while the execution time was more than 10 times faster.
Next, the performance of the proposed and conventional RANSAC algorithms was compared using the noisy datasets 12 and 13 (see Table 1), which covered noise cases N1 and N2 (outer surface and corner noise). The graphical comparison of the results is given in Figure 25 and the numerical comparison of the results is given in Table 6.
The mean execution time over 10 consequent runs for the proposed method was within 0.082 to 0.095 s, while for the conventional RANSAC method, the execution time was within 1.258 to 1.858 s. The presence of data noise led to a larger variation in average point-to-segment errors. It is, however, again highlighted that both methods could be regarded as similarly precise since the errors were small in both cases.
The last comparison study was performed using datasets 14 and 15, where typical N3 noise was present. The results of the comparison are given in Figure 26 and Table 6.
A similar difference, as for the previous cases, in the execution times was also observed for the current study. The mean execution time for the proposed method was 0.087 s compared to 1.205–1.665 s from the conventional RANSAC method. The average point-to-segment error was of the same magnitude as in the previously studied cases. It is noted that the average errors below 0.5 mm can be considered as a good fit, which is well satisfied by both methods seeing from the results in Table 6.
The comparison study can be summed up with the following conclusions. Both the proposed and conventional RANSAC approaches gave similarly high precision for the noise-free and noisy datasets. The average execution time was, however, more than 10 times faster for the proposed method. The difference can be explained by the fact that the proposed method uses less iterations to find the segments, since the first point of the segment is defined. In addition, the conventional RANSAC approach uses many iterations for searching the root segment first. The root segment has relatively few points, and the algorithm does not proceed to search the other segments before the root is found, which leads to longer execution times. It is also noted that the conventional RANSAC approach needs the approximate groove geometry as an input, while the proposed method can do parametrization without any knowledge of the groove geometry.

6. Conclusions and Future Work

We have presented a novel weld groove parametrization procedure for typical grooves in large tubular butt and stub joints. The procedure was specifically developed to be used with industrial 2D laser scanners where raw image data might not be available, facilitating easier industrial implementation. The procedure consisted of a combination of a sequential RANSAC search and the two additional correction steps for increasing the precision of parametrization. In addition, the data noise detection steps were introduced to enable processing of noisy data, where the noise is caused by reflections between the groove surfaces. The performance of the procedure was studied experimentally using three test objects with grooves machined similarly as in the industrial applications. Two objects represented a stub joint groove, and one object represented a butt joint groove. The procedure proved to be efficient for both types of weld grooves using noise-free data. The mean execution time was within 0.061 to 0.142 s, corresponding to 170 to 400 mm/s available scanning capacity (25 mm between scans). In the cases with data noise, the parametrization results for both grooves were still of sufficient quality, while the mean execution time was within 0.046 to 0.139 s, which was similar to the noise-free cases. The performance of the proposed procedure was also compared to the conventional RANSAC approach for line segment search. The proposed method was as precise as the conventional RANSAC. However, the mean execution time was more than 10 times faster for the proposed method. Additionally, the proposed method did not require any prior knowledge of the groove geometry. The contribution of this work is a step towards robotic scanning and weld path planning for large tubular joints. Therefore, a natural topic for future work is studying the performance of the proposed procedure using a robot-fixed sensor and a full-scale tubular joint. In addition, scanning strategies facilitating the reduction in reflections and data noise should be investigated.

Author Contributions

Conceptualization, methodology, A.C., L.T., and O.E.; software, A.C. and L.T.; formal analysis, investigation, A.C.; writing—original draft preparation, A.C.; writing—review and editing, L.T. and O.E.; supervision, L.T. and O.E.; project administration, funding acquisition, O.E. All authors have read and agreed to the published version of the manuscript.

Funding

The research presented in this paper has received funding from the Norwegian Research Council. The project name is “Automated production of large steel structures” with the project number 282106.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Acknowledgments

The authors would like to thank Morten Lind and Pål Ystgaard from SINTEF Manufacturing AS (Trondheim, Norway) for sharing their RANSAC code, which was used for the comparison to the proposed method. Experimental part of this work was supported by Aker Solutions, Verdal, Norway, which provided materials and equipment.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Russell, A.; Becker, A.; Chumbley, L.; Enyart, D.; Bowersox, B.; Hanigan, T.; Labbe, J.; Moran, J.; Spicher, E.; Zhong, L. A survey of flaws near welds detected by side angle ultrasound examination of anhydrous ammonia nurse tanks. J. Loss Prev. Process. Ind. 2016, 43, 263–272. [Google Scholar] [CrossRef]
  2. Yu, P.; Xu, G.; Gu, X.; Zhou, G.; Tian, Y. A low-cost infrared sensing system for monitoring the MIG welding process. Int. J. Adv. Manuf. Technol. 2017, 92, 4031–4038. [Google Scholar] [CrossRef]
  3. Le, J.; Zhang, H.; Chen, X. Realization of rectangular fillet weld tracking based on rotating arc sensors and analysis of experimental results in gas metal arc welding. Robot. Comput. Integr. Manuf. 2018, 49, 263–276. [Google Scholar] [CrossRef]
  4. Gao, X.; Mo, L.; Xiao, Z.; Chen, X.; Katayama, S. Seam tracking based on Kalman filtering of micro-gap weld using magneto-optical image. Int. J. Adv. Manuf. Technol. 2016, 83, 21–32. [Google Scholar] [CrossRef]
  5. Yang, L.; Liu, Y.; Peng, J. Advances techniques of the structured light sensing in intelligent welding robots: A review. Int. J. Adv. Manuf. Technol. 2020, 110, 1027–1046. [Google Scholar] [CrossRef]
  6. Lei, T.; Rong, Y.; Wang, H.; Huang, Y.; Li, M. A review of vision-aided robotic welding. Comput. Ind. 2020, 123, 103326. [Google Scholar] [CrossRef]
  7. Patil, V.; Patil, I.; Kalaichelvi, V.; Karthikeyan, R. Extraction of weld seam in 3d point clouds for real time welding using 5 dof robotic arm. In Proceedings of the 2019 5th International Conference on Control, Automation and Robotics (ICCAR), Beijing, China, 19–22 April 2019; pp. 727–733. [Google Scholar]
  8. Ahmed, S.M.; Tan, Y.Z.; Chew, C.M.; Al Mamun, A.; Wong, F.S. Edge and corner detection for unorganized 3d point clouds with application to robotic welding. In Proceedings of the 2018 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Madrid, Spain, 1–5 October 2018; pp. 7350–7355. [Google Scholar]
  9. Peng, R.; Navarro-Alarcon, D.; Wu, V.; Yang, W. A Point Cloud-Based Method for Automatic Groove Detection and Trajectory Generation of Robotic Arc Welding Tasks. In Proceedings of the 2020 17th International Conference on Ubiquitous Robots (UR), Kyoto, Japan, 22–26 June 2020; pp. 380–386. [Google Scholar]
  10. Wang, N.; Zhong, K.; Shi, X.; Zhang, X. A robust weld seam recognition method under heavy noise based on structured-light vision. Robot. Comput. Integr. Manuf. 2020, 61, 101821. [Google Scholar] [CrossRef]
  11. Yang, L.; Li, E.; Long, T.; Fan, J.; Liang, Z. A high-speed seam extraction method based on the novel structured-light sensor for arc welding robot: A review. IEEE Sens. J. 2018, 18, 8631–8641. [Google Scholar] [CrossRef]
  12. Zhang, G.; Zhang, Y.; Tuo, S.; Hou, Z.; Yang, W.; Xu, Z.; Wu, Y.; Yuan, H.; Shin, K. A Novel Seam Tracking Technique with a Four-Step Method and Experimental Investigation of Robotic Welding Oriented to Complex Welding Seam. Sensors 2021, 21, 3067. [Google Scholar] [CrossRef]
  13. Manorathna, R.; Phairatt, P.; Ogun, P.; Widjanarko, T.; Chamberlain, M.; Justham, L.; Marimuthu, S.; Jackson, M.R. Feature extraction and tracking of a weld joint for adaptive robotic welding. In Proceedings of the 2014 13th International Conference on Control Automation Robotics & Vision (ICARCV), Singapore, 10–12 December 2014; pp. 1368–1372. [Google Scholar]
  14. Lü, X.; Gu, D.; Wang, Y.; Qu, Y.; Qin, C.; Huang, F. Feature extraction of welding seam image based on laser vision. IEEE Sens. J. 2018, 18, 4715–4724. [Google Scholar] [CrossRef]
  15. Chang, D.; Son, D.; Lee, J.; Lee, D.; Kim, T.w.; Lee, K.Y.; Kim, J. A new seam-tracking algorithm through characteristic-point detection for a portable welding robot. Robot. Comput. Integr. Manuf. 2012, 28, 1–13. [Google Scholar] [CrossRef]
  16. Li, X.; Li, X.; Ge, S.S.; Khyam, M.O.; Luo, C. Automatic welding seam tracking and identification. IEEE Trans. Ind. Electron. 2017, 64, 7261–7271. [Google Scholar] [CrossRef]
  17. Kiddee, P.; Fang, Z.; Tan, M. An automated weld seam tracking system for thick plate using cross mark structured light. Int. J. Adv. Manuf. Technol. 2016, 87, 3589–3603. [Google Scholar] [CrossRef]
  18. Han, Y.; Fan, J.; Yang, X. A structured light vision sensor for on-line weld bead measurement and weld quality inspection. Int. J. Adv. Manuf. Technol. 2020, 106, 2065–2078. [Google Scholar] [CrossRef]
  19. Yao, T.; Gai, Y.; Liu, H. Development of a robot system for pipe welding. In Proceedings of the 2010 International Conference on Measuring Technology and Mechatronics Automation, Changsha, China, 13–14 March 2010; Volume 1, pp. 1109–1112. [Google Scholar]
  20. Chen, X.; Dharmawan, A.G.; Foong, S.; Soh, G.S. Seam tracking of large pipe structures for an agile robotic welding system mounted on scaffold structures. Robot. Comput. Integr. Manuf. 2018, 50, 242–255. [Google Scholar] [CrossRef]
  21. Liu, Y.; Tian, X. Robot path planning with two-axis positioner for non-ideal sphere-pipe joint welding based on laser scanning. Int. J. Adv. Manuf. Technol. 2019, 105, 1295–1310. [Google Scholar] [CrossRef]
  22. Yan, S.; Ong, S.; Nee, A. Optimal pass planning for robotic welding of large-dimension joints with deep grooves. Procedia CIRP 2016, 56, 188–192. [Google Scholar] [CrossRef] [Green Version]
  23. Yan, S.; Fang, H.; Ong, S.; Nee, A. Optimal pass planning for robotic welding of large-dimension joints with nonuniform grooves. Proc. Inst. Mech. Eng. Part J. Eng. Manuf. 2018, 232, 2386–2397. [Google Scholar] [CrossRef]
  24. Fang, H.; Ong, S.; Nee, A. Adaptive pass planning and optimization for robotic welding of complex joints. Adv. Manuf. 2017, 5, 93–104. [Google Scholar] [CrossRef]
  25. Rout, A.; Deepak, B.; Biswal, B. Advances in weld seam tracking techniques for robotic welding: A review. Robot. Comput. Integr. Manuf. 2019, 56, 12–37. [Google Scholar] [CrossRef]
  26. Chen, H.; Liu, W.; Huang, L.; Xing, G.; Wang, M.; Sun, H. The decoupling visual feature extraction of dynamic three-dimensional V-type seam for gantry welding robot. Int. J. Adv. Manuf. Technol. 2015, 80, 1741–1749. [Google Scholar] [CrossRef]
  27. Wu, Q.Q.; Lee, J.P.; Park, M.H.; Jin, B.J.; Kim, D.H.; Park, C.K.; Kim, I.S. A study on the modified Hough algorithm for image processing in weld seam tracking. J. Mech. Sci. Technol. 2015, 29, 4859–4865. [Google Scholar] [CrossRef]
  28. Ratava, J.; Penttilä, S.; Lohtander, M.; Kah, P. Optical measurement of groove geometry. Procedia Manuf. 2018, 25, 111–117. [Google Scholar] [CrossRef]
  29. Siciliano, B.; Sciavicco, L.; Villani, L.; Oriolo, G. Robotics: Modelling, Planning and Control; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2010. [Google Scholar]
Figure 1. A commercial laser triangulation sensor (1) pointing at the weld groove of a test object (2). A local sensor fixed frame is denoted Frame 0 and all data points p j are obtained in the coordinates of Frame 0.
Figure 1. A commercial laser triangulation sensor (1) pointing at the weld groove of a test object (2). A local sensor fixed frame is denoted Frame 0 and all data points p j are obtained in the coordinates of Frame 0.
Sensors 21 04791 g001
Figure 2. Three test objects used in the tests. The objects (a) and (b) represent a typical stub–joint groove, while the object (c) represents a typical butt-joint groove. The objects are welded with root welds of different widths. Schematic arrangement of the plates and the weld root pass in the test objects is shown to the right.
Figure 2. Three test objects used in the tests. The objects (a) and (b) represent a typical stub–joint groove, while the object (c) represents a typical butt-joint groove. The objects are welded with root welds of different widths. Schematic arrangement of the plates and the weld root pass in the test objects is shown to the right.
Sensors 21 04791 g002
Figure 3. Two examples of point sets S i and S j . Each of the point sets has the center of mass m i or m j and the line fit L i or L j . The point sets are marked with different color and the line fit is shown using the same colors.
Figure 3. Two examples of point sets S i and S j . Each of the point sets has the center of mass m i or m j and the line fit L i or L j . The point sets are marked with different color and the line fit is shown using the same colors.
Sensors 21 04791 g003
Figure 4. A line segment i is shown in blue color, with three different cases of point-to-segment distances d j i for j = 1 , 2 , 3 .
Figure 4. A line segment i is shown in blue color, with three different cases of point-to-segment distances d j i for j = 1 , 2 , 3 .
Sensors 21 04791 g004
Figure 5. Inliers for a line segment with the inlier tolerance d ¯ i n . The gap between points along the x 0 axis is denoted d g , i n .
Figure 5. Inliers for a line segment with the inlier tolerance d ¯ i n . The gap between points along the x 0 axis is denoted d g , i n .
Sensors 21 04791 g005
Figure 6. Two models for groove profiles: (a) a T-joint (i.e., stub joint) groove and (b) a butt joint groove (a V-groove) with a root weld. A stub groove and a butt groove consist of five or six corner points, respectively, which can also be represented as four or five sequentially connected line segments. The vectors v i show the directions of the segments.
Figure 6. Two models for groove profiles: (a) a T-joint (i.e., stub joint) groove and (b) a butt joint groove (a V-groove) with a root weld. A stub groove and a butt groove consist of five or six corner points, respectively, which can also be represented as four or five sequentially connected line segments. The vectors v i show the directions of the segments.
Sensors 21 04791 g006
Figure 7. Procedure of searching the two first line segments using RANSAC. Inliers of segment 1 are shown in blue. These inliers, excluding the inliers separated by the gap d g , i n > d ¯ g , i n , are used for defining the segment. After segment 1 is defined, the best inlier set for segment 2 is found, which is shown in green, and segment 2 is defined.
Figure 7. Procedure of searching the two first line segments using RANSAC. Inliers of segment 1 are shown in blue. These inliers, excluding the inliers separated by the gap d g , i n > d ¯ g , i n , are used for defining the segment. After segment 1 is defined, the best inlier set for segment 2 is found, which is shown in green, and segment 2 is defined.
Sensors 21 04791 g007
Figure 8. (a) Two segments 1 and 2 are found. The segments are divided since the gap d g , i n > d ¯ g , i n . (b) If the angle between v 1 and v 2 is less than the defined angle tolerance α ¯ 12 , then the two segments are merged.
Figure 8. (a) Two segments 1 and 2 are found. The segments are divided since the gap d g , i n > d ¯ g , i n . (b) If the angle between v 1 and v 2 is less than the defined angle tolerance α ¯ 12 , then the two segments are merged.
Sensors 21 04791 g008
Figure 9. (a) Two segments 1 and 2 are found. (b) If the angle α 12 α ¯ 12 , then the start point p s 2 is moved to the intersection between the segments 1 and 2.
Figure 9. (a) Two segments 1 and 2 are found. (b) If the angle α 12 α ¯ 12 , then the start point p s 2 is moved to the intersection between the segments 1 and 2.
Sensors 21 04791 g009
Figure 10. (a) Segment i and its local Frame l i are defined over the inlier set, (b) A line fit L i n , i l i for the inliers is found and the a i n , i coefficient of the line equation is evaluated, (c) several points are removed from the inlier set and a line fit is evaluated again, (d) when a i n , i is within the tolerance, segment i is defined over the rest of the inliers.
Figure 10. (a) Segment i and its local Frame l i are defined over the inlier set, (b) A line fit L i n , i l i for the inliers is found and the a i n , i coefficient of the line equation is evaluated, (c) several points are removed from the inlier set and a line fit is evaluated again, (d) when a i n , i is within the tolerance, segment i is defined over the rest of the inliers.
Sensors 21 04791 g010
Figure 11. Input data (a) and the output (b) of the iterative error elimination algorithm. The different point colors indicate point sets associated with different segments, initial point association is shown in (a) and after the final iteration—in (b).
Figure 11. Input data (a) and the output (b) of the iterative error elimination algorithm. The different point colors indicate point sets associated with different segments, initial point association is shown in (a) and after the final iteration—in (b).
Sensors 21 04791 g011
Figure 12. Alignment of segment i to the point set S i . First the segment is translated to the mass center m i of S i , then it is rotated to match the direction of L i .
Figure 12. Alignment of segment i to the point set S i . First the segment is translated to the mass center m i of S i , then it is rotated to match the direction of L i .
Sensors 21 04791 g012
Figure 13. Schematic representation of the iterative corner error elimination algorithm. Two iterations are shown with the initial and final groove profile arrangements.
Figure 13. Schematic representation of the iterative corner error elimination algorithm. Two iterations are shown with the initial and final groove profile arrangements.
Sensors 21 04791 g013
Figure 14. Reflections from laser projection onto shiny metal surface and the corresponding data noise in the graph.
Figure 14. Reflections from laser projection onto shiny metal surface and the corresponding data noise in the graph.
Sensors 21 04791 g014
Figure 15. Schematic representation of the noise detection procedure. When segment 1 is found, the algorithm detects noise in the set of the following points S j (a), then the following point sets S j + 1 and S j + 2 are checked for noise (b), segment 2 is defined once a noise free set is found (c).
Figure 15. Schematic representation of the noise detection procedure. When segment 1 is found, the algorithm detects noise in the set of the following points S j (a), then the following point sets S j + 1 and S j + 2 are checked for noise (b), segment 2 is defined once a noise free set is found (c).
Sensors 21 04791 g015
Figure 16. Flow diagram the proposed procedure for groove parametrization with noisy data points. The diagram does not include the iterative error elimination step.
Figure 16. Flow diagram the proposed procedure for groove parametrization with noisy data points. The diagram does not include the iterative error elimination step.
Sensors 21 04791 g016
Figure 17. Parametrization results with groove corner points for dataset 1. The blue dots show the result before the iterative error elimination procedure and the red dots show after. A close-up of the graph is shown to the right.
Figure 17. Parametrization results with groove corner points for dataset 1. The blue dots show the result before the iterative error elimination procedure and the red dots show after. A close-up of the graph is shown to the right.
Sensors 21 04791 g017
Figure 18. Parametrization results with groove corner points for dataset 2. The blue dots show the result before the iterative error elimination procedure and the red dots show after. A close-up of the graph is shown to the right.
Figure 18. Parametrization results with groove corner points for dataset 2. The blue dots show the result before the iterative error elimination procedure and the red dots show after. A close-up of the graph is shown to the right.
Sensors 21 04791 g018
Figure 19. Parametrization results with groove corner points for dataset 3. The blue dots show the result before the iterative error elimination procedure and the red dots show after. A close-up of the graph is shown to the right.
Figure 19. Parametrization results with groove corner points for dataset 3. The blue dots show the result before the iterative error elimination procedure and the red dots show after. A close-up of the graph is shown to the right.
Sensors 21 04791 g019
Figure 20. Parametrization results with groove corner points for dataset 2 (to the left) and 3 (to the right), when the correction of assigned corners step is omitted. The blue dots show the result before the iterative error elimination procedure and the red dots show after.
Figure 20. Parametrization results with groove corner points for dataset 2 (to the left) and 3 (to the right), when the correction of assigned corners step is omitted. The blue dots show the result before the iterative error elimination procedure and the red dots show after.
Sensors 21 04791 g020
Figure 21. Parametrization results with groove corner points for datasets 4 (to the left) and 5 (to the right). The blue dots show the result before the iterative error elimination procedure and the red dots show after.
Figure 21. Parametrization results with groove corner points for datasets 4 (to the left) and 5 (to the right). The blue dots show the result before the iterative error elimination procedure and the red dots show after.
Sensors 21 04791 g021
Figure 22. Parametrization results with groove corner points for datasets 6 (to the left) and 7 (to the right). The blue dots show the result before the iterative error elimination procedure and the red dots show after. The grey points have been identified as noise by the noise detection algorithm.
Figure 22. Parametrization results with groove corner points for datasets 6 (to the left) and 7 (to the right). The blue dots show the result before the iterative error elimination procedure and the red dots show after. The grey points have been identified as noise by the noise detection algorithm.
Sensors 21 04791 g022
Figure 23. Parametrization results with groove corner points for datasets 8 (to the left) and 9 (to the right). The blue dots show the result before the iterative error elimination procedure and the red dots show after. The grey points have been identified as noise by the noise detection algorithm.
Figure 23. Parametrization results with groove corner points for datasets 8 (to the left) and 9 (to the right). The blue dots show the result before the iterative error elimination procedure and the red dots show after. The grey points have been identified as noise by the noise detection algorithm.
Sensors 21 04791 g023
Figure 24. Parametrization results with groove corner points for datasets 10 (to the left) and 11 (to the right). The blue dots show the result before the iterative error elimination procedure and the red dots show after. The grey points have been identified as noise by the noise detection algorithm.
Figure 24. Parametrization results with groove corner points for datasets 10 (to the left) and 11 (to the right). The blue dots show the result before the iterative error elimination procedure and the red dots show after. The grey points have been identified as noise by the noise detection algorithm.
Sensors 21 04791 g024
Figure 25. Parametrization results with groove corner points for datasets 12 (to the left) and 13 (to the right). The red dots show the result from the proposed procedure and the black dots show results from the conventional RANSAC. The grey points have been identified as noise by the noise detection algorithm.
Figure 25. Parametrization results with groove corner points for datasets 12 (to the left) and 13 (to the right). The red dots show the result from the proposed procedure and the black dots show results from the conventional RANSAC. The grey points have been identified as noise by the noise detection algorithm.
Sensors 21 04791 g025
Figure 26. Parametrization results with groove corner points for datasets 14 (to the left) and 15 (to the right). The red dots show the result from the proposed procedure and the black dots show results from the conventional RANSAC. The grey points have been identified as noise by the noise detection algorithm.
Figure 26. Parametrization results with groove corner points for datasets 14 (to the left) and 15 (to the right). The red dots show the result from the proposed procedure and the black dots show results from the conventional RANSAC. The grey points have been identified as noise by the noise detection algorithm.
Sensors 21 04791 g026
Table 1. Datasets from the scanned weld grooves.
Table 1. Datasets from the scanned weld grooves.
No.TypeRoot,NoiseNo.TypeRoot,NoiseNo.TypeRoot,Noise
[mm] [mm] [mm]
1Stub0No6Stub3Low N111Stub0Medium N3
2Stub11No7Stub3High N112Butt7Medium N1
3Stub3No8Stub3Medium N213Butt7Medium N2
4Butt0No9Stub3High N214Butt7Medium N3
5Butt7No10Stub0Low N315Butt7Low N3
Table 2. Segment fit errors and execution times for 10 sequential runs using the datasets 1, 2, and 3. Results for dataset 2 are given with and without iterative error elimination step (IEES). The fit error definition is given in the beginning of Section 4.
Table 2. Segment fit errors and execution times for 10 sequential runs using the datasets 1, 2, and 3. Results for dataset 2 are given with and without iterative error elimination step (IEES). The fit error definition is given in the beginning of Section 4.
Dataset12 with IEES2 without IEES3
MaxMinMeanMaxMinMeanMaxMinMeanMaxMinMean
Time, [s]0.0760.0430.0610.1250.0560.092---0.1450.0580.126
d e , 1 , [mm]0.0340.0340.0340.0640.0610.0620.0620.0620.0620.0560.0560.056
d e , 2 , [mm]0.0700.0700.0700.1140.0950.1091.0580.0400.1920.0410.0410.041
d e , 3 , [mm]0.0500.0500.0500.1230.1150.1181.1520.1220.7400.0950.0950.095
d e , 4 , [mm]---0.0460.0440.0440.6590.4000.6180.0740.0740.074
Table 3. Segment fit errors and execution times for 10 sequential runs using datasets 4 and 5. The fit error definition is given in the beginning of Section 4.
Table 3. Segment fit errors and execution times for 10 sequential runs using datasets 4 and 5. The fit error definition is given in the beginning of Section 4.
Dataset 4 5
MaxMinMeanMaxMinMean
Time, [s]0.1380.0620.0910.2330.0930.142
d e , 1 , [mm]0.0300.0280.0300.0620.0300.046
d e , 2 , [mm]0.0740.0740.0740.0770.0260.052
d e , 3 , [mm]0.0360.0350.0360.1610.1600.160
d e , 4 , [mm]0.0320.0320.0320.0420.0410.041
d e , 5 , [mm]---0.0190.0190.019
Table 4. Segment fit errors and running times for 10 sequential runs using the datasets 6–11. The fit error definition is given in the beginning of Section 4.
Table 4. Segment fit errors and running times for 10 sequential runs using the datasets 6–11. The fit error definition is given in the beginning of Section 4.
Dataset67891011
MaxMeanMaxMeanMaxMeanMaxMeanMaxMeanMaxMean
Time, [s]0.1330.1260.2620.1390.0890.0610.1330.1080.1620.1250.0660.046
d e , 1 , [mm]0.2580.2580.1780.1150.0860.0860.1060.1050.0770.0770.0700.070
d e , 2 , [mm]0.1440.1410.0400.0400.0780.0760.0500.0470.1220.1200.0860.086
d e , 3 , [mm]0.2290.2200.1080.110.0620.0440.1600.1600.1020.1020.1200.120
d e , 4 , [mm]0.0770.0770.0390.0390.0490.0480.1570.157----
Table 5. Comparison of the results using dataset 5. The fit error definition is given in the beginning of Section 4.
Table 5. Comparison of the results using dataset 5. The fit error definition is given in the beginning of Section 4.
Mean ValuesProposedConventional
Time, [s]0.1421.886
d e , 1 , [mm]0.0460.037
d e , 2 , [mm]0.0520.062
d e , 3 , [mm]0.1600.164
d e , 4 , [mm]0.0410.042
d e , 5 , [mm]0.0190.036
Table 6. Comparison of the results using datasets 12–15. The fit error definition is given in the beginning of Section 4.
Table 6. Comparison of the results using datasets 12–15. The fit error definition is given in the beginning of Section 4.
Dataset12131415
Mean ValuesProp.Conv.Prop.Conv.Prop.Conv.Prop.Conv.
Time, [s]0.0951.8580.0821.2580.0871.2050.0871.665
d e , 1 , [mm]0.1060.1550.0770.0680.0250.0800.0820.146
d e , 2 , [mm]0.1050.0920.1330.0570.0600.0950.1540.256
d e , 3 , [mm]0.1510.2410.0610.0720.1520.1530.1350.277
d e , 4 , [mm]0.0780.1000.0300.1170.0440.0780.3030.151
d e , 5 , [mm]0.0350.1150.0690.3940.0210.0600.0900.103
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Cibicik, A.; Tingelstad, L.; Egeland, O. Laser Scanning and Parametrization of Weld Grooves with Reflective Surfaces. Sensors 2021, 21, 4791. https://doi.org/10.3390/s21144791

AMA Style

Cibicik A, Tingelstad L, Egeland O. Laser Scanning and Parametrization of Weld Grooves with Reflective Surfaces. Sensors. 2021; 21(14):4791. https://doi.org/10.3390/s21144791

Chicago/Turabian Style

Cibicik, Andrej, Lars Tingelstad, and Olav Egeland. 2021. "Laser Scanning and Parametrization of Weld Grooves with Reflective Surfaces" Sensors 21, no. 14: 4791. https://doi.org/10.3390/s21144791

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop