-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathexample_modes.yaml
68 lines (65 loc) · 1.58 KB
/
example_modes.yaml
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
# system modes example
---
actuation:
ros__parameters:
type: system
parts:
manipulator
drive_base
modes:
__DEFAULT__:
manipulator: inactive
drive_base: active
MODERATE:
manipulator: active.WEAK
drive_base: active.SLOW
PERFORMANCE:
manipulator: active.STRONG
drive_base: active.FAST
rules:
degrade_from_MODERATE:
if_target: active.MODERATE
if_part: [manipulator, inactive]
new_target: active.__DEFAULT__
degrade_from_PERFORMANCE:
if_target: active.PERFORMANCE
if_part: [manipulator, inactive]
new_target: active.__DEFAULT__
inactive_from_MODERATE:
if_target: active.MODERATE
if_part: [drive_base, inactive]
new_target: inactive
inactive_from_PERFORMANCE:
if_target: active.PERFORMANCE
if_part: [drive_base, inactive]
new_target: inactive
# if system in __DEFAULT__, don't degrade, don't deactivate, but recover
manipulator:
ros__parameters:
type: node
modes:
__DEFAULT__:
ros__parameters:
max_torque: 0.1
WEAK:
ros__parameters:
max_torque: 0.1
STRONG:
ros__parameters:
max_torque: 0.2
drive_base:
ros__parameters:
type: node
modes:
__DEFAULT__:
ros__parameters:
max_speed: 0.1
controller: PID
SLOW:
ros__parameters:
max_speed: 0.2
controller: PID
FAST:
ros__parameters:
max_speed: 0.9
controller: MPC