|
Algorithm 1 The improved adaptive Monte Carlo localization (AMCL) algorithm.
|
|
Input: control information , observation information , matched template libraries ;
|
|
Output: new particles set ;
|
|
1: Initialization: , , new particle , cache particle set ;
|
|
2:
, = LaserReflectorIdentification;
|
|
3:
if
then
|
|
4: for
i = 0
N
do
|
|
5:
∼;//Original AMCL
|
|
6: ∼;//Original AMCL
|
|
7:
;
|
|
8:
i
∝
;
|
|
9:
;
|
|
10:
end for
|
|
11:
else
|
|
12:
= motion_model();
|
|
13: for
i = 0
N
do
|
|
14: ;
|
|
15:
;
|
|
16: ;
|
|
17: ;
|
|
18:
end for
|
|
19:
;
|
|
20:
for
i = 0
N
do
|
|
21: ;//function (8)
|
|
22:
if
then
|
|
23: ;
|
|
24:
;
|
|
25:
end if
|
|
26:
end for
|
|
27:
end if
|
|
28:return
|