|
Algorithm 1 3D-SWAP for each UAV i
|
Input: Pointcloud from local sensors, current position , goal position
-
1:
while not reached do
-
2:
Send position to neighbors
-
3:
-
4:
for all UAV j within communication range do
-
5:
Receive its position
-
6:
-
7:
-
8:
end for
-
9:
for
do
-
10:
Extract point m from local pointcloud
-
11:
-
12:
end for
-
13:
-
14:
-
15:
if
is xy-free
then
-
16:
and
-
17:
else if
is rendezvous
then
-
18:
and
-
19:
else if
is xy-blocked
then
-
20:
-
21:
end if
-
22:
if
is z-free
then
-
23:
, depending on whether is above or below
-
24:
else if
is z-blocked
then
-
25:
-
26:
end if
-
27:
-
28:
Send to velocity controller
-
29:
end while
|