You are on page 1of 5

Available online at www.sciencedirect.

com
Available online at www.sciencedirect.com
Procedia
Engineering
Procedia Engineering
Procedia 00 (2011)
Engineering 000–000
15 (2011) 1560 – 1564
www.elsevier.com/locate/procedia

Advanced in Control Engineering and Information Science

Diameter fitting by least square algorithm based on the data


acquired with a 2-D laser scanner
Wang Dian, Liu Jinhao*, Wang Jianli
Beijing Forestry University,Hai Dian District, Beijing and 100085, China

Abstract

For improving the working efficiency of the forestry harvester, a laser scanner was used to collect the 2-d
scan data of the target living-trees. First of all, the noise of the scanning data are filtered with a extraction
algorithm. Furthermore, the diameters of the living-trees are calculated out with the least square algorithm
and the curve fitting. The results of the research and experiment show that the extraction algorithm the
least square algorithm are accurate; the mean error of the calculation is 4.29 millimetre.

© 2011 Published by Elsevier Ltd. Open access under CC BY-NC-ND license.


Selection and/or peer-review under responsibility of [CEIS 2011]
Keywords:Laser Scan; extraction algorithm; least square algorithm; curve fitting

1. Introduction

For enhancing the automation and the work efficiency of the forest harvester further, optimizing the
felling operation, improving the utilization of forest resources and protecting the forest ecology
environment, some aspects should be studied deeply such as the operating environment perception,
manipulator path planning, attachment obstacle avoidance and the vehicle cross ability, etc. In which, the
perception to the operating environment is the foundation of all the other studies, while the effective
measurement of the diameter class of the living-tree is one of the most important part of the operating
environment perception. Nowadays, the forest harvester gets the diameter class of living-trees through the

* Corresponding author. Tel.: +86-010-62336204; fax: +86-010-62336204.


E-mail address: liujinhao@vip.163.com.

1877-7058 © 2011 Published by Elsevier Ltd. Open access under CC BY-NC-ND license.
doi:10.1016/j.proeng.2011.08.290
Wang
WangDian et al.
Dian / Procedia
et al./ Engineering
Procedia 1500
Engineering (2011) 1560
(2011) – 1564
000–0002 1561

clamping level of the claw when the harvest head grasped the standing tree. After that, the diameter class
is calculated finally according to the corresponding algorithm. But this measurement mode is affected by
many external factors, such as the weather conditions, etc. The accuracy of the result is lower relatively
and the measurement speed is also lower for using such contact measurement.
In summary, in order to resolve the problems which the forest harvester meet, a measurement system
which is built by the 2-D laser scanner is adopt to obtain the laser scan data of the living-tree in the stage
of the observation and identification of the felling operation. And then, the diameter of the living-tree is
resolved through the least square algorithm and curve fitting to achieve the non-contact measurement of
the diameter class.

2. Data measurement on living-trees in the forest land

2.1. Measurement System

The system of the data measurement on living-trees in the forest land includes a LMS291 type 2D laser
scanner produced by SICK company, Germany, a 24V DC power supplied for scanners, a computer for
data storage and analysis and a communication interface cards for the data transmission between the laser
scanner and computer, etc.
In the host computer, the programming executes the communication with LMS291 laser scanner
through ActiveX named Microsoft Comm Control 6.0 in Visual Basic 6.0 to set the operating parameters
of the scanner and read the stored scan data.
The maximum measurement range of LMS291 laser scanner is adjustable(8m, 16m, 32m, 80m), the
scan angle is about 100 ° / 180 °, the scan angle resolution is adjustable(0.25°, 0.5°, 1.0°), too. The laser
level of which is first class and harmless to the human eye. The protection class of which is IP65 and it
could filter dust, insects and the other interference objects effectively. So, it could meet the forest
harvester’s need in the field of data acquisition, such as equipment measurement speed, accuracy,
mobility and protection requirements.
The ranging mode of LMS291 belongs to pulse ranging, it generates a laser beam through the mirror
dragged by a motor which rotate in a specific frequency and executes scan work in the range of radiation.
According to the principle of LMS291 laser scanner, the size of the smallest target δmin should be
ascertained in order to set the scanner parameters in the field experiment correctly, the calculation
principle is shown in Figure 1.

δmin

Rmax

Fig.1. the calculation principle of the minimum measure size


1562 Wang
Wang Dian
Dian et al.
et al./ / Procedia
Procedia Engineering
Engineering 15 (2011)
00 (2011) 1560 – 1564
000–0003

Where, θ is the scanning angle resolution, Rmax is the maximum measurement range, so,

δ min = 2 Rmax
2
(1- cos θ ) (1)
The value being calculated of δmin is shown in Table 1.

Table 1. the calculated δmin with different scanning angle resolution and range

Scanning angle resolution(°) 0.25 0.5 1


Rmax=8m, δmin(mm) 34.89 69.78 139.55
Rmax=16m,δmin(mm) 69.78 139.56 279.11
Rmax=32m,δmin(mm) 139.56 279.11 558.22
Rmax=80m,δmin(cm) 34.89 69.78 139.55

After δmin was calculated out, it can be seen that with the angular resolution and the maximum
measurement distance of laser scanner increases, the minimum measure size also increases, which results
in that within the scope of the measurement, the scan recognition ability declines. Therefore, it’s
necessary to select the appropriate maximum range and minimum angle of resolution according to the
certain operating conditions.
Because forest harvester’s largest felling range is about 12m, and its felling goal is mainly on the
artificial forest, while the ideal felling diameter class of artificial forest is above 260mm. Also,
considering the scanning speed and some other factors, it’s perfect to set the scanning laser scanner angle
as 180°, the scan angle resolution as 0.5° and the largest measuring range as 16m.
Through the above parameter settings, the measurement range of LMS291 laser scanner is a right
ahead semicircle in the front of which, while the centre is the scanner’s location, the radius is 16m and the
scanning degree is 180°. Therefore, the target out of its scope will not be measured, but in the data that the
laser scanner sends back, this part of measuring distances are entirely set to 16m. In additional, for the
scan angle and scanning resolution are set to 180° and 0.5° respectively, so the scan operation starts from
0°, beginning with the counter-clockwise, every interval of 0.5° fired a laser to measure distances, to 180°
terminated, a total of 361 sets of data. And each set of data includes two elements, which are scan angle
and the distance measured in the direction of the scan angle.

2.2. The original scanning graph drawing and the filtering of the noise data

The measuring position of the laser scanning data collected located in the plantation in the north of
college of Technology, Beijing Forestry University. LMS291 scanner, the vertical height of which is
about 1.3m, was installed horizontally to execute static scan acquisition to positive goals in the north side.
The processing and filtering operations to the scan data are carried out under the Matlab software
environment. A matrix of 361 * 2 was built based on the output form of the laser scanner to store the
original scan data. In which, the first column is the scanning angle; the second column is the
corresponding distance value of the scan angle. The contour line, which was drawn with the Matlab
drawing tools based on the raw scanning data, is shown in Fig.2. In the previous studies, the combination
of corrosion algorithm and clustering algorithm is used to separate the measurement target and the non-
measurement target such as surrounding environment. The filtering result of the raw data is shown in
Fig.2, too.
Wang
WangDian et al.
Dian / Procedia
et al./ Engineering
Procedia 1500
Engineering (2011) 1560
(2011) – 1564
000–0004 1563

mm mm

mm mm

Fig.2. the outline of scanning target and the filtering result of the raw data

3. The curve fitting on the diameter of living tree

3.1. The curve fitting with least square algorithm

For calculated the diameter with curve fitting and least square algorithm, it’s necessary to assume that
the cross section of the living-tree is an ideal circularity and there are at least three laser points located on
the living-tree. The curve fitting with least square algorithm expressed as follow, in which x,y is the
coordinate of the laser points located on the living-tree.

R 2 = ( x-A ) + ( x-B ) (2)


2 2

Then, let a=-2A,b=-2B,c=A2+B2-R2, the equation (2) is changed as follow,

ax + by + c = - ( x 2 + y 2 ) (3)
Then, let

⎛ x1 y2 1⎞ ⎛ x12 + y12 ⎞
⎜ ⎟ ⎜ 2 ⎟
x y2 1⎟ x + y22 ⎟
p=⎜ 2 , q = -⎜ 2
⎜M M M⎟ ⎜ M ⎟
⎜⎜ ⎟⎟ ⎜⎜ 2 2⎟

⎝ xi yi 1⎠ ⎝ xi + yi ⎠
In which, xi,yi is the coordinate of the laser points located on the living-tree. So,

(a b c) = p \ q
T

(4)
Then, the diameter of the living-tree could be resolved out as equation (5) based on the least square
solution calculated above.

d = 2 R = a 2 + b 2 − 4c (5)
1564 Wang
Wang Dian
Dian et al.
et al./ / Procedia
Procedia Engineering
Engineering 15 (2011)
00 (2011) 1560 – 1564
000–0005

3.2. The results of curve fitting with least square algorithm

The results of curve fitting with least square algorithm and the reference data which was artificial
measured later are shown in table 2.

Table 2. The results of curve fitting with least square algorithm and the reference data which was artificial measured

No. 1 2 3 4 5 6 7
The diameter with curve fitting (mm) 660.00 680.00 640.00 580.00 620.00 600.00 580.00
the diameter which was artificial measured (mm) 670.00 660.70 630.00 540.70 660.60 550.40 620.40

The the dispersion of the measurement error, which was calculated out based on the data in table 2, is
shown in Fig.3. In Fig.3, the living-tree scanned from near to far is marked with the number from 1 to 7.
mm
50

0
1 2 3 4 5 6 7

-50
The number of measured tree
Fig.3.the dispersion of the measurement errors

4. Conclusion

Setting the scanning parameters of LMS291 as 180°, 16m, 0.5° is suitable for forest harvester, and it’s
reasonable to make sure that there are at least 3 laser points located on the living-tree in the scan range.
The mean error of the calculated diameter of the living-tree is 4.29mm with the curve fitting and least
square algorithm based on the filtered laser scanning data. And the absolute errors increase with the
increase of the scanning range.

Acknowledgements

This work was respectively funded by the 948 project supported by State Forestry Administration,
P.R.China, the project number is 2011-4-02, and National Natural Science Foundation of China, the
number is 31070634. We gratefully acknowledge their support.

References

[1] Oliver Wulf, Bernardo Wagner. Fast 3D Scanning methods for laser measurement systems
[2] Mikko Miettinen, Jakke Kulovesi, Jouko Kalmari and Arto Visala. New Measurement Concept for Forest Harvester Head
[3] T.bailey. Mobile Robot Localization and Mapping in Extensive Outdoor Environments. Ph.D thesis, University of Sydney,
Australian Centre for Field Robotics,2002
[4] SICK AG Corp. Technical Description: LMS200/LMS211/LMS291 Laser Measurement System[EB/OL].//http.sick.com
[5] Jaakko Jutila, Kosti Kannas, Arto Visala. Tree Measurement in Forest by 2D Laser Scanning. Proceedings of the 2007 IEEE
International Symposium on Computational Intelligence in Robotics and Automation Jacksonville, FL, USA, June 20-23,2007,491-
496.

You might also like