Skip to content

Commit

Permalink
Merge pull request autowarefoundation#762 from asana17/feat/replace-s…
Browse files Browse the repository at this point in the history
…ystem-launch

feat(system_launch): replace system launch

Signed-off-by: asana17 <[email protected]>
  • Loading branch information
asana17 authored Feb 16, 2023
2 parents 82692d8 + 8971dc3 commit a7c094c
Show file tree
Hide file tree
Showing 32 changed files with 94 additions and 311 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Description:
# required_diags:
# <name>: {is_active: <is_active>, status: <status>}
# name: diag name
# is_active: Force update or not
# status: diag status set by dummy diag publisher "OK, Warn, Error, Stale"
#
# Note:
#
# default values are:
# is_active: "true"
# status: "OK"
---
/**:
ros__parameters:
required_diags:

# control
joy_controller_connection: default

# localization
localization_accuracy: default
ndt_scan_matcher: default

# system
bagpacker: default
NTP Offset: default
CPU Temperature: default
CPU Usage: default
CPU Thermal Throttling: default
CPU Frequency: default
CPU Load Average: default
GPU Temperature: default
GPU Usage: default
GPU Memory Usage: default
GPU Thermal Throttling: default
Memory Usage: default
Network Usage: default
Network Traffic: default
HDD Temperature: default
HDD Usage: default
HDD PowerOnHours: default
HDD TotalDataWritten: default
High-load: default
High-mem: default
Tasks Summary: default

#vehicle
vehicle_errors: default
6 changes: 5 additions & 1 deletion autoware_launch/launch/autoware.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
<arg name="pointcloud_map_file" default="pointcloud_map.pcd" description="pointcloud map file name"/>
<!-- System -->
<arg name="system_run_mode" default="online" description="run mode in system"/>
<arg name="launch_system_monitor" default="true" description="launch system monitor"/>
<arg name="launch_dummy_diag_publisher" default="false" description="launch dummy diag publisher"/>
<!-- Tools -->
<arg name="rviz" default="true" description="launch rviz"/>
<arg name="rviz_config" default="$(find-pkg-share autoware_launch)/rviz/autoware.rviz" description="rviz config"/>
Expand Down Expand Up @@ -64,8 +66,10 @@

<!-- System -->
<group if="$(var launch_system)">
<include file="$(find-pkg-share system_launch)/launch/system.launch.xml">
<include file="$(find-pkg-share autoware_launch)/launch/components/tier4_system_component.launch.xml">
<arg name="run_mode" value="$(var system_run_mode)"/>
<arg name="launch_system_monitor" value="$(var launch_system_monitor)"/>
<arg name="launch_dummy_diag_publisher" value="$(var launch_dummy_diag_publisher)"/>
<arg name="sensor_model" value="$(var sensor_model)"/>
</include>
</group>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<launch>
<arg name="run_mode" default="online" description="options: online, planning_simulation"/>
<arg name="sensor_model" description="sensor model name"/>
<arg name="launch_system_monitor" default="true" description="launch system monitor"/>
<arg name="launch_dummy_diag_publisher" default="false" description="launch dummy diag publisher"/>

<include file="$(find-pkg-share tier4_system_launch)/launch/system.launch.xml">

<arg name="run_mode" value="$(var run_mode)"/>.
<arg name="sensor_model" value="$(var sensor_model)"/>
<arg name="launch_system_monitor" value="$(var launch_system_monitor)"/>
<arg name="launch_dummy_diag_publisher" value="$(var launch_dummy_diag_publisher)"/>

<arg name="component_state_monitor_topic_path" value="$(find-pkg-share autoware_launch)/config/system/component_state_monitor/topics.yaml"/>
<arg name="emergency_handler_param_path" value="$(find-pkg-share autoware_launch)/config/system/emergency_handler/emergency_handler.param.yaml"/>
<arg name="mrm_comfortable_stop_operator_param_path" value="$(find-pkg-share autoware_launch)/config/system/mrm_comfortable_stop_operator/mrm_comfortable_stop_operator.param.yaml"/>
<arg name="mrm_emergency_stop_operator_param_path" value="$(find-pkg-share autoware_launch)/config/system/mrm_emergency_stop_operator/mrm_emergency_stop_operator.param.yaml"/>
<arg name="system_error_monitor_param_path" value="$(find-pkg-share autoware_launch)/config/system/system_error_monitor/system_error_monitor.param.yaml"/>
<arg name="system_error_monitor_planning_simulator_param_path" value="$(find-pkg-share autoware_launch)/config/system/system_error_monitor/system_error_monitor.planning_simulation.param.yaml"/>
<arg name="diagnostic_aggregator_system_param_path" value="$(find-pkg-share autoware_launch)/config/system/diagnostic_aggregator/system.param.yaml"/>
<arg name="diagnostic_aggregator_vehicle_param_path" value="$(find-pkg-share autoware_launch)/config/system/diagnostic_aggregator/vehicle.param.yaml"/>
<arg name="dummy_diag_publisher_param_path" value="$(find-pkg-share autoware_launch)/config/system/dummy_diag_publisher/dummy_diag_publisher.param.yaml"/>
<arg name="system_monitor_cpu_monitor_param_path" value="$(find-pkg-share autoware_launch)/config/system/system_monitor/cpu_monitor.param.yaml"/>
<arg name="system_monitor_gpu_monitor_param_path" value="$(find-pkg-share autoware_launch)/config/system/system_monitor/gpu_monitor.param.yaml"/>
<arg name="system_monitor_hdd_monitor_param_path" value="$(find-pkg-share autoware_launch)/config/system/system_monitor/hdd_monitor.param.yaml"/>
<arg name="system_monitor_mem_monitor_param_path" value="$(find-pkg-share autoware_launch)/config/system/system_monitor/mem_monitor.param.yaml"/>
<arg name="system_monitor_net_monitor_param_path" value="$(find-pkg-share autoware_launch)/config/system/system_monitor/net_monitor.param.yaml"/>
<arg name="system_monitor_ntp_monitor_param_path" value="$(find-pkg-share autoware_launch)/config/system/system_monitor/ntp_monitor.param.yaml"/>
<arg name="system_monitor_process_monitor_param_path" value="$(find-pkg-share autoware_launch)/config/system/system_monitor/process_monitor.param.yaml"/>
<arg name="system_monitor_voltage_monitor_param_path" value="$(find-pkg-share autoware_launch)/config/system/system_monitor/voltage_monitor.param.yaml"/>
</include>
</launch>
2 changes: 2 additions & 0 deletions autoware_launch/launch/e2e_simulator.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<arg name="launch_vehicle_interface" default="false"/>
<!-- System -->
<arg name="launch_system_monitor" default="false" description="launch system monitor"/>
<arg name="launch_dummy_diag_publisher" default="false" description="launch dummy diag publisher"/>
<!-- Tools -->
<arg name="rviz" default="true" description="launch rviz"/>
<arg name="rviz_config" default="$(find-pkg-share autoware_launch)/rviz/autoware.rviz" description="rviz config"/>
Expand Down Expand Up @@ -50,6 +51,7 @@
<arg name="pointcloud_map_file" value="$(var pointcloud_map_file)"/>
<!-- System -->
<arg name="launch_system_monitor" value="$(var launch_system_monitor)"/>
<arg name="launch_dummy_diag_publisher" value="$(var launch_dummy_diag_publisher)"/>
<!-- Sensing -->
<arg name="launch_sensing_driver" value="false"/>
<!-- Perception-->
Expand Down
3 changes: 3 additions & 0 deletions autoware_launch/launch/planning_simulator.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<arg name="pointcloud_map_file" default="pointcloud_map.pcd" description="pointcloud map file name"/>
<!-- System -->
<arg name="launch_system_monitor" default="false" description="launch system monitor"/>
<arg name="launch_dummy_diag_publisher" default="true" description="launch dummy diag publisher"/>
<!-- Tools -->
<arg name="rviz" default="true" description="launch rviz"/>
<arg name="rviz_config" default="$(find-pkg-share autoware_launch)/rviz/autoware.rviz" description="rviz config"/>
Expand Down Expand Up @@ -43,6 +44,8 @@
<arg name="launch_vehicle_interface" value="$(var launch_vehicle_interface)"/>
<!-- System -->
<arg name="system_run_mode" value="planning_simulation"/>
<arg name="launch_system_monitor" value="$(var launch_system_monitor)"/>
<arg name="launch_dummy_diag_publisher" value="$(var launch_dummy_diag_publisher)"/>
<!-- Map -->
<arg name="lanelet2_map_file" value="$(var lanelet2_map_file)"/>
<arg name="pointcloud_map_file" value="$(var pointcloud_map_file)"/>
Expand Down
3 changes: 2 additions & 1 deletion autoware_launch/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

<maintainer email="[email protected]">Yukihiro Saito</maintainer>
<maintainer email="[email protected]">Takagi, Isamu</maintainer>
<maintainer email="[email protected]">Akihiro Sakurai</maintainer>
<license>Apache License 2.0</license>

<buildtool_depend>ament_cmake_auto</buildtool_depend>
Expand All @@ -15,7 +16,6 @@
<exec_depend>python3-bson</exec_depend>
<exec_depend>python3-tornado</exec_depend>
<exec_depend>rviz2</exec_depend>
<exec_depend>system_launch</exec_depend>
<exec_depend>tier4_autoware_api_launch</exec_depend>
<exec_depend>tier4_control_launch</exec_depend>
<exec_depend>tier4_localization_launch</exec_depend>
Expand All @@ -24,6 +24,7 @@
<exec_depend>tier4_planning_launch</exec_depend>
<exec_depend>tier4_sensing_launch</exec_depend>
<exec_depend>tier4_simulator_launch</exec_depend>
<exec_depend>tier4_system_launch</exec_depend>
<exec_depend>tier4_vehicle_launch</exec_depend>

<test_depend>ament_lint_auto</test_depend>
Expand Down
File renamed without changes
20 changes: 0 additions & 20 deletions system_launch/CMakeLists.txt

This file was deleted.

17 changes: 0 additions & 17 deletions system_launch/README.md

This file was deleted.

52 changes: 0 additions & 52 deletions system_launch/config/system_error_monitor.param.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions system_launch/launch/dummy_diag_publisher/control.launch.xml

This file was deleted.

11 changes: 0 additions & 11 deletions system_launch/launch/dummy_diag_publisher/localization.launch.xml

This file was deleted.

87 changes: 0 additions & 87 deletions system_launch/launch/dummy_diag_publisher/system.launch.xml

This file was deleted.

7 changes: 0 additions & 7 deletions system_launch/launch/dummy_diag_publisher/vehicle.launch.xml

This file was deleted.

Loading

0 comments on commit a7c094c

Please sign in to comment.