Skip to content

Commit d6cf45f

Browse files
authored
feat: add tree and dummy diag yaml (autowarefoundation#1064) (autowarefoundation#1120)
* feat: add tree and dummy diag * fix * feat: add redundancy_switcher diag * style(pre-commit): autofix * feat: chnage 0.4 to 0.3 * feat: change 0.4 to 0.3 --------- Signed-off-by: TetsuKawa <kawaguchitnon@icloud.com>
1 parent 0557880 commit d6cf45f

4 files changed

+147
-13
lines changed
Lines changed: 70 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,88 @@
11
units:
22
- path: /autoware/modes/local
3-
type: stale
3+
type: and
4+
list:
5+
- { type: link, link: /debug/injection/local_available }
46

57
- path: /autoware/modes/remote
6-
type: stale
8+
type: and
9+
list:
10+
- { type: link, link: /debug/injection/remote_available }
711

8-
# Stop is always available
912
- path: /autoware/modes/stop
10-
type: ok
13+
type: and
14+
list:
15+
- { type: link, link: /debug/injection/stop_available }
1116

1217
- path: /autoware/modes/autonomous
1318
type: and
1419
list:
15-
- { type: link, link: /dummy_diag_publisher/emergency }
16-
17-
- path: /autoware/modes/pull_over
18-
type: ok
20+
- { type: link, link: /debug/injection/autonomous_available }
21+
- { type: link, link: /redundancy/redundancy_switcher }
1922

2023
- path: /autoware/modes/comfortable_stop
21-
type: ok
24+
type: and
25+
list:
26+
- { type: link, link: /debug/injection/comfortable_stop_available }
27+
- { type: link, link: /redundancy/redundancy_switcher }
28+
29+
- path: /autoware/modes/pull_over
30+
type: and
31+
list:
32+
- { type: link, link: /debug/injection/main_ecu_in_lane_stop_0_3g_available }
33+
- { type: link, link: /redundancy/redundancy_switcher }
2234

23-
# Emergency stop is always available
2435
- path: /autoware/modes/emergency_stop
25-
type: ok
36+
type: and
37+
list:
38+
- { type: link, link: /debug/injection/main_ecu_in_lane_stop_0_6g_available }
39+
- { type: link, link: /redundancy/redundancy_switcher }
2640

27-
- path: /dummy_diag_publisher/emergency
41+
# diag
42+
- path: /debug/injection/local_available
2843
type: diag
2944
node: ""
30-
name: dummy_diag_empty
45+
name: injection_local_available
46+
timeout: 1.0
47+
48+
- path: /debug/injection/remote_available
49+
type: diag
50+
node: ""
51+
name: injection_remote_available
52+
timeout: 1.0
53+
54+
- path: /debug/injection/stop_available
55+
type: diag
56+
node: ""
57+
name: injection_stop_available
58+
timeout: 1.0
59+
60+
- path: /debug/injection/autonomous_available
61+
type: diag
62+
node: ""
63+
name: injection_autonomous_available
64+
timeout: 1.0
65+
66+
- path: /debug/injection/comfortable_stop_available
67+
type: diag
68+
node: ""
69+
name: injection_comfortable_stop_available
70+
timeout: 1.0
71+
72+
- path: /debug/injection/main_ecu_in_lane_stop_0_3g_available
73+
type: diag
74+
node: ""
75+
name: injection_main_ecu_in_lane_stop_0_3g_available
76+
timeout: 1.0
77+
78+
- path: /debug/injection/main_ecu_in_lane_stop_0_6g_available
79+
type: diag
80+
node: ""
81+
name: injection_main_ecu_in_lane_stop_0_6g_available
82+
timeout: 1.0
83+
84+
- path: /redundancy/redundancy_switcher
85+
type: diag
86+
node: redundancy_switcher_interface
87+
name: redundancy_switcher_status
3188
timeout: 1.0
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
units:
2+
- path: /autoware/modes/sub_ecu_in_lane_stop_0_3g
3+
type: and
4+
list:
5+
- { type: link, link: /debug/injection/sub_ecu_in_lane_stop_0_3g_available }
6+
- { type: link, link: /redundancy/redundancy_switcher }
7+
8+
# diag
9+
- path: /debug/injection/sub_ecu_in_lane_stop_0_3g_available
10+
type: diag
11+
node: ""
12+
name: injection_sub_ecu_in_lane_stop_0_3g_available
13+
timeout: 1.0
14+
15+
- path: /redundancy/redundancy_switcher
16+
type: diag
17+
node: redundancy_switcher_interface
18+
name: redundancy_switcher_status
19+
timeout: 1.0
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Description:
2+
# required_diags:
3+
# <name>: {is_active: <is_active>, status: <status>}
4+
# name: diag name
5+
# is_active: Force update or not
6+
# status: diag status set by dummy diag publisher "OK, Warn, Error, Stale"
7+
#
8+
# Note:
9+
#
10+
# default values are:
11+
# is_active: "true"
12+
# status: "OK"
13+
---
14+
/**:
15+
ros__parameters:
16+
required_diags:
17+
# debug
18+
19+
## /debug/injection/stop_available
20+
"injection_stop_available": default
21+
22+
## /debug/injection/autonomous_available
23+
"injection_autonomous_available": default
24+
25+
## /debug/injection/local_available
26+
"injection_local_available": default
27+
28+
## /debug/injection/remote_available
29+
"injection_remote_available": default
30+
31+
## /debug/injection/comfortable_stop_available
32+
"injection_comfortable_stop_available": default
33+
34+
## /debug/injection/main_ecu_in_lane_stop_0_3g_available
35+
"injection_main_ecu_in_lane_stop_0_3g_available": default
36+
37+
## /debug/injection/main_ecu_in_lane_stop_0_6g_available
38+
"injection_main_ecu_in_lane_stop_0_6g_available": default
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Description:
2+
# required_diags:
3+
# <name>: {is_active: <is_active>, status: <status>}
4+
# name: diag name
5+
# is_active: Force update or not
6+
# status: diag status set by dummy diag publisher "OK, Warn, Error, Stale"
7+
#
8+
# Note:
9+
#
10+
# default values are:
11+
# is_active: "true"
12+
# status: "OK"
13+
---
14+
/**:
15+
ros__parameters:
16+
required_diags:
17+
# debug
18+
19+
## /debug/injection/sub_ecu_in_lane_stop_0_3g_available
20+
"injection_sub_ecu_in_lane_stop_0_3g_available": default

0 commit comments

Comments
 (0)