Skip to content

Commit 7589136

Browse files
authored
feat(system_diagnostic_monitor): add mrm recoverable option (autowarefoundation#847)
* feat: add mrm recoverable option Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp> * feat: add fatal_error path to implement MRM auto-recover Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp> * set vehicle-emergency-button as fatal error Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp> --------- Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
1 parent 0edf0e6 commit 7589136

File tree

9 files changed

+200
-0
lines changed

9 files changed

+200
-0
lines changed

autoware_launch/config/system/mrm_handler/mrm_handler.param.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
use_parking_after_stopped: false
1212
use_pull_over: false
1313
use_comfortable_stop: true
14+
is_mrm_recoverable: false
15+
use_pull_over_after_stopped: false
1416

1517
# setting whether to turn hazard lamp on for each situation
1618
turning_hazard_on:

autoware_launch/config/system/system_diagnostic_monitor/autoware-main.yaml

+33
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ units:
3333
- { type: link, link: /sensing/autonomous_available }
3434
- { type: link, link: /system/autonomous_available }
3535
- { type: link, link: /vehicle/autonomous_available }
36+
- { type: link, link: /autoware/fatal_error/autonomous_available }
3637

3738
- path: /autoware/modes/pull_over
3839
type: and
@@ -47,6 +48,7 @@ units:
4748
- { type: link, link: /sensing/pull_over_available }
4849
- { type: link, link: /system/pull_over_available }
4950
- { type: link, link: /vehicle/pull_over_available }
51+
- { type: link, link: /autoware/fatal_error/pull_over_available }
5052

5153
- path: /autoware/modes/comfortable_stop
5254
type: and
@@ -61,6 +63,37 @@ units:
6163
- { type: link, link: /sensing/comfortable_stop_available }
6264
- { type: link, link: /system/comfortable_stop_available }
6365
- { type: link, link: /vehicle/comfortable_stop_available }
66+
- { type: link, link: /autoware/fatal_error/comfortable_stop_available }
67+
68+
- path: /autoware/fatal_error/autonomous_available
69+
type: and
70+
list:
71+
- { type: link, link: /hardware/fatal_error/autonomous_available }
72+
- { type: link, link: /planning/fatal_error/autonomous_available }
73+
- { type: link, link: /control/fatal_error/autonomous_available }
74+
- { type: link, link: /vehicle/fatal_error/autonomous_available }
75+
- { type: link, link: /system/fatal_error/autonomous_available }
76+
- { type: link, link: /others/fatal_error/autonomous_available }
77+
78+
- path: /autoware/fatal_error/pull_over_available
79+
type: and
80+
list:
81+
- { type: link, link: /hardware/fatal_error/pull_over_available }
82+
- { type: link, link: /planning/fatal_error/pull_over_available }
83+
- { type: link, link: /control/fatal_error/pull_over_available }
84+
- { type: link, link: /vehicle/fatal_error/pull_over_available }
85+
- { type: link, link: /system/fatal_error/pull_over_available }
86+
- { type: link, link: /others/fatal_error/pull_over_available }
87+
88+
- path: /autoware/fatal_error/comfortable_stop_available
89+
type: and
90+
list:
91+
- { type: link, link: /hardware/fatal_error/comfortable_stop_available }
92+
- { type: link, link: /planning/fatal_error/comfortable_stop_available }
93+
- { type: link, link: /control/fatal_error/comfortable_stop_available }
94+
- { type: link, link: /vehicle/fatal_error/comfortable_stop_available }
95+
- { type: link, link: /system/fatal_error/comfortable_stop_available }
96+
- { type: link, link: /others/fatal_error/comfortable_stop_available }
6497

6598
- path: /autoware/modes/emergency_stop
6699
type: ok

autoware_launch/config/system/system_diagnostic_monitor/control.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,24 @@ units:
1717
list:
1818
- { type: link, link: /control/emergency_stop }
1919

20+
- path: /control/fatal_error/autonomous_available
21+
type: and
22+
list:
23+
- { type: link, link: /control/fatal_error/emergency_stop }
24+
- { type: link, link: /control/fatal_error/pull_over }
25+
- { type: link, link: /control/fatal_error/comfortable_stop }
26+
27+
- path: /control/fatal_error/pull_over_available
28+
type: and
29+
list:
30+
- { type: link, link: /control/fatal_error/emergency_stop }
31+
- { type: link, link: /control/fatal_error/comfortable_stop }
32+
33+
- path: /control/fatal_error/comfortable_stop_available
34+
type: and
35+
list:
36+
- { type: link, link: /control/fatal_error/emergency_stop }
37+
2038
# *******************************************************************************
2139
# NOTE: Please modify this section according to your environment and requirements.
2240
# *******************************************************************************
@@ -30,12 +48,21 @@ units:
3048
# - { type: link, link: /control/010-max_distance_deviation-error }
3149
- { type: link, link: /control/011-slip_detection }
3250

51+
- path: /control/fatal_error/emergency_stop
52+
type: and
53+
3354
- path: /control/comfortable_stop
3455
type: and
3556

57+
- path: /control/fatal_error/comfortable_stop
58+
type: and
59+
3660
- path: /control/pull_over
3761
type: and
3862

63+
- path: /control/fatal_error/pull_over
64+
type: and
65+
3966
- path: /control/none
4067
type: and
4168
list:

autoware_launch/config/system/system_diagnostic_monitor/hardware.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,24 @@ units:
1717
list:
1818
- { type: link, link: /hardware/emergency_stop }
1919

20+
- path: /hardware/fatal_error/autonomous_available
21+
type: and
22+
list:
23+
- { type: link, link: /hardware/fatal_error/emergency_stop }
24+
- { type: link, link: /hardware/fatal_error/pull_over }
25+
- { type: link, link: /hardware/fatal_error/comfortable_stop }
26+
27+
- path: /hardware/fatal_error/pull_over_available
28+
type: and
29+
list:
30+
- { type: link, link: /hardware/fatal_error/emergency_stop }
31+
- { type: link, link: /hardware/fatal_error/comfortable_stop }
32+
33+
- path: /hardware/fatal_error/comfortable_stop_available
34+
type: and
35+
list:
36+
- { type: link, link: /hardware/fatal_error/emergency_stop }
37+
2038
# *******************************************************************************
2139
# NOTE: Please modify this section according to your environment and requirements.
2240
# *******************************************************************************
@@ -40,14 +58,23 @@ units:
4058
# - { type: link, link: /hardware/gpu/004-throttling-error }
4159
# - { type: link, link: /hardware/gpu/005-frequency-error }
4260

61+
- path: /hardware/fatal_error/emergency_stop
62+
type: and
63+
4364
- path: /hardware/pull_over
4465
type: and
4566
list:
4667
- { type: link, link: /hardware/hdd/002-usage-error }
4768

69+
- path: /hardware/fatal_error/pull_over
70+
type: and
71+
4872
- path: /hardware/comfortable_stop
4973
type: and
5074

75+
- path: /hardware/fatal_error/comfortable_stop
76+
type: and
77+
5178
- path: /hardware/none
5279
type: and
5380
list:

autoware_launch/config/system/system_diagnostic_monitor/others.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,24 @@ units:
1717
list:
1818
- { type: link, link: /others/emergency_stop }
1919

20+
- path: /others/fatal_error/autonomous_available
21+
type: and
22+
list:
23+
- { type: link, link: /others/fatal_error/emergency_stop }
24+
- { type: link, link: /others/fatal_error/pull_over }
25+
- { type: link, link: /others/fatal_error/comfortable_stop }
26+
27+
- path: /others/fatal_error/pull_over_available
28+
type: and
29+
list:
30+
- { type: link, link: /others/fatal_error/emergency_stop }
31+
- { type: link, link: /others/fatal_error/comfortable_stop }
32+
33+
- path: /others/fatal_error/comfortable_stop_available
34+
type: and
35+
list:
36+
- { type: link, link: /others/fatal_error/emergency_stop }
37+
2038
# *******************************************************************************
2139
# NOTE: Please modify this section according to your environment and requirements.
2240
# *******************************************************************************
@@ -28,16 +46,25 @@ units:
2846
# - { type: link, link: /others/005-visibility_validation-error }
2947
# - { type: link, link: /others/012-vehicle_stuck_checker }
3048

49+
- path: /others/fatal_error/emergency_stop
50+
type: and
51+
3152
- path: /others/comfortable_stop
3253
type: and
3354
# list:
3455
# - { type: link, link: /others/010-emergency_vehicle-error }
3556

57+
- path: /others/fatal_error/comfortable_stop
58+
type: and
59+
3660
- path: /others/pull_over
3761
type: and
3862
list:
3963
- { type: link, link: /others/011-daytime_monitor }
4064

65+
- path: /others/fatal_error/pull_over
66+
type: and
67+
4168
- path: /others/none
4269
type: and
4370

autoware_launch/config/system/system_diagnostic_monitor/planning.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,24 @@ units:
1717
list:
1818
- { type: link, link: /planning/emergency_stop }
1919

20+
- path: /planning/fatal_error/autonomous_available
21+
type: and
22+
list:
23+
- { type: link, link: /planning/fatal_error/emergency_stop }
24+
- { type: link, link: /planning/fatal_error/pull_over }
25+
- { type: link, link: /planning/fatal_error/comfortable_stop }
26+
27+
- path: /planning/fatal_error/pull_over_available
28+
type: and
29+
list:
30+
- { type: link, link: /planning/fatal_error/emergency_stop }
31+
- { type: link, link: /planning/fatal_error/comfortable_stop }
32+
33+
- path: /planning/fatal_error/comfortable_stop_available
34+
type: and
35+
list:
36+
- { type: link, link: /planning/fatal_error/emergency_stop }
37+
2038
# *******************************************************************************
2139
# NOTE: Please modify this section according to your environment and requirements.
2240
# *******************************************************************************
@@ -37,12 +55,21 @@ units:
3755
- { type: link, link: /planning/012-trajectory_velocity_deviation_validation-error }
3856
# - { type: link, link: /planning/013-collision_checker-error }
3957

58+
- path: /planning/fatal_error/emergency_stop
59+
type: and
60+
4061
- path: /planning/comfortable_stop
4162
type: and
4263

64+
- path: /planning/fatal_error/comfortable_stop
65+
type: and
66+
4367
- path: /planning/pull_over
4468
type: and
4569

70+
- path: /planning/fatal_error/pull_over
71+
type: and
72+
4673
- path: /planning/none
4774
type: and
4875

autoware_launch/config/system/system_diagnostic_monitor/system.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,24 @@ units:
1717
list:
1818
- { type: link, link: /system/emergency_stop }
1919

20+
- path: /system/fatal_error/autonomous_available
21+
type: and
22+
list:
23+
- { type: link, link: /system/fatal_error/emergency_stop }
24+
- { type: link, link: /system/fatal_error/pull_over }
25+
- { type: link, link: /system/fatal_error/comfortable_stop }
26+
27+
- path: /system/fatal_error/pull_over_available
28+
type: and
29+
list:
30+
- { type: link, link: /system/fatal_error/emergency_stop }
31+
- { type: link, link: /system/fatal_error/comfortable_stop }
32+
33+
- path: /system/fatal_error/comfortable_stop_available
34+
type: and
35+
list:
36+
- { type: link, link: /system/fatal_error/emergency_stop }
37+
2038
# *******************************************************************************
2139
# NOTE: Please modify this section according to your environment and requirements.
2240
# *******************************************************************************
@@ -26,14 +44,23 @@ units:
2644
- { type: link, link: /system/001-topic_status-error }
2745
- { type: link, link: /system/002-emergency_stop_operation-error }
2846

47+
- path: /system/fatal_error/emergency_stop
48+
type: and
49+
2950
- path: /system/comfortable_stop
3051
type: and
3152

53+
- path: /system/fatal_error/comfortable_stop
54+
type: and
55+
3256
- path: /system/pull_over
3357
type: and
3458
list:
3559
- { type: link, link: /system/005-fms_connection-error }
3660

61+
- path: /system/fatal_error/pull_over
62+
type: and
63+
3764
- path: /system/none
3865
type: and
3966
list:

autoware_launch/config/system/system_diagnostic_monitor/vehicle.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,24 @@ units:
1717
list:
1818
- { type: link, link: /vehicle/emergency_stop }
1919

20+
- path: /vehicle/fatal_error/autonomous_available
21+
type: and
22+
list:
23+
- { type: link, link: /vehicle/fatal_error/emergency_stop }
24+
- { type: link, link: /vehicle/fatal_error/pull_over }
25+
- { type: link, link: /vehicle/fatal_error/comfortable_stop }
26+
27+
- path: /vehicle/fatal_error/pull_over_available
28+
type: and
29+
list:
30+
- { type: link, link: /vehicle/fatal_error/emergency_stop }
31+
- { type: link, link: /vehicle/fatal_error/comfortable_stop }
32+
33+
- path: /vehicle/fatal_error/comfortable_stop_available
34+
type: and
35+
list:
36+
- { type: link, link: /vehicle/fatal_error/emergency_stop }
37+
2038
# *******************************************************************************
2139
# NOTE: Please modify this section according to your environment and requirements.
2240
# *******************************************************************************
@@ -28,15 +46,25 @@ units:
2846
- { type: link, link: /vehicle/005-vehicle_heartbeat-error }
2947
- { type: link, link: /vehicle/006-vehicle_errors-error }
3048

49+
- path: /vehicle/fatal_error/emergency_stop
50+
type: and
51+
3152
- path: /vehicle/comfortable_stop
3253
type: and
3354
list:
3455
- { type: link, link: /vehicle/006-vehicle_errors }
56+
57+
- path: /vehicle/fatal_error/comfortable_stop
58+
type: and
59+
list:
3560
- { type: link, link: /vehicle/007-vehicle-emergency-button }
3661

3762
- path: /vehicle/pull_over
3863
type: and
3964

65+
- path: /vehicle/fatal_error/pull_over
66+
type: and
67+
4068
- path: /vehicle/none
4169
type: and
4270

autoware_launch/launch/components/tier4_system_component.launch.xml

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
<arg name="diagnostic_graph_aggregator_param_path" value="$(var diagnostic_graph_aggregator_param_path)"/>
3535
<arg name="diagnostic_graph_aggregator_graph_path" value="$(var diagnostic_graph_aggregator_graph_path)"/>
3636
<arg name="diagnostic_graph_aggregator_planning_simulator_graph_path" value="$(find-pkg-share autoware_launch)/config/system/diagnostic_graph_aggregator/autoware.yaml"/>
37+
38+
<arg name="launch_system_recover_operator" value="true"/>
3739
</include>
3840

3941
<!-- For logging of diagnostics_graph error -->

0 commit comments

Comments
 (0)