Next Article in Journal
Skin Lesion Detection Algorithms in Whole Body Images
Next Article in Special Issue
Ground Control System for UAS Safe Landing Area Determination (SLAD) in Urban Air Mobility Operations
Previous Article in Journal
Measurement of Acceleration Response Functions with Scalable Low-Cost Devices. An Application to the Experimental Modal Analysis
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Digital Twin of an Optical Measurement System

Department of Mechanical Engineering, KU Leuven, Celestijnenlaan 300, 3001 Leuven, Belgium
*
Author to whom correspondence should be addressed.
Sensors 2021, 21(19), 6638; https://doi.org/10.3390/s21196638
Submission received: 30 August 2021 / Revised: 28 September 2021 / Accepted: 2 October 2021 / Published: 6 October 2021
(This article belongs to the Special Issue Short-Range Optical 3D Scanning and 3D Data Processing)

Abstract

:
Digital twins of measurement systems are used to estimate their measurement uncertainty. In the past, virtual coordinate measuring machines have been extensively researched. Research on digital twins of optical systems is still lacking due to the high number of error contributors. A method to describe a digital twin of an optical measurement system is presented in this article. The discussed optical system is a laser line scanner mounted on a coordinate measuring machine. Each component of the measurement system is mathematically described. The coordinate measuring machine focuses on the hardware errors and the laser line scanner determines the measurement error based on the scan depth, in-plane angle and out-of-plane angle. The digital twin assumes stable measurement conditions and uniform surface characteristics. Based on the Monte Carlo principle, virtual measurements can be used to determine the measurement uncertainty. This is demonstrated by validating the digital twin on a set of calibrated ring gauges. Two validation tests are performed: the first verifies the virtual uncertainty estimation by comparison with experimental data. The second validates the measured diameter of different ring gauges by comparing the estimated confidence interval with the calibrated diameter.

1. Introduction

According to the Guide to the Expression of Uncertainty in Measurement (GUM), every measurement needs to be accompanied with an uncertainty, otherwise, a measurement is considered incomplete [1]. The measurement uncertainty can be estimated by either a Type A or Type B evaluation. The International Vocabulary of Metrology (VIM) defines Type A evaluation as: “Evaluation of a component of measurement uncertainty by a statistical analysis of measured quantity values obtained under defined measurement conditions [2]”. This uncertainty, Type A, can be derived from a series of independent repeated observations. A Type B evaluation is defined as: “Evaluation of a component of measurement uncertainty determined by means other than a Type A evaluation of measurement uncertainty [2]”. This uncertainty, Type B, is determined using the available information, such as: previous measurement data, manufacturer’s specifications, calibration data and experience [3,4]. Both types are characterized by a standard deviation.
The uncertainty determination for measurements of complex geometries is challenging for both types of evaluation. Type A evaluation is time-consuming when multiple measurements need to be performed. Since the manufacturing industry is evolving towards shorter inspection times and higher quality, a bottleneck, in order to estimate the uncertainty, is to be avoided [5]. When a large batch of complex geometries is measured, the manufacturer opts for a Type B evaluation. However, if the geometries are unique, a reliable Type B evaluation is not always possible. A solution to this challenge is a virtual measurement device, a digital twin of its physical counterpart. The digital twin generates virtual measurements, while the physical machine can continue its operations. This allows an uncertainty evaluation including a Type A evaluation without creating a bottleneck in the production process.
The digital twin mimics the behavior of its physical counterpart, considering the specified error contributors. The measurement uncertainty is the result of multiple contributors, such as the environment, the measurement device, the sampling strategy, the evaluation strategy and the work piece [6,7]. Based on a Monte Carlo method, multiple virtual measurements are performed in order to determine the measurement uncertainty. Digital twins of coordinate measuring machines (CMMs) have been extensively researched in the past [6,8,9,10,11,12,13,14,15,16]; however, research into digital twins of optical systems is still lacking due to the high number of error contributors [17]. This paper presents a method to obtain and simulate a digital twin of a laser line scanner (LLS) mounted on a CMM.

2. Determination of the Measurement Error

The considered measurement system consists of three mayor hardware components, namely the CMM, the articulating probe head and the LLS. The CMM positions and orientates the optical sensor, i.e., the LLS, relative to the inspected object, while the LLS generates a point cloud of the measured points on the surface of the object. The total error of the measurement system is the summation of the errors of both systems separately. The error contribution of the CMM is described in literature and is used in this paper to simulate the error of the CMM [10,12]. The error contribution of the sensor is based on systematic and random error models for specified surfaces in function of the measurement strategy [18].

2.1. Error Contribution from the CMM

The most notable error contributors of the CMM are the hardware errors. Therefore, the presented digital twin focuses on the geometric errors. These geometric errors of a CMM are determined by external factors, i.e., temperature, humidity and vibrations, and internal factors, such as rotations, misalignments, straightness of the guideways and scale errors. However, the external factors are indirectly integrated in the model. As a consequence the digital twin is only valid in a temperature controlled environment with a small temperature gradient or drift as a result of internal heating. A. Gąska et al. presented a virtual CMM for the uncertainty estimation of coordinate measurements performed in industrial conditions [16]. A conventional CMM has three axes of movement and each movement involves six components of deviation: three linear and three angular. The errors on the perpendicularity between the three axes are characterized by three squareness errors. Considering the CMM as a rigid body, the geometric errors can by described with 21 parametric errors [6,12].
The kinematic model of the CMM consists of four rigid bodies connected by three prismatic joints, allowing three degrees of freedom for the probe head mounting point (phmp), i.e., translations in the directions of the main axes [12]. The literature [12,19,20] describes the position of the phmp as (1) and the total angular error of phmp as (2) with respect to the coordinate system of the CMM. Figure 1 depicts the components of the CMM.
p 0 phmp = x e n c + e x x + e x y + e x z y e n c e c x + z e n c e b x + e b y y e n c + e y x + e y y + e y z z e n c e a x + e a y z e n c + e z x + e z y + e z z + y e n c e a x
R 0 phmp = 1 e c z e c y e c x e b z + e b y + e b x e c x + e c y + e c z 1 e a z e a y e a x e b x e b y e b z e a x + e a y + e a z 1
x e n c , y e n c and z e n c represent the values read from linear encoder of the scales. The error components for a straight line motion along an axis are represented with e λ 1 λ 2 , where λ 1 represents the type of kinematic error and λ 2 represents the axis. For example, the six kinematic error components along the x axis in function to the position on that axis are:
  • exx: positioning error of the x axis;
  • eyx: straightness error motion of the x axis in the y direction;
  • ezx: straightness error motion of the x axis in the z direction;
  • eax: roll error motion of the x axis;
  • ebx: pitch error motion of the x axis due to a rotation around the y axis;
  • ecx: yawt error motion of the x axis due to a rotation around the z axis.
The kinematic errors can be described by equations similar to (3). The linear and quadratic function represent the linear and quadratic component of the kinematic error, while the harmonics correspond with the higher-order undulations of the kinematic error with N the maximum number of undulations per length L of the axis. For example for exx can be written:
e x x x = s 2 x L x 1 + c 6 x L x 2 6 x L x + 1 + n = 1 N a n cos 2 n π x / L x + ϕ n
for x 0 , L and with:
  • s the coefficient of the linear term;
  • c the coefficient of the quadratic term;
  • an the coefficients describing the higher n-th order order undulations of the geometric deviations;
  • ϕn the phase of the higher order undulations ϕ n 0 , 2 π .
In (3), the first two terms are the shifted Legendre polynomials of the first and second degree and the remaining terms are the Fourier coefficients that describe the higher order undulations of the geometrical deviations. It is taken for granted that there is some dependence between the Legendre polynomial coefficients and the Fourier coefficients [21]; still, this is considered as an appropriate way of expressing the geometrical errors [12]. In (3), the zero-order (constant) term is omitted as length measurements are always based on differences between points, and the constant term in the pitch, yaw and roll motions representing the squareness is already taken into account by the linear term in the straightness errors.
Disregarding the correlation between s and c on one hand, and the an coefficients on the other hand, the standard deviation of the errors can be approximated by:
σ e x 1 3 s 2 + 1 5 c 2 + n = 1 N a n 2 2
For the expressions of the various geometrical errors the following considerations can be made:
exx, eyy and ezz represent the scale errors where the linear term will be dominant as this contains the effects of temperature and thermal expansion of the object and the scales. The other terms represent calibration and production errors of the scales and these are usually small. A known periodic error that may occur is due to the interpolation that will have a periodicity of once and/or half the scale pitch, which is typically 20 µm or 8 µm [22]; this effect is disregarded here. An estimate for the typical errors arising can be made from the temperature range and the uncertainty of the expansion coefficient of the scales and steel objects. The maximum error will be about 2 × 10−6·L, where L is the measured length, which gives s = 2 × 10−6 at maximum for exx, eyy and ezz.
eyx, ezx, exy, ezy, exz and eyz represent the straightness errors. The linear term s in these errors represent the squareness errors. The orientation of the coordinate system may be defined by putting s(eyx), s(ezx) and s(ezy) equal to zero, then s(exy), s(ezy) and s(eyz) represent the three squareness errors of the CMM. Their magnitude may be estimated from explicit squareness measurements or from the CMM specifications.
For the nine roll errors it may be stated that they have a zero linear term as the squareness errors are already incorporated in the linear term of the straightness representation, and not all are relevant, depending on the CMM configuration. As the roll errors are caused by straightness deviations of the mechanical guidances, there is a correlation between the straightness and roll. In general this correlation depends on the mechanical construction of the guidances and will be complicated for higher order undulations. Still, for low-order undulations, especially the quadratic term, it can be assumed that the rotary error is the derivative of the straightness: s(ecx) = 6·c(eyx)/L, s(eby) = 6·c(ezx)/L and s(eay) = 6·c(ezy)/L. It is assumed that rotation-errors have no higher-order terms so there is only an s parameter.
The error contribution of the CMM is estimated by assuming the geometrical errors of the CMM ‘as they could be’. With this ‘virtual CMM’ a measurement is taken from which a parameter is calculated; e.g., a measurement of a cylinder is simulated from which the diameter is estimated. This is repeated for CMM having a different error structure by recalculating the geometrical errors ‘as they could also be’ and repeating this same measurement using the newly calculated error structure, giving another cylinder measurement from which another diameter is calculated. Repeating this for many different error structures gives a distribution of cylinder diameter values, from which conclusions can be drawn about the distribution of cylinder diameter values in terms of systematic and random deviations from the nominal cylinder diameter value.
A virtual CMM is constructed by randomizing the geometric errors by putting random factors in (3) as following:
e x x x = k · s 2 x L x 1 + k · c 6 x L x 2 6 x L x + 1 + n = 1 N a n cos 2 n π x L x + m · 2 π
where the random factor k varies every time it appears in the 18 equations similar to (5) by which a virtual CMM is constructed, according to a beta distribution with the first shape factor 2.8 and the second shape factor 5.2. The beta distribution is shifted by minus 1.25 and multiplied by a random sign (6). These parameters result in a distribution with two peaks around ±1. As a result each individual geometric error is more likely to be represented realistically in the total error contribution, rather than a marginal contribution, which is the case with a normal distribution around 0. To represent each individual geometric error realistically with a normal distribution, the standard deviation has to be chosen so large that the virtual CMM cannot conform to its specifications. The random number m is taken from a uniform, rectangular distribution between 0 and 1. For every simulation the parameters s, c and an are given realistic values; see the considerations above and [12]. Keeping the an parameters constant while varying the phase randomly keeps the autocorrelation function of the periodic errors constant which enables a proper uncertainty estimation as was shown in [23].
The random number k is taken from a Beta-distribution as following:
k ± Beta 2.8 , 5.2 1.25
The simulated CMM has an MPE (maximum permissible error) of 1.8 μm + 2.5 × 10−6·L. Such a CMM must be simulated in such a way that this limit is kept. This is accomplished by considering this limit as a 95% confidence interval that is approximated by two standard uncertainties. Estimating linear, length-dependent terms s can be accomplished by taking s in exx, eyy, ezz, exy, ezy and eyz equal to 1.25 × 10−6/2√2, considering that the scale linearity and the squareness contribute independently to an equal extent.
For the constant term of 1.8 µm it can be considered that this limit must be kept in three directions (x, y and z). Assuming a standard uncertainty of 1.8 µm/2 and six independent contributions in each direction this is achieved by putting a limit of 0.9 µm/√6 = 0.36 µm to the standard uncertainty imposed by the coefficients c and an. (4) is used to estimate realistic values of the parameters c and an where the total contribution to the standard uncertainty of parameter c on one hand and the parameters an on the other hand is taken equal for the straightness components. The parameters an are chosen from a normal distribution with mean of 0 and a standard distribution of 1 with N equal to 15. The random values are scaled so that (7) is valid.
a i 2 2 = 0.2   µ m
Figure 2 depicts the positional and straightness errors of a potential virtual CMM based on Table 1 and (5). The parameters are randomly chosen with a maximum of 15 undulations per length. Figure 3 depicts typical angular errors of the virtual CMM as they appear in this specific single simulation, with the parameters in Table 2. The total error as a function of the position in the coordinate system of the simulated CMM is depicted in Figure 4. The size and direction of the error is determined by (5), and due to the random parameter k different simulations result in different error propagations. From Figure 2 and Figure 3 it can be conducted that each individual error is smaller than 3 μm, yet the magnitude of the maximal total error is approximately 5 μm, as displayed in Figure 4. As an example, a length measurement over the entire Y axis starting in the origin is considered. The error in the origin is negligible. The error on the other end of the Y axis is 3 μm in the negative Y direction. As a result, the length measurement will appear 3 μm shorter than the true value.
In order to validate the virtual CMM, its conformance to ISO 10360-2 is verified. This acceptance test has a statistical nature; as a consequence false rejections and false acceptances are inherent to this method. Recently, a method has been presented to manage the risk involved in the conformance test [24]. Since the parameters of the virtual CMM are validated based on various tests and thus the statistical nature of the acceptance test is negligible, the conventional ISO 10360-2 is used. This standard has three objectives [6]. For the first and second objective, it measures the error on a calibrated test length, with and without any probe offset. Therefore, the virtual machine, just like the physical counterpart, must have an error lower than the given MPE. The acceptance test of this standard can be performed on a gauge block, a step gauge or a ball bar. There should be five different lengths measured in the seven different directions of the CMM. The smallest length should be at least 30 mm and the longest length should be 66% of the total measurable length of the orientation. The third objective of ISO 10360-2 is to test the repeatability of a measurement. Therefore, the standard specifies that each measurement is repeated three times [25].
Figure 5 depicts the simulated results of the acceptance test according to ISO 10360-2 for the virtual CMM with the error map depicted in Figure 4. Once a virtual CMM is generated based on the 18 geometric errors, no random error is involved in the determination of the positional error as a function of the phmp’s position in the coordinate system. Therefore, the repeatability of the virtual CMM is not tested at this stage; when incorporating the optical probe it will be inherently added. The simulated measurements are performed along the three main axes of the CMM, namely X, Y and Z. The four diagonals are labelled D1, D2, D3 and D4. When all measurements are within the limits of the MPE of the CMM, which is 1.8 μm + 2.5 × 10−6·L, the virtual machine passes the acceptance test. The performance indicator v (8) for the digital twin is calculated in order to validate the chosen parameter in Table 1 and Table 2 [12].
v = min L   m p e L   e r r ,   for   all   measured   lengths
The error on the measured length is errL and the MPE for the corresponding length is mpeL. If the performance indicator is less than 1, the virtual CMM fails the acceptance test. A performance indicator larger than 2 represents a virtual CMM that is twice as accurate as the MPE indicates. This means that the parameters used for the simulation are not realistic. For the validation of the parameters of Table 1 and Table 2, 250 acceptance tests are performed on different virtual CMMs. The performance indicators are depicted in Figure 6. 95% of the simulated CMMs pas the acceptance test, proving the feasibility of the parameters of Table 1 and Table 2. Based on the performance indicators in Figure 6, it can be concluded that the simulated CMMs show realistic measurement errors which are not too accurate.

2.2. Articulating Probe Head

The articulating probe head, Figure 7, allows the probe system to measure from different directions. It has two joints: joint A controls the elevation in the vertical plane and joint B controls the direction in the horizontal plane; both joints are depicted in Figure 7 [26]. The joints are incremental and are asynchronous with the movement of the CMM. The probing system cannot change its orientation and position simultaneously. Therefore, the degrees of freedom of a CMM-controlled measurement system are often referred to as 3 + 2 degrees of freedom. ISO 10360-5 covers the verification of the articulating probe head [27].
The probe head error involves the error introduced by the articulating probe head. The simulated articulating probe head error is Renishaw PH10M. From the specifications, a repeatability (2 s) of 0.5 μm at a distance of 100 mm is derived [28]. In the digital twin this is simulated by taking a standard deviation of 2.5 × 10−6 rad, (9), as rotational error for both joint A and B, which gives a repeatability of 0.5 μm at a distance of 100 mm.
tan 0.25   μ m 100   mm = 2.5 × 10 6   rad
Although this rotational error is small, it can result in a significant error due to the distance of the probing system relative to the measured point. The rotation matrix determined by the joints of the articulating probe head, is expressed as a function of the angle made by joint A, θa, and joint B, θb, the respective errors on each joint are Ea and Eb. Equation (10) gives the rotation matrix used to orientate the probing system without error. After each manipulation of the articulating probe head the error needs to be calculated. A random number of a normal distribution with a standard deviation in accordance with the technical specifications, is added to the angle of the manipulated joint. Equation (11) expresses the rotation matrix including the random error. Any offset error on a joint is neglected, since the calibration of the articulating probe head compensates the offset errors.
R 0 a p h = cos θ a cos θ b sin θ b sin θ a cos θ b cos θ a sin θ b cos θ b sin θ a sin θ b sin θ a 0 cos θ a
R 0 a p h e r r = cos θ a + E a cos θ b + E b sin θ b + E b sin θ a + E a cos θ b + E b cos θ a + E a sin θ b + E b cos θ b + E b sin θ a + E a sin θ b + E b sin θ a + E a 0 cos θ a + E a

2.3. Probing System: Laser Line Scanner

The probing errors are dependent on the selected measurement system. The selected measurement system is an LLS. The LLS projects a laser line on an object. The laser beam’s reflection on the surface of the measurand is captured by the sensor, i.e., photodetector, of the LLS. Based on triangulation, the scanner determines the point of intersection between the projected laser beam and the surface (Figure 8).
Digital twins, simulating tactile probing errors, often use a normal distributed random error as a representation of the error contributors [12]; for optical probes this task is more complex. The error contributors of an optical probing system can be classified in multiple categories [7,18,29,30,31,32]:
  • Environmental error sources: temperature, humidity, ambient light, dust and vibrations;
  • Surface properties of the object: colour, reflectivity, surface finishing and translucency;
  • Measurement strategy: position of probing system relative to the object and object’s position in the CMM;
  • Hardware of the probing system: accuracy of components and mechanical instabilities;
  • Data processing: resolution, filtering and algorithms;
  • Extrinsic factors: operators, surface cleanliness and clamping system.
The variety of error contributors makes it difficult to generate a digital twin of an optical probing system which incorporates all these error contributors. Therefore, some assumptions are considered for the presented digital twin of an optical probing system. First of all, the presented digital twin represents a physical counterpart that operates in a controlled environment, i.e., the environmental error sources are minimized. Secondly, the influence of the hardware of the probing system and extrinsic factors are neglected. Thirdly, the proposed model to simulate the error propagation of an LLS is valid for specified surface characteristics and sensor settings. The model expresses the systematic error and the random error as second degree polynomial, Equations (12) and (13), as a function of the scan depth, in-plane angle and out-of-plane angle. These parameters are depicted in Figure 9.
E s y s = c 1 , s d 2 + c 2 , s d α o u t + c 3 , s d α i n + c 4 , s d + c 5 , s α o u t 2 + c 6 , s α o u t α i n + c 7 , s α o u t + c 8 , s α i n 2 + c 9 , 1 α i n + c 10 , s
E r a n d = c 1 , r d 2 + c 2 , r d α o u t + c 3 , r d α i n + c 4 , r d + c 5 , r α o u t 2 + c 6 , r α o u t α i n + c 7 , r α o u t + c 8 , r α i n 2 + c 9 , r α i n + c 10 , r
with:
  • Esys: the systematic error;
  • Erand: the random error;
  • d: the scan depth;
  • αin: the in-plane angle;
  • αout: the out-of-plane angle;
  • c(1–10,s): the coefficients for the systematic error model;
  • c(1–10,r): the coefficients for the systematic error model.
The scan depth is the distance between the point on the inspected surface, P, and the laser source, LS.
d = L S x P x 2 + L S y P y 2 + L S z P z 2
The angle between the incoming laser beam, v , and the normal on the inspected surface, n , can be split up in two components: in-plane angle and out-of-plane angle. The in-plane angle is the component in the field of view. The out-of-plane angle is the component perpendicular to the field of view (Figure 9). The in-plane angle is expressed by (15) and the out-of-plane angle by (16) [18]. The scan direction of the LLS is m in these equations.
α i n = i f   arccos n n · m × v n 2 m × v · m n n · m × v n 2 m × v S E 90 ° : arccos n n · m × v n 2 m × v · m n n · S E × v n 2 S E × v m i f   arccos n n · m × v n 2 m × v · m × v n n · m × v n 2 m × v m < 90 ° : arccos n n · S E × v n 2 S E × v · m n n · S E × v n 2 S E × v m
α o u t = i f   arccos n n · m n 2 m · m × v n n · m n 2 m m × v 90 ° : arccos n n · m n 2 m · m n n · m n 2 m m i f   arccos n n · m n 2 m · m × v n n · m n 2 m m × v < 90 ° :   arccos n n · m n 2 m · m n n · m n 2 m m
The coefficients of (12) and (13) are determined by scanning a reference sphere [18]. The values of each coefficient can be found in Table 3 and Table 4, and the settings of the scanner are presented in Table 5. These coefficients are valid for a stainless surface, such as the reference sphere from which they are obtained and the artefacts which are used for the validation. Figure 10 and Figure 11 depict respectively the systematic error and the random error according to (12) and (13).

2.4. Articulating Probe Head

The total measurement error of a point is the summation of the error induced by the CMM, articulating probe and the LLS. In order to calculate the error, the position of the laser source, the movement direction of the LLS and the normal on the surface need to be determined. Since an LLS travels in a straight line from the start position to the end position while scanning, the vector of the movement direction is the difference of the end position and the start position. When performing a virtual measurement with a digital twin, the input of the object is a virtual geometry, such as an STL model or a CAD model. An STL model provides information of the normal on each facet, which can be used to calculate the in-plane angle and out-of-plane angle. For a basic three-dimensional geometrical object, the normal can be calculated without a virtual model. For example, for a sphere, the normal on the surface in a specified point is the vector from the center to the specified point. The position of the laser source can be obtained by (17) [18]. This equation represents the intersection of the plane containing the laser beams and the scan trajectory with start position, S.
L S x L S y L S z = P x P y P z S x S y S z · m m 2 · m + S x S y S z
The axes of joint A and B are located at an offset, Laph, of the phmp. The position of the laser source has also a fixed offset to the intersection of the axes of joint A and B. The position of the laser source relative to the intersection is given by (17) for joint A and B equal to zero.
L S x , r e l L S y , r e l L S z , r e l = 0 L w L l s
Multiplying (18) with the rotation matrix of the articulating probe head, (10), expresses the relative position in function of the joints.
L S x , r e l L S y , r e l L S z , r e l = sin θ b L w + sin θ a cos θ b L l s cos θ b L w + sin θ a sin θ b L l s cos t h e t a a L l s
Knowing the position of the laser source, the position of the phmp can be determined by going backwards up the kinematic chain.
p h m p = L S x L S y L S z 0 0 L a p h sin θ b L w + sin θ a cos θ b L l s cos θ b L w + sin θ a sin θ b L l s cos t h e t a a L l s
The error on the probe head mounting point, Ephmp, can be calculated, as explained in Section 2.1, once the coordinates are known. The error, Eorientation, in a measured point as a result of the angular errors of the CMM, (2), and the angular errors of the joint A and B, (10) and (11), is expressed by (21).
E o r i e n t a t i o n = R 0 p h m p × R 0 a p h e r r 0 L w L l s + v d R 0 p h m p × R 0 a p h 0 L w L l s + v d
The error introduced by the LLS, ELLS, can be determined as a function of the scan depth, in-plane angle and out-of-plane angle, as explained in Section 2.3. This error consists of two components: the random error, (13), and the compensated systematic error, (11). However, it is hard to compensate for the systematic error in its entirety. As a result, a remaining uncertainty on the compensated systematic error is introduced. This uncertainty is represented with the factor δ. For the simulations of the validations this factor is 0.01.
E L L S = N 0 , E r a n d 2 + N 0 , δ E s y s 2
The total error can be expressed by (23):
E t o t = E p h m p + E o r i e n t a t i o n + E L L S
A point on the surface, Ptrue, that is measured by the digital twin can be simulated as a measured point, Pmeas, by making use of (23).
P m e a s = P t r u e + E t o t

3. Virtual Measurement

In order to simulate a virtual measurement the measured points on the digital object need to be determined. Based on the scan trajectory, i.e., the line from the start point to the end point and the orientation of the LLS, the field of view is determined. The measured points are located in this field of view. By combining multiple fields of view, each separated by a specified line distance, a point cloud can be generated (Figure 12). In order to determine the points in the field of view, the possible intersection of a laser beam and the digital object is calculated (Figure 13). The field of view is a 2D square with a depth of view and a width of view at a stand-off distance, i.e., the minimal distance to scan points, of the laser source. At the bottom of the field of view a line of points is created. The points have a uniform distance between each other. A line, which represents the laser beam, goes from the laser source to these points. If this line intersects with the digital model in the field of view, a measured point is established. An example is illustrated in Figure 13. The lines, going from the laser source to the black squares, intersect with two objects. The intersections are the black dots. If the laser beam has multiple intersections with the objects, the intersection closest to the laser is chosen. If this intersection is in the field of view, between the blue and green dots in Figure 13, the point is measured. As can be seen in Figure 13, Object 1 is scanned, while Object 2 is too close to the laser source and cannot be scanned. This process is repeated for each field of view to generate the entire point cloud. If the digital object is an STL model of the file, a ray-triangle intersection algorithm can be used to determine the measured points. However, an STL model is a segmented model of a geometry and thus introduces an error. For simple geometries, such as spheres or cylinders, this error can be compensated. The STL model gives information about the normal on the surface in the measured point, which can be used to determine the in-plane and out-of-plane angle. Based on these parameters, the error on each individual point of the point cloud is determined. For a Monte Carlo simulation, new error values are generated for each simulation. For the uncertainty estimation in this paper, 100 Monte Carlo simulations are generated.

4. Validation

The validation of the digital twin is performed on a set of ring gauges. The ring gauges used in the experiments are depicted in Figure 14. There are two main reasons to opt for these artefacts. Firstly, the measurement of the inner cylinder activates all the components of the measurement system: the CMM has to move over a significant distance, the articulating probe head has to rotate to measure the different sides of the cylinder and the LLS has to measure a great amount of points. Secondly, the surface characteristics of the artefact which provided the model (12) and (13) are similar to the characteristics of the ring gauges. The experiments are executed with the LLS setting as indicated Table 5. The experiments are performed with Nikon Metrology LC60Dx LLS and an LK Altera 15.7.6 CMM.
Two different types of tests are performed as validation. The first test compares the uncertainty estimation obtained by the digital twin with the uncertainty of the repeated experiments. One hundred repeated measurements are experimentally performed on a ring gauge with a diameter of 125 mm. The objective is to confirm if the digital twin correctly estimates the measurement uncertainty. The second test measures a set of ring gauges with each a different diameter. The digital twin is used to determine the 95% confidence interval of each measurement. The aim is to validate the digital twin by conforming that the calibrated diameters of the ring gauges are within the 95% confidence interval of the measured diameters.
The first test measures a ring gauge with diameter of 125 mm. Four uniformly distributed sides of the inner cylinder are measured. The scan tracks of the four sides are depicted in Figure 15a,b, illustrating the measured data in the simulated environment of the digital twin. In order to reduce the calculation time, the data is selected according to a grid. The grid has 25 rows in the central axis direction of the cylinder and 400 columns on the circumference of the cylinder. The rows and columns are uniformly distributed over the measured cylinder. The measured point closest to the intersection of the gridlines is selected. After this filtration, maximally 10,000 points are used to determine the diameter and to estimate the uncertainty. The systematic error on measured points in both validation tests is compensated [18]. The least squared diameter is determined for each full measurement of the ring gauges. Both the experimental and the simulated diameter are depicted in Figure 16. In this figure it can be seen that the virtual and experimental measurements have a similar uncertainty range. The standard deviation of the diameter for the experimental data is 0.645 µm and for the simulated data it is 0.684 µm. Therefore, it can be concluded that the digital twin correctly mimics the optical measurement system.
The second test measures a set of ring gauges, each with a different diameter. The diameters are 60 mm, 70 mm, 90 mm, 125 mm and 150 mm (Figure 14). Each ring gauge is measured once in a similar way as the first test was performed and the systematic error is compensated according to [18]. The 95% confidence interval is determined by 100 simulations. The simulated measurement results are assumed to be normally distributed. As a consequence the total confidence interval is four standard deviations, i.e., 4 s. The lower confidence level, LCL, is expressed by (25) and the upper confidence level, UCL, is expressed by (26). The calibrated diameter, the measured diameter, LCL and UCL can be found in Table 6. The results in this table confirm that the digital twin of the optical system offers a reliable uncertainty estimation for all diameters involved.
LCL = measured diameter − 2s
UCL = measured diameter + 2s

5. Conclusions

This paper presents a method to simulate a digital twin of an optical measurement system. The components of the digital twin, namely the CMM, the articulating probe head and the LLS, are described. The expression of a virtual CMM and articulating probe head is summarized from the state-of-the-art and applied to the presented digital twin. The virtual LLS determines the measurement error in function of the scan depth, in-plane angle and out-of-plane angle. This digital twin assumes stable measurement conditions and uniform surface characteristics. The digital twin is validated on a set ring gauges with each a different diameter. The validation confirms that the digital twin can be used to determine the measurement uncertainty of the complex geometries. This determination can be performed offline in order to shorten inspection times.

6. Discussion

Further research is required to include the influence of all the error contributors, such as the influence of the temperature. Furthermore the error model of the LLS is dependent on the surface characteristics of the measurand. To estimate the measurement uncertainty of the object with multiple different surfaces the error model needs to be defined as a function of the surface characteristics. Keeping the ongoing Industry 4.0 evolution in mind, it would be interesting to use ‘Big Data’ to check and alter the parameters of the virtual measurement device. This will ensure that the estimated uncertainty corresponds with the actual situation.

Author Contributions

M.V.: Experiments, simulation, figures, main text. H.H.: basic Digital Twin concept, edition, formulation of interpretation and conclusions. W.D.: general coordination and editing. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data that support the findings of this study are available upon reasonable request from the authors.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. BIPM. JCGM 100:2008. Guide to the Expression of Uncertainty in Measurement (GUM): Evaluation of Measurement Data—Guide to the Expression of Uncertainty in Measurement; BIPM: Paris, France, 2008. [Google Scholar]
  2. ISO. International Vocabulary of Metrology—Basic and General Concepts and Associated Terms (VIM), ISO/IEC Guide; ISO: Geneva, Switzerland, 2007. [Google Scholar]
  3. Haitjema, H.; van Dorp, B.; Morel, M.; Schellekens, P.H.J. Uncertainty estimation by the concept of virtual instruments. Proc. SPIE 2001, 4401, 147–157. [Google Scholar] [CrossRef] [Green Version]
  4. Haitjema, H.; van Dorp, B.; Morel, M.; Schellekens, P.H.J. Task Specific Uncertainty Estimation in Dimensional Metrology. Euspen 2002, 2, 613–616. [Google Scholar] [CrossRef] [Green Version]
  5. Hermann, M.; Pentek, T.; Otto, B. Design Principles for Industrie 4.0 Scenarios. In Proceedings of the Hawaii International Conference on System Sciences, Koloa, HI, USA, 5–8 January 2016; Volume 49, pp. 3928–3937. [Google Scholar] [CrossRef] [Green Version]
  6. Flack, D. Measurement Good Practice Guide No. 42: CMM Verification; National Physical Laboratory: Teddington, UK, 2001. [Google Scholar]
  7. Carmignato, S. Experimental study on performance verification tests for coordinate measuring systems with optical distance sensors. Proc. SPIE—Int. Soc. Opt. Eng. 2009, 7239. [Google Scholar] [CrossRef]
  8. Forbes, A.B.; Harris, P.M. Simulated Instruments and Uncertainty Estimation; National Physical Laboratory: Teddington, UK, 2000. [Google Scholar]
  9. Wilhelm, R.G.; Hocken, R.; Schwenke, H. Task specific uncertainty in coordinate measurement. CIRP Ann. 2001, 50, 553–563. [Google Scholar] [CrossRef] [Green Version]
  10. Schwenke, H.; Knapp, W.; Haitjema, H.; Weckenmann, A.; Schmitt, R.; Delbressine, F. Geometric error measurement and compensation of machines-An update. CIRP Ann.—Manuf. Technol. 2008, 57, 660–675. [Google Scholar] [CrossRef]
  11. Beaman, J.; Morse, E. Experimental evaluation of software estimates of task specific measurement uncertainty for CMMs. Prec. Eng. 2010, 34, 28–33. [Google Scholar] [CrossRef]
  12. Van Gestel, N.; Kruth, J.-P.; Bleys, P. Determining Measurement Uncertainties of Feature Measurements on CMMs. Ph.D. Thesis, KU Leuven, Leuven, Belgium, 2011. [Google Scholar]
  13. Hu, Y.; Yang, Q. Design, Implementation, and Testing of Advanced Virtual Coordinate-Measuring Machines. IEEE Trans. Instrum. Meas. 2012, 61, 1368–1376. [Google Scholar] [CrossRef]
  14. Sładek, J.; Gąska, A. Evaluation of coordinate measurement uncertainty with use of virtual machine model based on Monte Carlo method. Measurement 2012, 45, 1564–1575. [Google Scholar] [CrossRef]
  15. Gąska, A.; Gąska, P.; Gruza, M. Simulation Model for Correction and Modeling of Probe Head Errors in Five-Axis Coordinate Systems. Appl. Sci. 2012, 6, 144. [Google Scholar] [CrossRef] [Green Version]
  16. Gąska, A.; Harmatys, W.; Gąska, P.; Gruza, M.; Gromczak, K.; Ostrowska, K. Virtual CMM-based model for uncertainty estimation of coordinate measurements performed in industrial conditions. Measurement 2017, 98, 361–371. [Google Scholar] [CrossRef]
  17. Gąska, A.; Sładek, J.; Gąska, P. Challenges for Uncertainty Determination in Dimensional Metrology Put by Industry 4.0 Revolution. In Proceedings of the 5th International Conference on the Industry 4.0 Model for Advanced Manufacturing, Belgrade, Serbia, 1–4 June 2020; pp. 92–104. [Google Scholar] [CrossRef]
  18. Vlaeyen, M.; Haitjema, H.; Dewulf, W. Error compensation for laser line scanners. Measurement 2021, 175, 109085. [Google Scholar] [CrossRef]
  19. Huang, P.; Ni, J. On-line error compensation of coordinate measuring machines. Int. J. Mach. Tools Manuf. 1995, 35, 725–738. [Google Scholar] [CrossRef]
  20. Kruth, J.-P.; Vanherck, P.; De Jonge, L. Self-calibration method and software error correction for three-dimensional coordinate measuring machines using artefact measurements. Measurement 1994, 14, 157–167. [Google Scholar] [CrossRef]
  21. Haitjema, H. Straightness, flatness and cylindricity characterization using discrete Legendre polynomials. CIRP Ann. 2020, 69, 457–460. [Google Scholar] [CrossRef]
  22. Mitutoyo. Linear Encoder: NC Linear Scale Systems; Mitutoyo: Kawasaki, Japan, 2021. [Google Scholar]
  23. Van Dorp, B.; Haitjema, H.; Delbressine, F.; Bergmans, R.; Schellekens, P.H.J. Virtual CMM using Monte Carlo methods based on frequency content of the error signal. Proc. SPIE—Int. Soc. Opt. Eng. 2001, 4401, 158–167. [Google Scholar] [CrossRef] [Green Version]
  24. Petro, S.; Moroni, G. Statistics-based decision rules for the ISO 10360 series of standard tests. CIRP Ann.—Man. Tech. 2021, 70, 423–426. [Google Scholar] [CrossRef]
  25. ISO 10360-2:2001. Geometrical Product Specifications (GPS)—Acceptance and Reverification Tests for Coordinate Measuring Machines (CMM)—Part 2: CMMs Used for Measuring Size; ISO: Geneva, Switzerland, 2001. [Google Scholar]
  26. Flack, D. Measurement Good Practice Guide No. 43: CMM Probing; National Physical Laboratory: Teddington, UK, 2001. [Google Scholar]
  27. ISO 10360-5:2010. Geometrical Product Specifications (GPS)—Acceptance and Reverification Tests for Coordinate Measuring Machines (CMM)—Part 5: CMMs Using Multiple-Stylus Probing Systems; ISO: Geneva, Switzerland, 2010. [Google Scholar]
  28. Renishaw. PH10 Motorised Heads and Controllers—Installation Guide; Renishaw: Wotton-under-Edge, UK, 2008. [Google Scholar]
  29. Contri, A.; Bourdet, P.; Lartigue, C. Quality of 3D digitised points with non-contact optical sensors. CIRP 2002, 51, 443–446. [Google Scholar] [CrossRef]
  30. Boehler, W.; Vincent, M.B.; Marbs, A. Investigating laser scanner accuracy. CIPA Int. Symp. 2003, 34, 696–701. [Google Scholar]
  31. Van Gestel, N.; Cuypers, S.; Bleys, P.; Kruth, J.-P. A performance evaluation test for laser line scanners on CMMs. Opt. Lasers Eng. 2009, 47, 336–342. [Google Scholar] [CrossRef] [Green Version]
  32. Vlaeyen, M.; Boeckmans, B.; Haitjema, H.; Dewulf, W. Measurement error model for laser line scanners. Euspen 2020, 20, 301–304. [Google Scholar]
Figure 1. A CMM with the prismatic joints which allows three translation movements of the phmp along the axis of movement. X, Y and Z denote the linear movement.
Figure 1. A CMM with the prismatic joints which allows three translation movements of the phmp along the axis of movement. X, Y and Z denote the linear movement.
Sensors 21 06638 g001
Figure 2. Example of positional and straightness errors of a single simulation of a virtual CMM.
Figure 2. Example of positional and straightness errors of a single simulation of a virtual CMM.
Sensors 21 06638 g002
Figure 3. Example of angular errors of a single simulation of a virtual CMM.
Figure 3. Example of angular errors of a single simulation of a virtual CMM.
Sensors 21 06638 g003
Figure 4. An example of the total error of the phmp in the coordinate system of a virtual CMM. The error components of this virtual CMM are depicted in Figure 3 and Figure 4.
Figure 4. An example of the total error of the phmp in the coordinate system of a virtual CMM. The error components of this virtual CMM are depicted in Figure 3 and Figure 4.
Sensors 21 06638 g004
Figure 5. ISO 10360−2 test for the virtual CMM.
Figure 5. ISO 10360−2 test for the virtual CMM.
Sensors 21 06638 g005
Figure 6. 250 performance indicators of the virtual CMM based the ISO 10360-2 acceptance test.
Figure 6. 250 performance indicators of the virtual CMM based the ISO 10360-2 acceptance test.
Sensors 21 06638 g006
Figure 7. The articulating probe head with an LLS as probing system mounted on it.
Figure 7. The articulating probe head with an LLS as probing system mounted on it.
Sensors 21 06638 g007
Figure 8. Triangulation principle of an LLS based on [18].
Figure 8. Triangulation principle of an LLS based on [18].
Sensors 21 06638 g008
Figure 9. Scan depth, in-plane angle and out-of-plane angle of an LLS based on [32].
Figure 9. Scan depth, in-plane angle and out-of-plane angle of an LLS based on [32].
Sensors 21 06638 g009
Figure 10. The systematic error of the LLS for stainless steel surfaces in function of the measurement strategy.
Figure 10. The systematic error of the LLS for stainless steel surfaces in function of the measurement strategy.
Sensors 21 06638 g010
Figure 11. The random error of the LLS for stainless steel surfaces in function of the measurement strategy.
Figure 11. The random error of the LLS for stainless steel surfaces in function of the measurement strategy.
Sensors 21 06638 g011
Figure 12. Point cloud generation of a surface (blue) by multiple fields of view.
Figure 12. Point cloud generation of a surface (blue) by multiple fields of view.
Sensors 21 06638 g012
Figure 13. The intersection of the laser beams and the objects in order to determine the measured points.
Figure 13. The intersection of the laser beams and the objects in order to determine the measured points.
Sensors 21 06638 g013
Figure 14. The used ring gauges for the validation of the digital twin.
Figure 14. The used ring gauges for the validation of the digital twin.
Sensors 21 06638 g014
Figure 15. (a) The scan trajectories (red dashed lines) of the measurement of the inner cylinder; (b) The data (blue dots) of the simulated measurement in the digital environment.
Figure 15. (a) The scan trajectories (red dashed lines) of the measurement of the inner cylinder; (b) The data (blue dots) of the simulated measurement in the digital environment.
Sensors 21 06638 g015
Figure 16. Comparison between the experimentally obtained diameters and the diameters obtained by simulation.
Figure 16. Comparison between the experimentally obtained diameters and the diameters obtained by simulation.
Sensors 21 06638 g016
Table 1. Parameters used to simulate the positional and straightness errors of Figure 2.
Table 1. Parameters used to simulate the positional and straightness errors of Figure 2.
s/10−6c/µm a i 2 2 / µ m L/m
exx0.440.370.21.500
eyx00.370.21.500
ezx00.370.21.500
exy0.440.370.20.700
eyy0.440.370.20.700
ezy00.370.20.700
exz0.440.370.20.600
eyz0.440.370.20.600
Table 2. Parameters used to simulate the rotational (angular) angular errors of Figure 3.
Table 2. Parameters used to simulate the rotational (angular) angular errors of Figure 3.
s/10−6L/m
eax0.81.500
ebx0.81.500
ecxc(eyx)/L1.500
eayc(ezy)/L0.700
ebyc(ezx)/L0.700
ecy0.80.700
eaz0.80.600
ebz0.80.600
ecz0.80.600
Table 3. The coefficients of the systematic error model of the LLS.
Table 3. The coefficients of the systematic error model of the LLS.
c1,sc2,sc3,sc4,sc5,sc6,sc7,sc8,sc9,sc10,s
1/mm1/rad1/rad/mm/rad2mm/rad2mm/radmm/rad2mm/radmm
6.6922 × 10 6 4.3130 × 10 7 8.2636 × 10 7 1.3893 × 10 3 1.8983 × 10 6 2.5683 × 10 7 4.5744 × 10 5 2.5560 × 10 6 6.2625 × 10 5 1.3218 × 10 1
Table 4. The coefficients of the random error model of the LLS.
Table 4. The coefficients of the random error model of the LLS.
c1,rc2,rc3,rc4,rc5,rc6,rc7,rc8,rc9,rc10,r
1/mm1/rad1/rad/mm/rad2mm/rad2mm/radmm/rad2mm/rad/
2.4984 × 10 7 6.9608 × 2.9786 × 10 9 6.3406 × 10 5 1.5465 × 10 6 2.3959 × 10 7 6.6406 × 10 5 5.1507 × 10 6 2.9618 × 10 5 8.0886 × 10 3
Table 5. Settings of the LLS.
Table 5. Settings of the LLS.
SettingValue
Line distance.0.25 mm
Point distance0.01 mm
Laser power100%
Exposure 15%
Signal threshold10%
3D filteringOff
Edge filter5
Reflectivity filterOn
Table 6. The second validation test with calibrated diameter, measured results and the estimated confidence interval.
Table 6. The second validation test with calibrated diameter, measured results and the estimated confidence interval.
Calibrated Diameter/mmLCL/mmMeasured Diameter/mmUCL/mmValidated?
60.001060.000460.001660.0029
70.002070.000770.001970.0031
89.996989.995589.996889.9981
125.0050125.0034125.0048125.0062
149.9994149.9966149.9983150.0001
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Vlaeyen, M.; Haitjema, H.; Dewulf, W. Digital Twin of an Optical Measurement System. Sensors 2021, 21, 6638. https://doi.org/10.3390/s21196638

AMA Style

Vlaeyen M, Haitjema H, Dewulf W. Digital Twin of an Optical Measurement System. Sensors. 2021; 21(19):6638. https://doi.org/10.3390/s21196638

Chicago/Turabian Style

Vlaeyen, Michiel, Han Haitjema, and Wim Dewulf. 2021. "Digital Twin of an Optical Measurement System" Sensors 21, no. 19: 6638. https://doi.org/10.3390/s21196638

APA Style

Vlaeyen, M., Haitjema, H., & Dewulf, W. (2021). Digital Twin of an Optical Measurement System. Sensors, 21(19), 6638. https://doi.org/10.3390/s21196638

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