|
Algorithm 1 Pseudo-code of the exploration strategy with modified frontier exploration algorithm |
-
1:
-
2:
for Every points in F do
-
3:
if F is a connected frontier then
-
4:
-
5:
end if
-
6:
end for
-
7:
for Every points in do
-
8:
compute centeroid of
-
9:
Arrange in ascending order of distance from robot pose
-
10:
end for
-
11:
for is not empty do
-
12:
-
13:
Check for Probable Dirt Points.
-
14:
if Probable Dirt Points then
-
15:
Transform interest point to global frame assign to
-
16:
Arrange in ascending order of distance from robot pose
-
17:
for Every points in do
-
18:
Transform interest point to global frame
-
19:
Generate sample points S
-
20:
Select sample points diagonally and insert to
-
21:
if Selected sample point not in obstacle then
-
22:
Insert sample point to
-
23:
end if
-
24:
for Every points in do
-
25:
Navigate the robot to
-
26:
end for
-
27:
-
28:
end for
-
29:
end if
-
30:
Navigate the robot to
-
31:
-
32:
Initiate a sweep
-
33:
-
34:
end for
|