Академический Документы
Профессиональный Документы
Культура Документы
and
Actuator
Networks
(WSANs)
are
presented.
proposed
method
eliminates
possible
multiplicity
of
all
destinations.
The
multi-UGV
multi-destination
I.
INTRODUCTION
4134
Algorithm 1
II. BACKGROUND
Destinations or tasks are defined as different nodes that the
UGV needs to visit/service. The problem can be described
as a Linear Integer Program. Here we denote:
LaijUijWj
i,j
(1)
subject to
Laij ?:
j
1,
n.
(2)
Uij
1
=
dij'
NAVIGATION
(3)
Tj.
A LGORIT HMS
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
procedure MAINTHREAD
c> Initialize some global variables
c> True when sensor alarm triggered
leaderFlag f- false
loop
event f- GETNEXTEvENT
if event.type = newMessage then
PROCESSMESSAGE
else if event.type = senSorEvent then
PROCESSSENSOREvENT
else if event.type = leaderAlarmEvent then
PROCEssLEADERALARM
else if event.type = activateHopCountEvent then
PROCESsAcTiVATEHoPCOUNT
end if
end loop
end procedure
procedure PROCESsMESSAGE
m f- RECEIVEMESSAGE
if m.type = exit then
EXIT
[> Terminate the program
else if m.type = leaderElection then
HANDLELEADERELECTIONMESSAGE(m.id, m.e)
else if m.type = leaderElected then
HANDLELEADERELECTEDMESSAGE(m.id)
else if m.type = levelAssignment then
HANDLELEVELASSIGNMENTMESSAGE(m.id, m.e)
end if
end procedure
4135
Algorithm 2
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
procedure PROCESSSENSOREvENT
c> Initialize global variables
leaderFlag f- true
c> Node can participate in leader messages
idmax f- id
c> Current max is node's id
c> No relay of this value
Rmax f- 00
dmax f- estimated diameter of cluster c> Application specific value
Rmsg f- 1
c> Initial message lifespan
C> Wait time between retransmissions
Tw f- Tp + Tt
ide f- -1
C> Stores official leader, once elected
C> Start transmitting after slight delay
POSTALARMEvENT(leaderAlarmEvent, initial Delay)
end procedure
procedure PROCEssLEADERALARM
if idmax = id then
if Rmsg ;::: 2dmax then
C> This node is the leader
ide f- id
BRoADcAsT(leaderElected, ide)
posTEvENT(activateHopCountEvent)
C> Still the potential leader
else
BRoADcAsT(leaderElection, (id, Rmsg)
POSTALARMEvENT(leader AlarmEvent, Tw)
Rmsg f- 2Rmsg C> Increase message lifespan and wait time
Tw
f-
end if
end if
end procedure
2Tw
4136
Algorithm 4
to each task.
rithm
Algorithm 3 Distributed Multi-Destination Level Number
Assignment Algorithm
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
procedure PROCESsAcTiVATEHoPCOUNT
c> The mapt is initially empty
mapt.puT(idc, 0)
BRoADcAsT(leveIAssignment, (ide, 0)
end procedure
procedure HANDLELEVELASSIGNMENTMESSAGE(idr, r)
if mapt.GET(idr) > r then
c> Discovered a distance for idr closer than previously known
mapt.puT(idr,r)
BRoADcAsT(leveIAssignment, (idr,r + 1)
end if
end procedure
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
A. Simulation Results
7rr
Area
nl
=
with nl being the number of nodes and Area being the area
of the sensor field (800 x 600). A network with 100 nodes
was considered. Very large networks were not considered
since the leader election algorithm is not expected to run in
a large group of nodes. The network density can be adjusted
by changing the value of rc' For example, setting rc
98
400.(982)n
.
Yl. elds a network densl. ty 0f a
.
6 28 As F' 1
=
(4)
800.600
19.
4137
10
9.5
'0
0
"
8.5
"
1>,
0.
0-
"
g> 8
"
I<
"
- -
"
"
7.95
8.86
"
"
-0-
"
"
"
\
\
"
7.5
"
1$>
/<r
"
- ...()
- -'>
"
"
"
"
{j"
"
"
"
considered.
In Fig. 3 we plot two values: ratio1 shows the percentage
of networks where the proposed algorithm performs better
than or equal to the simple nearest neighbor considering dis
tance and angle change, respectively; rati02 shows the ratio
of cost functions when distance and angle change are both
considered. Note that the proposed algorithm outperforms the
simple nearest neighbor algorithm with regard to the angle
change only (see Fig. 3). In contrast, it performs worse when
a large number of targets are present because the network
gets dense and turns with large angle changes are needed to
navigate among targets.
25/75 percentile
7
6.5
6.28
Fig. 1.
7.09
network density
1.2
------
=========
=il
r=
,.-cost equals distance
1_"*-- e
11
: ;5 :rcentile
*
A
25 percentile
tr
/' /'
- A
/'
'"
--
- ......
0.6
0.4
- -0-
e!-
-- -- -0- - - -6 - ___ B- __ -- -0
......... - - *-
0.2 '-'--------'-.J
12
15
18
21
24
number of targets
1.15
----------=
=====
=il
;====
,.--I
mean
1- -
1.05
1"
0.95
1.1
-- - - -- -- -- ->- *
*
_
-0--
25/75 percentil
- - -8-
- - - e - - - .J
*
0.9 '-'------------------------'-.J
12
15
18
21
24
number of targets
----======
, -
:1-- -
_
.j.-l 0.8 8---_e
...
_
;.
"
'0
4
3
I!!
215
3/5
3/8
4/8
5/8
3/12
5/12
6/12
7/12
8/12
Fig. 2.
Traveled distance ratio of the proposed algorithm and genetic
algorithm (circles) and ratio of nearest neighbor algorithm and genetic
algorithm (triangles) in the multi-UGY, multi-destination scenario when
UGYs start at the same locations.
4138
1000
500
Lvl ___
\ B-1
I1I-
-j:/
e'd
8-3
E
E.
"
I \
8-5
\
>-
"
-500
, ,,
,
,
Levl3
B-2.
-500
Fig. 5.
SOO
1000
'rz:{
LeVI1
8-6
'
.... Il"e 2
I!I 8-4
-1000
___ElLevn-
, ,
.. Levi 0
- .. 8-7
,
Test Minimum
Beacon Nodes
- - - Neighbor Link
-- UGV Trajectory
-- Optimal Trajectory
3000
3500
4000
4S00
800
790
780
nd
t>
o
+
t;,.
760
0
+
t;,.
e
9
15
740
a.
730
720
24
Fig. 6.
25
26
Lislener-2
Lislener-4
listener-5
t;,.
'" 750
Listener-1
Ustener-3
27
t;,.
+
0
0
t;,.
+
0
t;,.
28
30
29
Number of steps
o
31
o
:1'2
33
34
V.
4139