|
Algorithm 1 Find a non-collision velocity command at sampling-index (change yaw only) |
-
1:
The current sampling-index is k;
-
2:
for, , while do
-
3:
;
-
4:
if col(, )==0; then
-
5:
Return as the velocity command, and this algorithm is finished;
-
6:
end if
-
7:
for , , while do
-
8:
;
-
9:
if col(, )==0; then
-
10:
Return as the velocity command, and this algorithm is finished;
-
11:
end if
-
12:
;
-
13:
if col(, )==0; then
-
14:
Return as the velocity command, and this algorithm is finished;
-
15:
end if
-
16:
end for
-
17:
end for
-
18:
Run Algorithm 2 (change both yaw and pitch);
|