forked from intcatch2020/autonomy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default_behaviors.txt
51 lines (51 loc) · 1012 Bytes
/
default_behaviors.txt
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
{
basic_example:
{
action: example,
trigger:"example_value : [8, 10]",
interval: 1000,
ends: n
},
example_negated:
{
action: example,
trigger:"^(example_value : [5, 10] & example_state)",
interval: 1000,
ends: n
},
compound_example:
{
action: example,
trigger: "example_state | (example_value >= 5 & example_value < 12)",
interval: 2000,
ends: y
},
sampler_example:
{
action: start_sampler,
trigger: "GPS @ [45.403863, 10.999423] & EC > 0",
interval: 1000,
ends: y
},
conjunctive_normal_form:
{
action: example,
trigger: "(always_false | always_false | always_true) & (always_false | always_false | example_state)",
interval: 1000,
ends: y
},
forced_return_home:
{
action: return_home,
trigger: "battery_voltage : [0.1, 14.5] & ^(is_taking_sample)",
interval: 10000,
ends: y
},
inactivity_return_home:
{
action: return_home,
trigger: "^(is_autonomous) & time_since_operator > 60000 & ^(is_taking_sample)",
interval: 10000,
ends: n
}
}