Algorithm 1 Registration of new nodes by frontier segmentation |
-
Require:
current local grid map , frontier-graph database , , , size of window for detecting safe frontier cells
-
Ensure:
updated frontier-graph database,
▹ The algorithm assumes that the current node is , the parent node is , and the previous node is . and are siblings to each other. The map IDs of the parent node and previous node are and .
|
1: add into
|
2: obtain by merging the adjacent local maps, , , , |
3:
Detect-Frontier-Cell
▹ is the number of rows and . ▹ is the number of columns and . |
4: for
to
do
|
5: for
to
do
|
6: if
then
|
7:
|
8: if
Inspect-Safe-Frontier-Cell
then
|
9:
|
10: end if
|
11: end if
|
12: end for
|
13: end for
|
14:
|
15: if
then
|
16:
|
17:
|
18: for all
do
|
19: ←Initialize-New-Node
|
20:
|
21:
|
22: end for
|
23:
|
24:
|
25:
|
26:
|
27:
end if
|