Algorithm 1 Obstacle detection |
-
1:
Input: , , ,
-
2:
Output:
-
3:
for do
-
4:
transform from the local robot frame to the global map frame
-
5:
end for
-
6:
if then
-
7:
-
8:
-
9:
end if
-
10:
for do
-
11:
for do
-
12:
if and then
-
13:
-
14:
end if
-
15:
end for
-
16:
end for
-
17:
if then
-
18:
for do
-
19:
=
-
20:
=
-
21:
=
-
22:
if then
-
23:
if then
-
24:
-
25:
else
-
26:
-
27:
end if
-
28:
end if
-
29:
end for
-
30:
end if
|