|
25 | 25 | <arg name="run_mode" default="online" description="options: online, logging_simulation, planning_simulation"/>
|
26 | 26 | <arg name="sensor_model" description="sensor model name"/>
|
27 | 27 |
|
28 |
| - <arg name="use_diagnostic_graph" default="false" description="use diagnostic graph packages"/> |
29 |
| - <arg name="mrm_handler_param_path" if="$(var use_diagnostic_graph)"/> |
30 |
| - <arg name="diagnostic_graph_aggregator_param_path" if="$(var use_diagnostic_graph)"/> |
31 |
| - <arg name="diagnostic_graph_aggregator_graph_path" if="$(var use_diagnostic_graph)"/> |
32 |
| - <arg name="diagnostic_graph_aggregator_planning_simulator_graph_path" if="$(var use_diagnostic_graph)"/> |
| 28 | + <!-- Emergency handler will be replaced by MRM handler. --> |
| 29 | + <arg name="use_emergency_handler" default="true" description="use emergency handler packages"/> |
| 30 | + <arg name="mrm_handler_param_path"/> |
| 31 | + <arg name="diagnostic_graph_aggregator_param_path"/> |
| 32 | + <arg name="diagnostic_graph_aggregator_graph_path_main"/> |
| 33 | + <arg name="diagnostic_graph_aggregator_graph_path_psim"/> |
33 | 34 |
|
34 | 35 | <let name="sensor_launch_pkg" value="$(find-pkg-share $(var sensor_model)_launch)"/>
|
35 | 36 |
|
|
57 | 58 | </include>
|
58 | 59 | </group>
|
59 | 60 |
|
| 61 | + <!-- Duplicated Node Checker --> |
| 62 | + <group> |
| 63 | + <include file="$(find-pkg-share duplicated_node_checker)/launch/duplicated_node_checker.launch.xml"> |
| 64 | + <arg name="config_file" value="$(var duplicated_node_checker_param_path)"/> |
| 65 | + </include> |
| 66 | + </group> |
| 67 | + |
60 | 68 | <!-- Service Log Checker -->
|
61 | 69 | <group>
|
62 | 70 | <include file="$(find-pkg-share component_interface_tools)/launch/service_log_checker.launch.xml"/>
|
|
70 | 78 | </include>
|
71 | 79 | </group>
|
72 | 80 |
|
| 81 | + <!-- MRM Operator --> |
| 82 | + <group> |
| 83 | + <include file="$(find-pkg-share mrm_comfortable_stop_operator)/launch/mrm_comfortable_stop_operator.launch.py"> |
| 84 | + <arg name="config_file" value="$(var mrm_comfortable_stop_operator_param_path)"/> |
| 85 | + </include> |
| 86 | + </group> |
| 87 | + <group> |
| 88 | + <include file="$(find-pkg-share mrm_emergency_stop_operator)/launch/mrm_emergency_stop_operator.launch.py"> |
| 89 | + <arg name="config_file" value="$(var mrm_emergency_stop_operator_param_path)"/> |
| 90 | + </include> |
| 91 | + </group> |
| 92 | + |
73 | 93 | <!-- Error Monitor -->
|
74 |
| - <group unless="$(var use_diagnostic_graph)"> |
| 94 | + <group if="$(var use_emergency_handler)"> |
75 | 95 | <let name="config_file" value="$(var system_error_monitor_param_path)" if="$(eval "'$(var run_mode)'=='online'")"/>
|
76 | 96 | <let name="config_file" value="$(var system_error_monitor_param_path)" if="$(eval "'$(var run_mode)'=='logging_simulation'")"/>
|
77 | 97 | <let name="config_file" value="$(var system_error_monitor_planning_simulator_param_path)" if="$(eval "'$(var run_mode)'=='planning_simulation'")"/>
|
|
85 | 105 | </group>
|
86 | 106 |
|
87 | 107 | <!-- Emergency Handler -->
|
88 |
| - <group unless="$(var use_diagnostic_graph)"> |
| 108 | + <group if="$(var use_emergency_handler)"> |
89 | 109 | <include file="$(find-pkg-share emergency_handler)/launch/emergency_handler.launch.xml">
|
90 | 110 | <arg name="config_file" value="$(var emergency_handler_param_path)"/>
|
91 | 111 | </include>
|
92 | 112 | </group>
|
93 | 113 |
|
| 114 | + <!-- Diagnostic Graph Aggregator --> |
94 | 115 | <group>
|
95 |
| - <include file="$(find-pkg-share duplicated_node_checker)/launch/duplicated_node_checker.launch.xml"> |
96 |
| - <arg name="config_file" value="$(var duplicated_node_checker_param_path)"/> |
| 116 | + <let name="diagnostic_graph_aggregator_graph_path" value="$(var diagnostic_graph_aggregator_graph_path_main)" if="$(eval "'$(var run_mode)'=='online'")"/> |
| 117 | + <let name="diagnostic_graph_aggregator_graph_path" value="$(var diagnostic_graph_aggregator_graph_path_main)" if="$(eval "'$(var run_mode)'=='logging_simulation'")"/> |
| 118 | + <let name="diagnostic_graph_aggregator_graph_path" value="$(var diagnostic_graph_aggregator_graph_path_psim)" if="$(eval "'$(var run_mode)'=='planning_simulation'")"/> |
| 119 | + <include file="$(find-pkg-share system_diagnostic_monitor)/launch/system_diagnostic_monitor.launch.xml"> |
| 120 | + <arg name="param_file" value="$(var diagnostic_graph_aggregator_param_path)"/> |
| 121 | + <arg name="graph_file" value="$(var diagnostic_graph_aggregator_graph_path)"/> |
97 | 122 | </include>
|
98 | 123 | </group>
|
99 | 124 |
|
100 |
| - <!-- MRM Operator --> |
101 |
| - <group> |
102 |
| - <include file="$(find-pkg-share mrm_comfortable_stop_operator)/launch/mrm_comfortable_stop_operator.launch.py"> |
103 |
| - <arg name="config_file" value="$(var mrm_comfortable_stop_operator_param_path)"/> |
104 |
| - </include> |
105 |
| - </group> |
106 |
| - <group> |
107 |
| - <include file="$(find-pkg-share mrm_emergency_stop_operator)/launch/mrm_emergency_stop_operator.launch.py"> |
108 |
| - <arg name="config_file" value="$(var mrm_emergency_stop_operator_param_path)"/> |
109 |
| - </include> |
| 125 | + <!-- Hazard Status Converter --> |
| 126 | + <group unless="$(var use_emergency_handler)"> |
| 127 | + <include file="$(find-pkg-share hazard_status_converter)/launch/hazard_status_converter.launch.xml"/> |
110 | 128 | </group>
|
111 | 129 |
|
112 | 130 | <!-- MRM Handler -->
|
113 |
| - <group if="$(var use_diagnostic_graph)"> |
| 131 | + <group unless="$(var use_emergency_handler)"> |
114 | 132 | <include file="$(find-pkg-share mrm_handler)/launch/mrm_handler.launch.xml">
|
115 | 133 | <arg name="config_file" value="$(var mrm_handler_param_path)"/>
|
116 | 134 | </include>
|
117 | 135 | </group>
|
118 |
| - |
119 |
| - <!-- Diagnostic Graph Aggregator --> |
120 |
| - <group if="$(var use_diagnostic_graph)"> |
121 |
| - <let name="graph_file" value="$(var diagnostic_graph_aggregator_graph_path)" if="$(eval "'$(var run_mode)'=='online'")"/> |
122 |
| - <let name="graph_file" value="$(var diagnostic_graph_aggregator_graph_path)" if="$(eval "'$(var run_mode)'=='logging_simulation'")"/> |
123 |
| - <let name="graph_file" value="$(var diagnostic_graph_aggregator_planning_simulator_graph_path)" if="$(eval "'$(var run_mode)'=='planning_simulation'")"/> |
124 |
| - <include file="$(find-pkg-share diagnostic_graph_aggregator)/launch/aggregator.launch.xml"> |
125 |
| - <arg name="param_file" value="$(var diagnostic_graph_aggregator_param_path)"/> |
126 |
| - <arg name="graph_file" value="$(var graph_file)"/> |
127 |
| - </include> |
128 |
| - </group> |
129 |
| - |
130 |
| - <!-- Hazard Status Converter --> |
131 |
| - <group if="$(var use_diagnostic_graph)"> |
132 |
| - <include file="$(find-pkg-share hazard_status_converter)/launch/hazard_status_converter.launch.xml"/> |
133 |
| - </group> |
134 | 136 | </group>
|
135 | 137 |
|
136 | 138 | <!-- Dummy Diag Publisher -->
|
|
0 commit comments