Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add system_launch package #167

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
c431fb5
release v0.4.0
mitsudome-r Sep 18, 2020
797cd7b
removed ROS1 package
mitsudome-r Oct 6, 2020
7c2de2b
Revert "removed ROS1 package"
mitsudome-r Oct 8, 2020
eb890c3
add COLCON_IGNORE file to all ROS1 packages
mitsudome-r Oct 8, 2020
aeb8e6d
rename *.launch files to *.launch.xml
mitsudome-r Oct 23, 2020
4b1c84a
Port to ROS 2
esteve Nov 6, 2020
d6f279f
Fix params file paths
esteve Nov 25, 2020
f3260a9
Re-add autoware_state_monitor
esteve Nov 25, 2020
457aeae
Update system_launch/launch/system.launch.xml
esteve Nov 26, 2020
8a8dcd5
Add linters and missing pakcages dependencies (#37)
jilaada Dec 23, 2020
03a7441
V0.8 system launch (#51)
k0suke-murakami Feb 24, 2021
465f764
Rename ROS-related .yaml to .param.yaml (#65)
kenji-miyake Feb 24, 2021
92247c0
add clock_publisher and autoware_version (#79)
mitsudome-r Mar 4, 2021
5a87511
Split system_monitor config (#98)
kenji-miyake Mar 23, 2021
d15aad2
add use_sim-time option (#99)
tkimura4 Mar 26, 2021
41c471e
Replace doc by description (#182)
kenji-miyake Apr 5, 2021
464abeb
Use set_parameter for use_sim_time (#198)
wep21 Apr 26, 2021
cf1382f
change system_monitor.launch.xml to launch.py (#203)
Apr 27, 2021
c2f62d5
add README.md and svg files (#328)
h-ohta Aug 12, 2021
d8ba43a
Fix pre-commit (#407)
kenji-miyake Sep 15, 2021
a96ea9d
Update system.launch.xml (#411)
Sep 15, 2021
a05d595
Feature/autoware api autoware versions (#438)
isamu-takagi Oct 20, 2021
dc8db32
use let variable in system_launch (#473)
KeisukeShima Oct 26, 2021
fea2b32
Add sensor_model to system_launch (#480)
kenji-miyake Oct 29, 2021
a02c1ab
Change formatter to black (#488)
Nov 2, 2021
6cb1079
Fix diagnostic_aggregator config path (#118)
isamu-takagi Nov 18, 2021
5ceaf59
update param
tkimura4 Dec 13, 2021
961b3f7
update readme
tkimura4 Dec 13, 2021
77b6493
ci(pre-commit): autofix
pre-commit-ci[bot] Dec 13, 2021
4b1ca4e
Merge branch 'tier4/proposal' into 1-add-system-launch
taikitanaka3 Dec 13, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions launch/system_launch/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
cmake_minimum_required(VERSION 3.5)
project(system_launch)

find_package(ament_cmake_auto REQUIRED)
ament_auto_find_build_dependencies()

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
endif()

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
endif()

ament_auto_package(INSTALL_TO_SHARE
launch
config
)
20 changes: 20 additions & 0 deletions launch/system_launch/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# system_launch

## Structure

![system_launch](./system_launch.drawio.svg)

## Package Dependencies

Please see `<exec_depend>` in `package.xml`.

## Usage

```xml
<include file="$(find-pkg-share system_launch)/launch/system.launch.xml">
<arg name="run_mode" value="online"/>
<arg name="sensor_model" value="SENSOR_MODEL"/>
</include>
```

The sensing configuration parameters used in autoware_error_monitor are loaded from "config/diagnostic_aggregator/sensor_kit.param.yaml" in the "`SENSOR_MODEL`\_description" package.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**:
ros__parameters:
vehicle:
type: diagnostic_aggregator/AnalyzerGroup
path: vehicle
analyzers:
vehicle_errors:
type: diagnostic_aggregator/GenericAnalyzer
path: vehicle_errors
contains: [": vehicle_errors"]
timeout: 1.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**:
ros__parameters:
usage_warn: 0.96
usage_error: 1.00
usage_count: 2
usage_avg: true
msr_reader_port: 7634
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**:
ros__parameters:
temp_warn: 90.0
temp_error: 95.0
gpu_usage_warn: 0.90
gpu_usage_error: 1.00
memory_usage_warn: 0.95
memory_usage_error: 0.99
11 changes: 11 additions & 0 deletions launch/system_launch/config/system_monitor/hdd_monitor.param.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**:
ros__parameters:
hdd_reader_port: 7635
num_disks: 1
disks: # Until multi type lists are allowed, name N the disks as disk0...disk{N-1}
disk0:
name: /dev/sda3
temp_warn: 55.0
temp_error: 70.0
free_warn: 5120 # MB(8hour)
free_error: 100 # MB(last 1 minute)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/**:
ros__parameters:
available_size: 1024 # MB
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/**:
ros__parameters:
devices: ["*"]
traffic_reader_port: 7636
monitor_program: "greengrass"
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/**:
ros__parameters:
server: ntp.nict.jp
offset_warn: 0.1
offset_error: 5.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/**:
ros__parameters:
num_of_procs: 5
48 changes: 48 additions & 0 deletions launch/system_launch/launch/system.launch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?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"/>

<let name="sensor_launch_pkg" value="$(find-pkg-share $(var sensor_model)_launch)"/>

<group>
<push-ros-namespace namespace="/system"/>

<!-- System Monitor -->
<group>
<push-ros-namespace namespace="system_monitor"/>
<include file="$(find-pkg-share system_monitor)/launch/system_monitor.launch.py">
<arg name="cpu_monitor_config_file" value="$(find-pkg-share system_launch)/config/system_monitor/cpu_monitor.param.yaml"/>
<arg name="hdd_monitor_config_file" value="$(find-pkg-share system_launch)/config/system_monitor/hdd_monitor.param.yaml"/>
<arg name="mem_monitor_config_file" value="$(find-pkg-share system_launch)/config/system_monitor/mem_monitor.param.yaml"/>
<arg name="net_monitor_config_file" value="$(find-pkg-share system_launch)/config/system_monitor/net_monitor.param.yaml"/>
<arg name="ntp_monitor_config_file" value="$(find-pkg-share system_launch)/config/system_monitor/ntp_monitor.param.yaml"/>
<arg name="process_monitor_config_file" value="$(find-pkg-share system_launch)/config/system_monitor/process_monitor.param.yaml"/>
<arg name="gpu_monitor_config_file" value="$(find-pkg-share system_launch)/config/system_monitor/gpu_monitor.param.yaml"/>
</include>
</group>

<!-- State Monitor -->
<let name="config_file" value="$(find-pkg-share autoware_state_monitor)/config/autoware_state_monitor.param.yaml" if="$(eval &quot;'$(var run_mode)'=='online'&quot;)"/>
<let name="config_file" value="$(find-pkg-share autoware_state_monitor)/config/autoware_state_monitor.planning_simulation.param.yaml" if="$(eval &quot;'$(var run_mode)'=='planning_simulation'&quot;)"/>
<include file="$(find-pkg-share autoware_state_monitor)/launch/autoware_state_monitor.launch.xml">
<arg name="config_file" value="$(var config_file)" />
</include>

<!-- Error Monitor -->
<let name="config_file" value="$(find-pkg-share autoware_error_monitor)/config/autoware_error_monitor.param.yaml" if="$(eval &quot;'$(var run_mode)'=='online'&quot;)"/>
<let name="config_file" value="$(find-pkg-share autoware_error_monitor)/config/autoware_error_monitor.planning_simulation.param.yaml" if="$(eval &quot;'$(var run_mode)'=='planning_simulation'&quot;)"/>
<include file="$(find-pkg-share autoware_error_monitor)/launch/autoware_error_monitor.launch.xml">
<arg name="config_file" value="$(var config_file)" />
<arg name="extra_agg_config_file_sensing" value="$(var sensor_launch_pkg)/config/diagnostic_aggregator/sensor_kit.param.yaml" />
<arg name="extra_agg_config_file_vehicle" value="$(find-pkg-share system_launch)/config/diagnostic_aggregator/vehicle.param.yaml" />
<arg name="use_emergency_hold" value="false" />
</include>

<!-- Emergency Handler -->
<include file="$(find-pkg-share emergency_handler)/launch/emergency_handler.launch.xml">
<arg name="config_file" value="$(find-pkg-share emergency_handler)/config/emergency_handler.param.yaml" />
</include>

</group>
</launch>
24 changes: 24 additions & 0 deletions launch/system_launch/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>system_launch</name>
<version>0.1.0</version>
<description>The system_launch package</description>

<maintainer email="[email protected]">Kenji Miyake</maintainer>
<license>Apache License 2.0</license>

<buildtool_depend>ament_cmake_auto</buildtool_depend>

<exec_depend>autoware_error_monitor</exec_depend>
<exec_depend>autoware_state_monitor</exec_depend>
<exec_depend>emergency_handler</exec_depend>
<exec_depend>system_monitor</exec_depend>

<test_depend>ament_lint_auto</test_depend>
<test_depend>autoware_lint_common</test_depend>

<export>
<build_type>ament_cmake</build_type>
</export>
</package>
Loading