-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstate_machine.json
122 lines (117 loc) · 3.29 KB
/
state_machine.json
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"name" : "Example",
"states" : [
"name_1",
{
"name" : "Nested",
"nested_to" : "name_1",
"sub-states":[
"nested_name_1",
"nested_name_2"
]
},
"name_2"
],
"transitions" : [
{
"from_state" : "name_1",
"to_state" : "name_2",
"transition_name": "from_1_to_2"
},
{
"from_state" : "name_1",
"to_state" : "name_2",
"transition_name": "from_1_to_2",
"description" : "Transitioning from 1 to 2"
},
{
"from_state" : "name_1",
"to_state" : {
"name" : "Nested",
"sub-state" : "nested_name_1"
},
"transition_name": "from_1_to_nested_1"
}
],
"actions" : {
"enter" : [
{
"state" : "name_1",
"state_actions" : [
"enter_action_1",
"enter_action_2"
]
},
{
"state" : "name_2",
"state_actions" : [
{
"name" : "enter_action_3",
"description" : "Description of enter_action_3"
},
"enter_action_4"
]
}
],
"cyclic" : {
"low_precision" : [
{
"states" : [
"name_1",
"name_2"
],
"state_actions" : [
{
"action_name" : "low_precision_action",
"action_period" : "30ms"
}
]
}
],
"mid_precision" : [
{
"states" : [
"name_1",
{
"name" : "Nested",
"sub-state" : "nested_name_1"
}
],
"state_actions" : [
{
"action_name" : "mid_precision_action_to_nested_state",
"action_period" : "60ms"
}
]
}
],
"high_precision" : [
{
"states" : [
"name_1",
"name_2"
],
"state_actions" : [
{
"action_name" : "high_precision_action_with_description",
"action_period" : "90ms",
"description" : "Cyclic action example with description"
}
]
}
]
},
"exit" : [
{
"state" : {
"name" : "Nested",
"sub-state" : "nested_name_2"
},
"state_actions" : [
"exit_action_1",
"exit_action_2"
]
}
]
}
}