Skip to content

Commit

Permalink
chore(diagnostic_graph_aggregator, system_diagnostic_monitor)!: chang…
Browse files Browse the repository at this point in the history
…e the config file directories from universe to autoware_launch (#1201)

* prepare dir
* copy files from universe
Signed-off-by: Yuki Takagi <[email protected]>
  • Loading branch information
yuki-takagi-66 authored Oct 31, 2024
1 parent 642eb3e commit 7f10766
Show file tree
Hide file tree
Showing 14 changed files with 481 additions and 3 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.param.yaml
*.rviz
**/diagnostic_graph_aggregator/
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
files:
- { path: $(find-pkg-share system_diagnostic_monitor)/config/autoware-main.yaml }
- { path: $(find-pkg-share autoware_launch)/config/system/system_diagnostic_monitor/autoware-main.yaml }

edits:
- { type: remove, path: /autoware/system/duplicated_node_checker }
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
files:
- { path: $(find-pkg-share system_diagnostic_monitor)/config/autoware-main.yaml }
- { path: $(find-pkg-share autoware_launch)/config/system/system_diagnostic_monitor/autoware-main.yaml }
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
files:
- { path: $(find-pkg-share system_diagnostic_monitor)/config/autoware-psim.yaml }
- { path: $(find-pkg-share autoware_launch)/config/system/system_diagnostic_monitor/autoware-psim.yaml }
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
files:
- { path: $(dirname)/map.yaml }
- { path: $(dirname)/localization.yaml }
- { path: $(dirname)/planning.yaml }
- { path: $(dirname)/perception.yaml }
- { path: $(dirname)/control.yaml }
- { path: $(dirname)/vehicle.yaml }
- { path: $(dirname)/system.yaml }

units:
- path: /autoware/modes/stop
type: ok

- path: /autoware/modes/autonomous
type: and
list:
- { type: link, link: /autoware/map }
- { type: link, link: /autoware/localization }
- { type: link, link: /autoware/planning }
- { type: link, link: /autoware/perception }
- { type: link, link: /autoware/control }
- { type: link, link: /autoware/vehicle }
- { type: link, link: /autoware/system }

- path: /autoware/modes/local
type: and
list:
- { type: link, link: /autoware/vehicle }
- { type: link, link: /autoware/system }
- { type: link, link: /autoware/control/local }

- path: /autoware/modes/remote
type: and
list:
- { type: link, link: /autoware/vehicle }
- { type: link, link: /autoware/system }
- { type: link, link: /autoware/control/remote }

- path: /autoware/modes/emergency_stop
type: and
list:
- { type: link, link: /autoware/vehicle }
- { type: link, link: /autoware/system }

- path: /autoware/modes/comfortable_stop
type: and
list:
- { type: link, link: /autoware/map }
- { type: link, link: /autoware/localization }
- { type: link, link: /autoware/planning }
- { type: link, link: /autoware/perception }
- { type: link, link: /autoware/control }
- { type: link, link: /autoware/vehicle }
- { type: link, link: /autoware/system }

- path: /autoware/modes/pull_over
type: and
list:
- { type: link, link: /autoware/map }
- { type: link, link: /autoware/localization }
- { type: link, link: /autoware/planning }
- { type: link, link: /autoware/perception }
- { type: link, link: /autoware/control }
- { type: link, link: /autoware/vehicle }
- { type: link, link: /autoware/system }

- path: /autoware/debug/tools
type: and
list:
- { type: link, link: /autoware/system/service_log_checker }
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
files:
- { path: $(dirname)/autoware-main.yaml }

edits:
- { type: remove, path: /autoware/map/topic_rate_check/pointcloud_map }
- { type: remove, path: /autoware/localization/scan_matching_status }
- { type: remove, path: /autoware/localization/accuracy }
- { type: remove, path: /autoware/localization/sensor_fusion_status }
- { type: remove, path: /autoware/localization/topic_rate_check/pose_twist_fusion }
- { type: remove, path: /autoware/perception/topic_rate_check/pointcloud }
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
units:
- path: /autoware/control
type: and
list:
- { type: link, link: /autoware/control/topic_rate_check/trajectory_follower }
- { type: link, link: /autoware/control/topic_rate_check/control_command }
- { type: link, link: /autoware/control/node_alive_monitoring/vehicle_cmd_gate }
- { type: link, link: /autoware/control/emergency_braking }
- { type: link, link: /autoware/control/performance_monitoring/lane_departure }
- { type: link, link: /autoware/control/performance_monitoring/trajectory_deviation }
- { type: link, link: /autoware/control/performance_monitoring/control_state }

- path: /autoware/control/local
type: and
list:
- { type: link, link: /autoware/control/topic_rate_check/external_cmd_selector }
- { type: link, link: /autoware/control/topic_rate_check/external_cmd_converter }

- path: /autoware/control/remote
type: and
list:
- { type: link, link: /autoware/control/topic_rate_check/external_cmd_selector }
- { type: link, link: /autoware/control/topic_rate_check/external_cmd_converter }

- path: /autoware/control/topic_rate_check/trajectory_follower
type: diag
node: topic_state_monitor_trajectory_follower_control_cmd
name: control_topic_status

- path: /autoware/control/topic_rate_check/control_command
type: diag
node: topic_state_monitor_control_command_control_cmd
name: control_topic_status

- path: /autoware/control/node_alive_monitoring/vehicle_cmd_gate
type: diag
node: vehicle_cmd_gate
name: heartbeat

- path: /autoware/control/emergency_braking
type: diag
node: autonomous_emergency_braking
name: aeb_emergency_stop

- path: /autoware/control/performance_monitoring/lane_departure
type: diag
node: lane_departure_checker_node
name: lane_departure

- path: /autoware/control/performance_monitoring/trajectory_deviation
type: diag
node: lane_departure_checker_node
name: trajectory_deviation

- path: /autoware/control/performance_monitoring/control_state
type: diag
node: controller_node_exe
name: control_state

- path: /autoware/control/topic_rate_check/external_cmd_selector
type: diag
node: external_cmd_selector
name: heartbeat

- path: /autoware/control/topic_rate_check/external_cmd_converter
type: diag
node: external_cmd_converter
name: remote_control_topic_status
121 changes: 121 additions & 0 deletions autoware_launch/config/system/system_diagnostic_monitor/hardware.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
# TODO(Takagi, Isamu): This file is under construction.
units:
- path: /autoware/system/resources/clock/offset
diag: ": NTP Offset"
timeout: 10.0

- path: /autoware/system/resources/cpu/offset
diag: ": CPU Temperature"
timeout: 3.0

- path: /autoware/system/resources/cpu/usage
diag: ": CPU Usage"
timeout: 3.0

- path: /autoware/system/resources/cpu/thermal_throttling
diag: ": CPU Thermal Throttling"
timeout: 3.0

- path: /autoware/system/resources/cpu/frequency
diag: ": CPU Frequency"
timeout: 3.0

- path: /autoware/system/resources/cpu/load_average
diag: ": CPU Load Average"
timeout: 3.0

- path: /autoware/system/resources/gpu/temperature
diag: ": GPU Temperature"
timeout: 3.0

- path: /autoware/system/resources/gpu/usage
diag: ": GPU Usage"
timeout: 3.0

- path: /autoware/system/resources/gpu/memory_usage
diag: ": GPU Memory Usage"
timeout: 3.0

- path: /autoware/system/resources/gpu/thermal_throttling
diag: ": GPU Thermal Throttling"
timeout: 3.0

- path: /autoware/system/resources/gpu/frequency
diag: ": GPU Frequency"
timeout: 3.0

- path: /autoware/system/resources/memory/usage
diag: ": Memory Usage"
timeout: 3.0

- path: /autoware/system/resources/network/usage
diag: ": Network Usage"
timeout: 3.0

- path: /autoware/system/resources/network/traffic
diag: ": Network Traffic"
timeout: 3.0

- path: /autoware/system/resources/network/crc
diag: ": Network CRC Error"
timeout: 3.0

- path: /autoware/system/resources/network/packet_reassembles
diag: ": IP Packet Reassembles Failed"
timeout: 3.0

- path: /autoware/system/resources/storage/temperature
diag: ": HDD Temperature"
timeout: 3.0

- path: /autoware/system/resources/storage/recovered_error
diag: ": HDD RecoveredError"
timeout: 3.0

- path: /autoware/system/resources/storage/read_data_rate
diag: ": HDD ReadDataRate"
timeout: 3.0

- path: /autoware/system/resources/storage/write_data_rate
diag: ": HDD WriteDataRate"
timeout: 3.0

- path: /autoware/system/resources/storage/read_iops
diag: ": HDD ReadIOPS"
timeout: 3.0

- path: /autoware/system/resources/storage/write_iops
diag: ": HDD WriteIOPS"
timeout: 3.0

- path: /autoware/system/resources/storage/usage
diag: ": HDD Usage"
timeout: 3.0

- path: /autoware/system/resources/storage/power_on_hours
diag: ": HDD PowerOnHours"
timeout: 3.0

- path: /autoware/system/resources/storage/total_data_written
diag: ": HDD TotalDataWritten"
timeout: 3.0

- path: /autoware/system/resources/storage/connection
diag: ": HDD Connection"
timeout: 3.0

- path: /autoware/system/resources/process/high_load
diag: ": High-load"
timeout: 3.0

- path: /autoware/system/resources/process/high_mem
diag: ": High-mem"
timeout: 3.0

- path: /autoware/system/resources/process/tasks_summary
diag: ": Tasks Summary"
timeout: 3.0

- path: /autoware/system/resources/voltage/battery
diag: ": CMOS Battery Status"
timeout: 3.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
units:
- path: /autoware/localization
type: short-circuit-and
list:
- type: link
link: /autoware/localization/state
- type: and
list:
- { type: link, link: /autoware/localization/topic_rate_check/transform }
- { type: link, link: /autoware/localization/topic_rate_check/pose_twist_fusion }
- { type: link, link: /autoware/localization/scan_matching_status }
- { type: link, link: /autoware/localization/accuracy }
- { type: link, link: /autoware/localization/sensor_fusion_status }

- path: /autoware/localization/state
type: diag
node: component_state_diagnostics
name: localization_state

- path: /autoware/localization/topic_rate_check/transform
type: diag
node: topic_state_monitor_transform_map_to_base_link
name: localization_topic_status

- path: /autoware/localization/topic_rate_check/pose_twist_fusion
type: diag
node: topic_state_monitor_pose_twist_fusion_filter_pose
name: localization_topic_status

- path: /autoware/localization/scan_matching_status
type: diag
node: ndt_scan_matcher
name: scan_matching_status

- path: /autoware/localization/accuracy
type: diag
node: localization_error_monitor
name: ellipse_error_status

- path: /autoware/localization/sensor_fusion_status
type: diag
node: localization
name: ekf_localizer
16 changes: 16 additions & 0 deletions autoware_launch/config/system/system_diagnostic_monitor/map.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
units:
- path: /autoware/map
type: and
list:
- { type: link, link: /autoware/map/topic_rate_check/vector_map }
- { type: link, link: /autoware/map/topic_rate_check/pointcloud_map }

- path: /autoware/map/topic_rate_check/vector_map
type: diag
node: topic_state_monitor_vector_map
name: map_topic_status

- path: /autoware/map/topic_rate_check/pointcloud_map
type: diag
node: topic_state_monitor_pointcloud_map
name: map_topic_status
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
units:
- path: /autoware/perception
type: and
list:
- { type: link, link: /autoware/perception/topic_rate_check/objects }
- { type: link, link: /autoware/perception/topic_rate_check/pointcloud }

- path: /autoware/perception/topic_rate_check/objects
type: diag
node: topic_state_monitor_object_recognition_objects
name: perception_topic_status

- path: /autoware/perception/topic_rate_check/pointcloud
type: diag
node: topic_state_monitor_obstacle_segmentation_pointcloud
name: perception_topic_status
Loading

0 comments on commit 7f10766

Please sign in to comment.