-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhuman.rct
91 lines (88 loc) · 1.38 KB
/
human.rct
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
stm HumanSTM {
requires stateInf initial i0
const p_approach_robot : real
const p_aware_of_risk : real
const p_approach_red : real
state OutOfRange {
entry shuman = SHuman :: outOfRange
}
state InGreenZone {
entry shuman = SHuman :: inGreen
}
state InYellowZone {
entry shuman = SHuman :: inYellow
}
state InRedZone {
entry shuman = SHuman :: inRed
}
transition t0 {
from i0
to OutOfRange
}
const p_approach_yellow : real
event tick
probabilistic p0
probabilistic p1
probabilistic p2
probabilistic p3
transition t1 {
from OutOfRange
to p0
trigger tick
}
transition t2 {
from p0
to InGreenZone
probability p_approach_robot
}
transition t3 {
from p0
to OutOfRange
probability 1 - p_approach_robot
}
transition t4 {
from InGreenZone
to p1
trigger tick
}
transition t5 {
from p1
to InYellowZone
probability p_approach_yellow
}
transition t6 {
from p1
to OutOfRange
probability 1 - p_approach_yellow
}
transition t7 {
from InYellowZone
to p2
trigger tick
}
transition t8 {
from p2
to InRedZone
probability p_approach_red
}
transition t9 {
from p2
to InGreenZone
probability 1 - p_approach_red
}
transition t10 {
from InRedZone
to p3
trigger tick
}
transition t11 {
from p3
to OutOfRange
probability p_aware_of_risk
}
transition t12 {
from p3
to InRedZone
probability 1 - p_aware_of_risk
}
}