|
Algorithm 1: Adaptive Monte Carlo localization |
Input: observation information , control information ;
Output:
;
-
1:
Initialization: , , , , ;
-
2:
for all
do
;
-
3:
end for
-
4:
ifthen
-
5:
add random pose to ;
-
6:
;
-
7:
else
-
8:
draw i with probability ;
-
9:
;
-
10:
= motion_model ();
-
11:
= observation_model ();
-
12:
;
-
13:
;
-
14:
if
b() = 0 then
-
15:
b() = 1;
-
16:
;
-
17:
if
then
-
18:
;
-
19:
end if
-
20:
end if
-
21:
end if
-
22:
while ( && ) or
do
-
23:
= + ();
-
24:
= + ();
-
25:
end while
-
26:
return;
|