|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<launch> |
| 3 | + <!-- Parameter files --> |
| 4 | + <arg name="component_state_monitor_topic_path"/> |
| 5 | + <arg name="emergency_handler_param_path"/> |
| 6 | + <arg name="duplicated_node_checker_param_path"/> |
| 7 | + <arg name="mrm_comfortable_stop_operator_param_path"/> |
| 8 | + <arg name="mrm_emergency_stop_operator_param_path"/> |
| 9 | + <arg name="hazard_lights_selector_param_path"/> |
| 10 | + <arg name="dummy_diag_publisher_param_path"/> |
| 11 | + <arg name="system_monitor_cpu_monitor_param_path"/> |
| 12 | + <arg name="system_monitor_gpu_monitor_param_path"/> |
| 13 | + <arg name="system_monitor_hdd_monitor_param_path"/> |
| 14 | + <arg name="system_monitor_mem_monitor_param_path"/> |
| 15 | + <arg name="system_monitor_net_monitor_param_path"/> |
| 16 | + <arg name="system_monitor_ntp_monitor_param_path"/> |
| 17 | + <arg name="system_monitor_process_monitor_param_path"/> |
| 18 | + <arg name="system_monitor_voltage_monitor_param_path"/> |
| 19 | + |
| 20 | + <arg name="launch_system_monitor" default="true" description="launch system monitor"/> |
| 21 | + <arg name="launch_dummy_diag_publisher" description="launch dummy diag publisher"/> |
| 22 | + <arg name="run_mode" default="online" description="options: online, logging_simulation, planning_simulation"/> |
| 23 | + <arg name="sensor_model" description="sensor model name"/> |
| 24 | + |
| 25 | + <arg name="use_diagnostic_graph" default="false" description="use diagnostic graph packages"/> |
| 26 | + <arg name="mrm_handler_param_path" if="$(var use_diagnostic_graph)"/> |
| 27 | + <arg name="diagnostic_graph_aggregator_param_path" if="$(var use_diagnostic_graph)"/> |
| 28 | + <arg name="diagnostic_graph_aggregator_graph_path" if="$(var use_diagnostic_graph)"/> |
| 29 | + <arg name="diagnostic_graph_aggregator_planning_simulator_graph_path" if="$(var use_diagnostic_graph)"/> |
| 30 | + |
| 31 | + <let name="sensor_launch_pkg" value="$(find-pkg-share $(var sensor_model)_launch)"/> |
| 32 | + |
| 33 | + <!-- Dummy Diag Publisher --> |
| 34 | + <arg name="launch_rqt_reconfigure" default="false"/> |
| 35 | + <arg name="launch_rqt_runtime_monitor" default="false"/> |
| 36 | + <arg name="launch_rqt_robot_monitor" default="false"/> |
| 37 | + <arg name="launch_rqt_runtime_monitor_err" default="false"/> |
| 38 | + |
| 39 | + <group> |
| 40 | + <push-ros-namespace namespace="/system"/> |
| 41 | + |
| 42 | + <!-- System Monitor --> |
| 43 | + <group if="$(var launch_system_monitor)"> |
| 44 | + <push-ros-namespace namespace="system_monitor"/> |
| 45 | + <include file="$(find-pkg-share system_monitor)/launch/system_monitor.launch.xml"> |
| 46 | + <arg name="cpu_monitor_config_file" value="$(var system_monitor_cpu_monitor_param_path)"/> |
| 47 | + <arg name="gpu_monitor_config_file" value="$(var system_monitor_gpu_monitor_param_path)"/> |
| 48 | + <arg name="hdd_monitor_config_file" value="$(var system_monitor_hdd_monitor_param_path)"/> |
| 49 | + <arg name="mem_monitor_config_file" value="$(var system_monitor_mem_monitor_param_path)"/> |
| 50 | + <arg name="net_monitor_config_file" value="$(var system_monitor_net_monitor_param_path)"/> |
| 51 | + <arg name="ntp_monitor_config_file" value="$(var system_monitor_ntp_monitor_param_path)"/> |
| 52 | + <arg name="process_monitor_config_file" value="$(var system_monitor_process_monitor_param_path)"/> |
| 53 | + <arg name="voltage_monitor_config_file" value="$(var system_monitor_voltage_monitor_param_path)"/> |
| 54 | + </include> |
| 55 | + </group> |
| 56 | + |
| 57 | + <!-- Service Log Checker --> |
| 58 | + <group> |
| 59 | + <include file="$(find-pkg-share component_interface_tools)/launch/service_log_checker.launch.xml"/> |
| 60 | + </group> |
| 61 | + |
| 62 | + <!-- Component State Monitor --> |
| 63 | + <group> |
| 64 | + <include file="$(find-pkg-share component_state_monitor)/launch/component_state_monitor.launch.py"> |
| 65 | + <arg name="mode" value="$(var run_mode)"/> |
| 66 | + <arg name="file" value="$(var component_state_monitor_topic_path)"/> |
| 67 | + </include> |
| 68 | + </group> |
| 69 | + |
| 70 | + <!-- Error Monitor --> |
| 71 | + <group unless="$(var use_diagnostic_graph)"> |
| 72 | + <let name="config_file" value="$(var system_error_monitor_param_path)" if="$(eval "'$(var run_mode)'=='online'")"/> |
| 73 | + <let name="config_file" value="$(var system_error_monitor_param_path)" if="$(eval "'$(var run_mode)'=='logging_simulation'")"/> |
| 74 | + <let name="config_file" value="$(var system_error_monitor_planning_simulator_param_path)" if="$(eval "'$(var run_mode)'=='planning_simulation'")"/> |
| 75 | + <include file="$(find-pkg-share system_error_monitor)/launch/system_error_monitor.launch.xml"> |
| 76 | + <arg name="config_file" value="$(var config_file)"/> |
| 77 | + <arg name="extra_agg_config_file_sensing" value="$(var sensor_launch_pkg)/config/diagnostic_aggregator/sensor_kit.param.yaml"/> |
| 78 | + <arg name="extra_agg_config_file_system" value="$(var diagnostic_aggregator_system_param_path)"/> |
| 79 | + <arg name="extra_agg_config_file_vehicle" value="$(var diagnostic_aggregator_vehicle_param_path)"/> |
| 80 | + <arg name="use_emergency_hold" value="false"/> |
| 81 | + </include> |
| 82 | + </group> |
| 83 | + |
| 84 | + <!-- Emergency Handler --> |
| 85 | + <group unless="$(var use_diagnostic_graph)"> |
| 86 | + <include file="$(find-pkg-share emergency_handler)/launch/emergency_handler.launch.xml"> |
| 87 | + <arg name="config_file" value="$(var emergency_handler_param_path)"/> |
| 88 | + </include> |
| 89 | + </group> |
| 90 | + |
| 91 | + <group> |
| 92 | + <include file="$(find-pkg-share duplicated_node_checker)/launch/duplicated_node_checker.launch.xml"> |
| 93 | + <arg name="config_file" value="$(var duplicated_node_checker_param_path)"/> |
| 94 | + </include> |
| 95 | + </group> |
| 96 | + |
| 97 | + <!-- MRM Operator --> |
| 98 | + <group> |
| 99 | + <include file="$(find-pkg-share mrm_comfortable_stop_operator)/launch/mrm_comfortable_stop_operator.launch.py"> |
| 100 | + <arg name="config_file" value="$(var mrm_comfortable_stop_operator_param_path)"/> |
| 101 | + </include> |
| 102 | + </group> |
| 103 | + <group> |
| 104 | + <include file="$(find-pkg-share mrm_emergency_stop_operator)/launch/mrm_emergency_stop_operator.launch.py"> |
| 105 | + <arg name="config_file" value="$(var mrm_emergency_stop_operator_param_path)"/> |
| 106 | + </include> |
| 107 | + </group> |
| 108 | + <!-- <group> |
| 109 | + <include file="$(find-pkg-share mrm_pull_over_manager)/launch/mrm_pull_over_manager.launch.xml"/> |
| 110 | + </group> |
| 111 | + <group> |
| 112 | + <include file="$(find-pkg-share emergency_goal_manager)/launch/emergency_goal_manager.launch.xml"/> |
| 113 | + </group> --> |
| 114 | + |
| 115 | + <!-- MRM Handler --> |
| 116 | + <group if="$(var use_diagnostic_graph)"> |
| 117 | + <include file="$(find-pkg-share mrm_handler)/launch/mrm_handler.launch.xml"> |
| 118 | + <arg name="config_file" value="$(var mrm_handler_param_path)"/> |
| 119 | + </include> |
| 120 | + </group> |
| 121 | + |
| 122 | + <!-- Diagnostic Graph Aggregator --> |
| 123 | + <group if="$(var use_diagnostic_graph)"> |
| 124 | + <let name="graph_file" value="$(var diagnostic_graph_aggregator_graph_path)" if="$(eval "'$(var run_mode)'=='online'")"/> |
| 125 | + <let name="graph_file" value="$(var diagnostic_graph_aggregator_graph_path)" if="$(eval "'$(var run_mode)'=='logging_simulation'")"/> |
| 126 | + <let name="graph_file" value="$(var diagnostic_graph_aggregator_planning_simulator_graph_path)" if="$(eval "'$(var run_mode)'=='planning_simulation'")"/> |
| 127 | + <include file="$(find-pkg-share diagnostic_graph_aggregator)/launch/aggregator.launch.xml"> |
| 128 | + <arg name="param_file" value="$(var diagnostic_graph_aggregator_param_path)"/> |
| 129 | + <arg name="graph_file" value="$(var graph_file)"/> |
| 130 | + </include> |
| 131 | + </group> |
| 132 | + |
| 133 | + <!-- Hazard Status Converter --> |
| 134 | + <group if="$(var use_diagnostic_graph)"> |
| 135 | + <include file="$(find-pkg-share hazard_status_converter)/launch/hazard_status_converter.launch.xml"/> |
| 136 | + </group> |
| 137 | + </group> |
| 138 | + |
| 139 | + <!-- hazard selector --> |
| 140 | + <group> |
| 141 | + <include file="$(find-pkg-share hazard_lights_selector)/launch/hazard_lights_selector.launch.xml"> |
| 142 | + <arg name="param_path" value="$(var hazard_lights_selector_param_path)"/> |
| 143 | + </include> |
| 144 | + </group> |
| 145 | + |
| 146 | + <!-- Dummy Diag Publisher --> |
| 147 | + <group if="$(var launch_dummy_diag_publisher)"> |
| 148 | + <include file="$(find-pkg-share dummy_diag_publisher)/launch/dummy_diag_publisher.launch.xml"> |
| 149 | + <arg name="config_file" value="$(var dummy_diag_publisher_param_path)"/> |
| 150 | + <arg name="extra_config_file_sensor" value="$(var sensor_launch_pkg)/config/dummy_diag_publisher/sensor_kit.param.yaml"/> |
| 151 | + <arg name="launch_rqt_reconfigure" value="$(var launch_rqt_reconfigure)"/> |
| 152 | + <arg name="launch_rqt_runtime_monitor" value="$(var launch_rqt_runtime_monitor)"/> |
| 153 | + <arg name="launch_rqt_robot_monitor" value="$(var launch_rqt_robot_monitor)"/> |
| 154 | + <arg name="launch_rqt_runtime_monitor_err" value="$(var launch_rqt_runtime_monitor_err)"/> |
| 155 | + </include> |
| 156 | + </group> |
| 157 | + |
| 158 | + <!-- Control Cmd Switcher for MRMv0.6 one host test--> |
| 159 | + <group> |
| 160 | + <include file="$(find-pkg-share control_cmd_switcher)/launch/control_cmd_switcher.launch.xml"/> |
| 161 | + </group> |
| 162 | + |
| 163 | + <!-- Leader Election Converter--> |
| 164 | + <group> |
| 165 | + <include file="$(find-pkg-share leader_election_converter)/launch/leader_election_converter.launch.xml"/> |
| 166 | + </group> |
| 167 | + |
| 168 | + <!-- topic state montor for MRMv0.6 one host test--> |
| 169 | + <group> |
| 170 | + <include file="$(find-pkg-share topic_state_monitor)/launch/topic_state_monitor.launch.xml"> |
| 171 | + <arg name="node_name_suffix" value="scenario_planning_trajectry"/> |
| 172 | + <arg name="topic" value="/planning/scenario_planning/trajectory"/> |
| 173 | + <arg name="topic_type" value="autoware_auto_planning_msgs/msg/Trajectory"/> |
| 174 | + <arg name="diag_name" value="publish_to_sub_status"/> |
| 175 | + <arg name="warn_rate" value="5.0"/> |
| 176 | + <arg name="error_rate" value="1.0"/> |
| 177 | + <arg name="timeout" value="1.0"/> |
| 178 | + </include> |
| 179 | + |
| 180 | + <!-- <include file="$(find-pkg-share topic_state_monitor)/launch/topic_state_monitor.launch.xml"> |
| 181 | + <arg name="node_name_suffix" value="pose_estimator_pose_with_covariance"/> |
| 182 | + <arg name="topic" value=" /localization/pose_estimator/pose_with_covariance"/> |
| 183 | + <arg name="topic_type" value="geometry_msgs/msg/PoseWithCovarianceStamped"/> |
| 184 | + <arg name="diag_name" value="publish_to_sub_status"/> |
| 185 | + <arg name="warn_rate" value=""/> |
| 186 | + <arg name="error_rate" value=""/> |
| 187 | + <arg name="timeout" value=""/> |
| 188 | + </include> --> |
| 189 | + </group> |
| 190 | +</launch> |
0 commit comments