Full text
SOFTWARE ENGINEERING VOLUME: 17 |NUMBER: 3 |2019 |SEPTEMBER On Registration of Vector Maps with Known Correspondences Ales JELINEK, Adam LIGOCKI Central European Institute of Technology, Brno University of Technology, Purkynova 123, 612 00 Brno, Czech Republic [email protected], adam.ligoc[email protected] DOI: 10.15598/aeee.v17i3.3451 Abstract. Data association and registration is an important and actively researched topic in robotics. This paper deals with registration of two sets of line segments, which is especially useful in mapping applications. Our method is non-iterative, finding an optimal transformation in a single step, in a time proportional only to a number of the corresponding line segments. The procedure also provides diagnostic measures of reliability of the computation and of similarity of the data sets being registered. At this point, the method presumes known correspondences, which is limiting, but the discussion, in the end, reveals some possibilities to overcome this issue. Practical properties are demonstrated on a typical task of localization of a robot with a known map. Keywords Correspondence search, least squares, point cloud, registration, vectorization. 1. Introduction In robotics, a perception system of a robot is essential for its operation in the environment. Basic behaviour, such as collision avoidance, can work without any higher interpretations of the sensed data, because the geometrical information needed is either directly measured (laser scanning) [1] or derived exclusively from the incoming data (stereo-vision) [2]. Complex behaviour of the robot, possibly leading to Artificial Intelligence (AI), requires much more. One of the key operations is association of the recent measurements with previous knowledge of the robot, which should open a way for learning (accumulation of knowledge) and reasoning (usage of the learned facts) [3]. Data association problem is tightly coupled with the concept of similarity. Geometrical similarity is not sufficient in this case because of its binary nature - objects in traditional geometry can be similar or not, but nothing in between. In our everyday human experience, similarity of objects is a smooth metric, describing intuitively evident, but hardly evaluable "distance" between two objects. Modern robotics in search of AI aims at complex object recognition, which also leads to extremely complex similarity evaluation. This is the reason why data association problem is so hard and why it is still an open research topic. Similarity can be examined in various ways for a pair of objects because there are usually many distinct features possible to identify on them. Overall similarity is then a function of similarities between corresponding features. Of course, if a feature is too complex, it can be deconstructed again and again, possibly until its mathematical and physical foundations are revealed. Human introspection is not able to dive into the unconscious mind deep enough, but according to some scientists [4], this is how our sense of similarity works as well. A frequently examined feature is correlation of two data sets. In the case of robotics, this task appears every time a new measurement of the robot’s surroundings is acquired and needs to be aggregated with its internal representation of the world. The process of data fitting is usually referred to as registration, and an optimum is reached when the correlation (aka similarity in this case) is maximal. Our method registers two sets of line segments (vector maps) in a single step and provides diagnostic information on reliability and actual similarity of both sets. A downside is the necessity of data association before computation, but in the final discussion about further research, we will show that the method is usable for correspondence search as well. c 2019 ADVANCES IN ELECTRICAL AND ELECTRONIC ENGINEERING 330
SOFTWARE ENGINEERING VOLUME: 17 |NUMBER: 3 |2019 |SEPTEMBER 2. State of the Art As can be seen in a wide range of literature, robotic mapping was based on point-like features for a long time [5], [6] and [7]. On the other hand, this method seems to face its limits, and the recent research changes its direction towards more complex objects [3]. 2.1. Iterative Closest Point Method Iterative Closest Point (ICP) [8] is by far the most popular method for registration of geometrical data today [9]. It is able to work both in 2D and 3D space and can be applied on point sets as well as many other geometrical primitives as well. Authors also provide a proof of convergence to the local minimum. If used with a fast space partitioning data structure, the method is computationally efficient and easily parallelizable. Generalized ICP [10] extends the original method with a probabilistic approach and promises better convergence and accuracy. Many other variants exist [11] and [12], especially those, that address the problem of convergence to the local minimum. Various preoptimization techniques are used for this reason, for example, geometric features [13], or genetic algorithms [14]. 2.2. Alternatives to ICP Many alternatives to the ICP method exist, but their usage is much less frequent because there is usually some significant drawback reducing their applicability. Correlation already mentioned in the introduction is a good example. Although it is theoretically capable to find a globally optimal registration transformation, the exhaustive search algorithm cannot do it with reasonable computational costs, which disqualifies it from most of the practical applications. Random sample consensus method [15] is based on a random sampling of possible correspondences. Although it is a stochastic method, which does not guarantee convergence, it is frequently used as a part of more complex registration systems. Principal component analysis stems from statistical properties of the processed point cloud. It is useful for point clouds with a simple shape [12], but more complex geometrical primitives or dissected shapes of the data sets are out of its possibilities. Computer vision provides methods based on feature extraction, which are easier to associate and much sparser, reducing computational costs. Scale-Invariant Feature Transform (SIFT) [16] and Speeded Up Robust Features (SURF) [17] are well-known examples, but their applicability in geometrical measurements is limited. 2.3. Geometrical Primitives in the Registration Process Methods specifically designed to work with line segments, curves etc. are very rare. More possible reasons for this situation might be found, but most probably it was the generality and simplicity of the ICP method, which prevented researchers from further investigation. In addition, paper [18], published shortly after the original ICP proposal, came with criticism of the primitive based approach and suggested points as a more robust alternative. On the other hand, the problem of registration and association is not yet satisfyingly solved, and isolated attempts to achieve this goal using geometrical primitives can be found. Iterative closest line algorithm [19] directly generalizes ICP to line segments, while the other approaches [20] and [21] present completely novel approaches. Some modifications to the original ICP method make use of geometrical primitives as well [10] and [22]. All of these examples prove that geometrical primitives have their benefits. In [23], we have shown, that proper approximation using a more complex geometric primitive can reliably reduce the noise inherently present in the point cloud, which disproves the criticism in [18]. In combination with the general tendency towards object-oriented mapping in robotics [3], the complex object registration seems to be a viable research direction. 3. One-Step Registration Method As stated in the Introduction, the method is derived for corresponding pairs of line segments in twodimensional space, where one line segment in the pair belongs to the static set (in robotics usually a map) and the second comes from the dynamic one (new measurement). The output of the method is a transformation applicable to the dynamic set, which leads to optimal registration with the static line segments. Figure 1 depicts one corresponding pair with labelling, as used in the following computations. Note that the line segments are oriented by begin and end points with appropriate directional vector. If the points were swapped, they would denote different line segment. We can find an infinite number of transformations of the dynamic line segment `Din each pair, which will move it on the same line with its static counterpart `S. c 2019 ADVANCES IN ELECTRICAL AND ELECTRONIC ENGINEERING 331
SOFTWARE ENGINEERING VOLUME: 17 |NUMBER: 3 |2019 |SEPTEMBER x y pD pS~ BD `D~ ED ~ BS `S ~ ES ~ dD ~nD ~ dS ~nS α Fig. 1: Static (`S) and dynamic (`D) line segments before the fitting process. All points, vectors and distances importants for further computations are marked out. To allow registration of incomplete data, all of them are treated as equally suitable. An object in a 2D space has three degrees of freedom, therefore each transformation is described by three independent variables and corresponds to a single point in a three dimensional space of all possible transformations T. The set of all ideal transformations bringing `Sand `Din line can be described as a one dimensional subspace tiof T. Using notation from Fig. 1, we get an equation: ti:(pDi −pSi)~nSi αi+τi~ dSi 0=~ Pi+τi~vi,(1) where pDi =~ BDi ·~nDi,pSi =~ BSi ·~nSi and arbitrary coefficient τi∈R.~ Piand ~viare denominations for further computations, all written for an i-th corresponding pair from the input sets of line segments. An example of those transformation lines in Tis shown in Fig. 2. The optimal transformation for the whole data set is then found as the closest point to all of the transformation lines t1. . . tN, where Nis the number of corresponding pairs. Using standard vector formula for point-to-line distance, we get: li=k(~ T−~ Pi)×~vik k~vik,(2) where ~ Tis the optimal transformation, and ~ Piand ~vi come from Eq. (1). ~ Tis found using the total least squares method, and for additional flexibility, an arbitrary weight wifor each pair was added. The problem formulated by the equality: N X i=1 wi ∂l2 i(~ T) ∂~ T=∂(k~ T−~ Pik2−(~ T−~ Pi)·~vi)2 ∂~ T=~ 0, (3) ∆x ∆y ∆α t1 t3 t2 t4 t5 TxTy Tα ∆x ∆y ∆α t1 t3 t2 t4 t5 TxTy Tα Fig. 2: An example of the search for an optimal transformation in the space of all possible transformations T. The double lines stand for the perfect transformations of each corresponding pair and the optimal transformation is shown as a black dot in the magnified area. leads to an equation: N X i=1 wi~ T− N X i=1 wi~vi(~ T·~vi) = N X i=1 wi~ Pi,(4) which in matrix notation looks as follows: Pwiv2 yi −Pwivxivyi 0 −Pwivxivyi Pwiv2 xi 0 0 0 Pwi Tx Ty Tα = = PwiPxi PwiPyi PwiPαi .(5) For convenience, let us define a simplified notation for terms of the matrices: Sy2−Sxy 0 −Sxy Sx20 0 0 Sw Tx Ty Tα = SP x SP y SP α .(6) Equation (5) clearly shows, that translational and rotational parts of the optimal transformation can be found independently, which is a consequence of single optimal rotation for each corresponding pair. Solutions for the translational part is straightforward: Tx=D1 D, Ty=D2 D,(7) where (using the simplified notation): D=Sx2Sy2−S2 xy, D1=SP xSx2−SxySP y, D2=SP ySy2−SxySP x. (8) c 2019 ADVANCES IN ELECTRICAL AND ELECTRONIC ENGINEERING 332
SOFTWARE ENGINEERING VOLUME: 17 |NUMBER: 3 |2019 |SEPTEMBER Situation of the rotational part of the transformation is more complicated because an angle is a circular quantity, so the classical average computation: Tα=SP α Sw ,(9) might lead to an unexpected result. When averaging two angles, there are always two possible outcomes due to circularity, and there is no guarantee, that the right one (expected one) will be obtained. To get the correct results, the Mitsuta’s averaging method [24] has been used. An algorithmic implementation of the method is based on [25] and follows the pseudocode of Alg. 1. The output variables Swα and Swα2should be used in place of Pwiαiand Pwiα2 iin all equations in this paper. Algorithm 1 Mitsuta’s averaging of angles. Input: [α1. . . αN],such that −π < αi< π, [w1. . . wN]such that wi∈R. Output: Correct weighted sums of αi(Swα) and α2 i (Swα2). 1: Swα =Swα2=αold = 0 2: for all αi, wido 3: if i= 1 then 4: αold =αi 5: Swα =wiαi 6: Swα2=wiα2 i 7: else 8: δ=αi−αold 9: if δ < −πthen 10: δ+= 2π 11: else if δ > π then 12: δ−= 2π 13: end if 14: αold += δ 15: Swα += wiδ 16: Swα2+= wiδ2 17: end if 18: end for The core of the method is finished at this point because we are able to compute the optimal transformation of the dynamic line segment set in a single step. On the other hand, there are several further topics worth discussion, which will be addressed in the following sections. 3.1. Alternative Computation of Optimal Rotation Compatible with 3D Pose Estimation The previously explained procedure of computation of Tαis perfectly suitable for 2D problems, but in practice, we often need to take into account the third dimension as well. Pose estimation and especially orientation estimation in 3D is more tricky compared to 2D case because direct computation with angles leads to non-linear equations. To keep linearity, an alternative formulation of the error metric is being used. The first proposal of this approach was the Wahba’s problem [26] stated as follows: Given two sets of Npoints {~v1,~v2, . . . ,~vN}and {~v0 1,~v0 2, . . . ,~v0 N}, where N≥2, find the rotation matrix R(i.e. the orthogonal matrix with determinant +1) which brings the first set into the best least-squares coincidence with the second. That is, find Rwhich minimizes: N X i=1 k~v0 i−R~vik2.(10) We see from Eq. (10) that the minimized quantity is not the angle between corresponding vectors from both sets, but rather the Euclidean distance between their tips. Different criterion function gives slightly different optimal rotation; therefore, strictly speaking, makes both methods incompatible. If the perfect compatibility of computation of Tαwith the Wahba’s approach is required, we provide the following procedure. State of the art contains plenty of methods for dealing with the Wahba’s problem in 3D [27], but for 2D vectors, a great simplification is possible. Let us restate the Eq. (10) using the notation from Fig.1: Eα= N X i=1 wik~ dSi −R~ dDi k2,(11) where Eαis the total error and the rotation matrix R is as follows: R=cos Tα−sin Tα sin Tαcos Tα=c−s s c.(12) For optimal Tα, the Eq. (11) differentiated with respect to Tαshould be equal to zero. First, we expand and simplify the relation to the form: Eα= 2 N X i=1 wi−2sXwi~nSi ·~ dDi −2cXwi~ dSi ·~ dDi, (13) which can be trivially differentiated: ∂Eα(Tα) ∂Tα = 2sXwi~ dSi ·~ dDi −2cXwi~nSi ·~ dDi = 0, (14) and rearranged giving tangent of the optimal Tα: tan Tα=sin Tα cos Tα =Pwi~nSi ·~ dDi Pwi~ dSi ·~ dDi .(15) Tαcan be easily retrieved by an atan2(y, x)function provided by every decent mathematical library. c 2019 ADVANCES IN ELECTRICAL AND ELECTRONIC ENGINEERING 333
SOFTWARE ENGINEERING VOLUME: 17 |NUMBER: 3 |2019 |SEPTEMBER 3.2. Metric for the Transformation Space and an Isomorphism with a Spring Net Equilibrium A more careful examination of the Eq. (2) reveals that the computation requires existence of a metric on the transformation space T, but we have not defined it. Derivation of the optimal transformation silently presumes usual Euclidean metric on E3, and at the point, where this expectation would fail, the computation naturally splits into two independent parts for the translational and the rotational components of the transformation (see the zeros in the left matrix in the equation Eq. (5)) and the correct results are obtained separately. This dirty trick means that we have used distance between transformations in the computation, but we are not able to actually evaluate it. Such discrepancy definitely needs clarification. Of course, the problem lies in the fact that linear and angular quantities would be carelessly summed up during Euclidean metric evaluation, which is physically inadmissible. Fortunately, inspiration from a completely unrelated physical problem offers an elegant solution. The optimal transformation was found using the total least squares method, which essentially minimizes the sum of the squared distances from the transformation (point in T) to the transformation lines Eq. (1). Similar situation arises in case of a net of springs connected together, for which we want to find an equilibrium with the smallest sum of potential energies PEi. Since the potential energy of a spring is proportional to a square of its displacement from the quiescent state, multiplied by a stiffness coefficient according to a formula El=1 2kll2, the computation results in minimization of squared distances as well, making both tasks mathematically isomorphic. Potential energy for torsion springs is defined in a similar way (Ea=1 2kaα2), and potential energies of both kinds of springs can be obviously summed up. Introduction of linear and angular coefficients kland kα allows physically sound summation of the translational and rotational portions of the total squared distance between two transformations. It is also important to point out that introduction of the coefficients does not affect position of the optimal transformation because linear scaling of a function does not move its minima. Mitsuta’s averaging could be also incorporated into the metric of Tand derivation of the method could be rebuilt on those foundations, but we do not thing it is necessary. Considerations above fully legitimise formulas for the optimal transformation and will be further used in the following section. 3.3. The Method in Context of General Similarity The computation above provides an optimal transformation for any given set of line segment pairs (except situation, when discriminant Dfrom Eq. (8) is zero), but there is no measure describing, how compromise the solution actually is. In principle, this means exposure of the internal criterion function, but with proper scaling using the linear and angular coefficients described previously. Sum of the squared distances between transformation lines and the optimal transformation ~ T, derived from Eq. (2), is: Xl2 i(~ T) = Xwi((Tα−Pαi)2+ (Tx−Pxi)2v2 yi +(Ty−Pyi)2v2 xi −2(Tx−Pxi)(Ty−Pyi)vxivyi), (16) where Tx,Tyand Tαare parameters of the optimal transformation as derived above, and the rest of the variables comes from the definition Eq. (1). Total contribution of rotational part of the distance between transformations can be expressed as: Aα=kαXwiP2 αi −TαXwiPαi,(17) where kαis a coefficient for the rotational movement, and PwiP2 αi is a new sum, which needs to be precomputed. Methodology for averaging circular quantities in [25] and pseudocode in Alg. 1 cover this matter as well. In case we work with Tαcomputation described in Sec. 3.1. we use the sum of squared errors given by Eq. (13) and compute Aαas a product: Aα=kαEα.(18) Total contribution of the translational part of the distance is somewhat more complicated to derive, but can be simplified down to the form: At=ktXwi(Pxivyi −Pyivxi)2−T2 xXwiv2 yi + +2TxTyXwivxivyi −T2 yXwiv2 xi.(19) where ktis a coefficient for the translational portion of the distance. Similar to the equation Eq. (17), there is only one additional sum to be precomputed. Ambiguity Aof the solution is then expressed by a simple sum of the angular and linear components: A=Aα+At.(20) Ambiguity evaluation provides a control mechanism expressing ambivalence of the data sets. If the fitting is perfect, the lines of optimal transformations intersect at one point, and the ambiguity is zero. Noised measurements from practical experiments exhibit some ambiguity, but it stays limited. If the limit is exceeded, c 2019 ADVANCES IN ELECTRICAL AND ELECTRONIC ENGINEERING 334
SOFTWARE ENGINEERING VOLUME: 17 |NUMBER: 3 |2019 |SEPTEMBER a strong suspicion of badly set correspondences is in place. Equation (17), Eq. (19) and Eq. (20) work for any transformation in place of ~ T. For example, if an ambiguity before registration is needed, Tx,Tyand Tα would be zero. The notion of similarity appears regularly in literature, but there is no widely accepted definition. The only common property corresponds to an intuitive expectation that the more similar the objects are, the higher is the number representing it. Reciprocal of the ambiguity as defined above seems to be a good candidate for similarity evaluation of the sets of line segments. 3.4. Reliability Evaluation of the Optimal Transformation Every computation that may fail needs some way to detect hazardous results and report mistakes, if it is meant to be used in practice. Our registration method for line segment sets fails, when all line segments are collinear, which is correct behaviour and can be easily detected because in such case the determinant D from Eq. (8) is zero. In real-world situations, exact collinearity rarely appears, but nearly collinear lines can cause wrong results as well, and this can happen more frequently. Such situation produces perfectly soluble equations, but the computation is extremely sensitive to noise as depicted in Fig. 3. Continuous reliability metric covering the situation from degenerate input to perfect data from synthetic tests is therefore mandatory. x ≈ ≈ y 0.00 1.00 2.00 3.00 4.00 1.00 1.01 0.99 −1.00 −0.99 −1.01 S1 D1 D2 S2 ≈ ≈ ≈ ≈ Fig. 3: Nearly collinear line segments make the registration process extremely sensitive to noise. Tiny deviation of the line segments Diwill cause translation by three units in the xdirection after registration. Reliability evaluation is designed to detect such hazardous situations. To evaluate the reliability, we have decided to examine direction vectors of the registered line segments because if most of them point in the same direction, the result will be less reliable, than in a case, when x y ~σ1 ~σ2 Fig. 4: Small circles represent direction vectors of the static line segments and their opposite counterparts. Vectors ~σ1 and ~σ2correspond to eigenvectors of Ewith lengths √λ1 and √λ2respectively. The angle defines reliability. there are many orthogonal pairs. The main idea of the computation is shown in Fig. 4. For each direction vector, its opposite counterpart is added as well, which ensures, that a mean of their coordinates becomes zero and collinear line segments with opposite direction vectors will appear the same for the reliability evaluation purpose. For this purpose, the precomputed sums change as follows: N P i=1 wivxi ⇒0, N P i=1 wiv2 xi ⇒2 N P i=1 wiv2 xi, N P i=1 wivyi ⇒0, N P i=1 wiv2 yi ⇒2 N P i=1 wiv2 yi, N P i=1 wi⇒2 N P i=1 wi, N P i=1 wivxivyi ⇒2 N P i=1 wivxivyi. (21) Principal component analysis is used to inspect dispersion of the direction vectors. The vectors demarcate points on a unit circle, and for those points, a correlation matrix Ecan be found: E=1 Pwi N P i=1 wiv2 xi N P i=1 wivxivyi N P i=1 wivxivyi N P i=1 wiv2 yi .(22) Eigenvalues are computed using the standard formula Det(E−λI)=0, which leads to a quadratic equation: λ2−λPwiv2 xi +Pwiv2 yi Pwi + +Pwiv2 xi Pwiv2 yi −(Pwivxivyi)2 (Pwi)2= 0.(23) c 2019 ADVANCES IN ELECTRICAL AND ELECTRONIC ENGINEERING 335
SOFTWARE ENGINEERING VOLUME: 17 |NUMBER: 3 |2019 |SEPTEMBER Since: Xwiv2 xi +Xwiv2 yi =Xwi(v2 xi +v2 yi) = Xwi, (24) and Pwiv2 xi Pwiv2 yi −(Pwivxivyi)2 (Pwi)2=Det(E),(25) the Eq. (23) can be simplified in the following manner: λ2−λ+Det(E)=0.(26) The relationship of the eigenvalues λ1and λ2is: λ1,2=1 2±q1 4−Det(E), λ1,2=1 2±q1 4−λ1λ2, λ2 1,2−λ1,2+1 4=1 4−λ1λ2, λ2 1−λ1=λ2 2−λ2, λ1+λ2= 1. (27) Usage of the formulas sin2+cos2= 1 and sin(2) = 2 sin cos leads to the criterion value: R= sin(2)=2pλ1λ2= 2pDet(E).(28) The definition of reliability directly shows its properties. Because the positive result of the square root is taken, the value of Rcan change in the interval [0; 1], where zero demarcates an unsolvable situation and one means the perfect reliability. There is a smooth transition between these two states, so the unreliable results caused by nearly collinear line segments can be easily detected. 3.5. Implementation Considerations Besides subtleties of averaging of angles, which were already discussed above, there are two more implementation details worth mentioning. The first is precomputation of sums. Throughout the computation, there are many sums, which take linear time to compute, proportional to the total number of corresponding pairs N. In many practical situations, we need to modify the sets slightly and recompute the registration again. Keeping the sums and adding or subtracting the values corresponding to the pair, which is currently being added or removed, can save a lot of processing time. The same can be applied to a whole set of correspondences, for which the sums are known. This way, the modification of the precomputed sums take constant time, independent of N, greatly improving the efficiency of algorithms using our method. Second important note regards numerical stability. When adding a lot of floating point numbers with certain precision and storing them in a variable of the same byte length, inevitable loss of accuracy occures, which may negatively affect the computation. Our implementation in C++ uses float type for line segment parameters and double precision for sums. This precaution ensures enough precision for stable computation. 4. Experimental Verification This section presents several localization experiments with a priori known maps and artificially generated data. This approach allows us to explore a large amount of combinations of data parameters, environments, special cases and registration algorithm set-ups, which would be hard or even impossible in practice. We have chosen three simple scenarios with special characteristics (see Fig. 5), which should illustrate all important aspects of the registration process. We start with a virtual laser scanner positioned in several places in the map, where simulated data are acquired. Number of points per scan and Gaussian noise can be set individually for every measurement. Point-like data are processed using the total least squares vectorization algorithm [23], providing a set of line segments to be registered with the map. Exactly given poses of the scanner serve for the verification of quality of the registration process. Virtual environment is also useful because the correspondences between scan and map are known for sure, which simplifies experimentation and removes a potential source of human errors. 4.1. Influence of Line Segment Accuracy on the Registration Process Since both vectorization of the points as well as registration of the line segments are performed in the leastsquares sense, we would expect that with growing number of input data and decreasing noise, the accuracy will improve. For this reason, we have prepared a set of experiments, whose results are summed up in Fig. 6. The expectation is perfectly satisfied, and we observe a great impact of both parameters. Both linear and angular error decrease linearly with the growing number of input points and quadratically with the diminishing noise. We have also compared the outputs of Eq. (19) and Eq. (17) plotted in green in Fig. 6 with the dispersion of estimated poses around the true pose (plotted in gray). Estimated error is (up to scale) equivalent to the ground truth, which justifies its usage in practice. c 2019 ADVANCES IN ELECTRICAL AND ELECTRONIC ENGINEERING 336
SOFTWARE ENGINEERING VOLUME: 17 |NUMBER: 3 |2019 |SEPTEMBER (a) CutSquare. (b) Oblique. (c) Pillars. Fig. 5: The three testing environments for registration and localization experiments. Thick gray line segments demarcate the obstacle edges and the black dashed path corresponds to the trajectory of the virtual robot with marked out poses, where the surround scanning was performed. For better visualization, in Fig. 7 we have plotted the positional and rotational dispersion under varying scanner parameters. The statistics are based on 100 virtual scans taken from every given point. The ellipses correspond to dispersion of estimated positions, and blue pies represent uncertainty in orientation. We can visually confirm findings from Fig. 6 regarding point density and noise level influence. Also, the central points of the ellipses and axes of the pies are closer to the true pose, which proves another frequently used technique: If we have a poor sensor with low point density and high noise, taking several scans in one place can help to increase the accuracy. There is one more interesting phenomenon to be observed in experiments in Fig. 7a, Fig. 7b, Fig. 7c, Fig. 7d and Fig. 7e. The dispersion ellipses at a given point are changing their size with changing conditions, but their shape and tilt are nearly constant despite the number of points or the noise level. This is given by the structure of the surrounding environment and shows the importance of reliability and ambiguity evaluation. Even such a simple scenario as the CutSquare environment has varying informational gain, when scanned from different positions. Even more volatile in this regard is the Pillars environment, where the view is obstructed by narrow obstacles. Significance of this behavior can be spotted in Fig. 7f, where mediocre point number and noise amplitude result in highly differing accuracy of results in various points of the trajectory. Also note, that some dispersion ellipses lap over the map edges into the mass of the obstacle. The registration method has no mechanism to detect such erroneous results, but additional verification after the registration process is easy to append. 4.2. Correspondence Weighting The equations for optimal transformation derived in the theoretical part of this paper are all designed to incorporate weight allowing prioritization of certain corresponding pairs over the others. This feature was not utilized in the previous section, but its potential to 102103104 Number of points P 10−3 10−1 101 Error metric (a) Linear error functions. 102103104 Number of points P 10−8 10−6 10−4 Error metric (b) Angular error functions. Fig. 6: Error functions (green for Atfrom Eq. (19) and gray for comparison with ground truth) of the registration process. The plots belong to the CutSquare environment scanned with varying point density and (horizontal axis) and noise level (σ= 1,3,10 units in the bottom-up order). Weighting was not used during the experiments, all corresponding edges were assigned a weight of one. c 2019 ADVANCES IN ELECTRICAL AND ELECTRONIC ENGINEERING 337
SOFTWARE ENGINEERING VOLUME: 17 |NUMBER: 3 |2019 |SEPTEMBER (a) P= 100, σ = 10.(b) P= 100, σ = 3.(c) P= 100, σ = 1. (d) P= 300, σ = 10. (e) P= 1000, σ = 10.(f) P= 300, σ = 5. Fig. 7: An influence of sampling density (number of points per scan P) and measurement noise (with standard deviation σ) on line segment accuracy and subsequent effect on the registration process. Green ellipses demarcate positional dispersion and blue pies stand for range of orientations of the reconstructed poses. Dependence of quality of the registration on quality of the input data is obvious. Grid size is 50 ×50 units, the parameter σis measured in these units as well. Weighting was not used during the experiments, all corresponding edges were assigned a weight of one. improve the accuracy of the registration results is substantial. Shorter line segments tend to be less accurate, because in practical measurements, usually, less data is available to define them. Giving higher weight to the corresponding pairs, where both line segments are long is therefore sensible. For our experiments, we have used the length of the shorter line segment to define the weight of each pair and significant accuracy gain have appeared. Confronting Fig. 8 obtained through weighted computation with Fig. 7f, where all pairs were treated equally, shows clear improvement on the same data. Common practice is to discard the lowest accuracy line segments right after vectorization, but this way either permits excessive error if the threshold is too c 2019 ADVANCES IN ELECTRICAL AND ELECTRONIC ENGINEERING 338