Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
Signed-off-by: yuki-takagi-66 <[email protected]>
  • Loading branch information
yuki-takagi-66 committed Nov 29, 2024
1 parent 430bd98 commit 9db6bec
Show file tree
Hide file tree
Showing 11 changed files with 514 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
files:
- { path: $(dirname)/autoware-main.yaml }

edits:
- { type: remove, path: /autoware/system/duplicated_node_checker }
70 changes: 70 additions & 0 deletions autoware_launch/config/system/tier4_diagnostics/autoware-main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
files:
- { path: $(dirname)/control.yaml }
- { path: $(dirname)/localization.yaml }
- { path: $(dirname)/map.yaml }
- { path: $(dirname)/perception.yaml }
- { path: $(dirname)/planning.yaml }
- { path: $(dirname)/system.yaml }
- { path: $(dirname)/vehicle.yaml }

units:
- 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/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/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/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/emergency_stop
type: and
list:
- { 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 }
74 changes: 74 additions & 0 deletions autoware_launch/config/system/tier4_diagnostics/control.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
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 }
- { type: link, link: /autoware/control/collision_detector }

- 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

- path: /autoware/control/collision_detector
type: diag
node: collision_detector
name: collision_detect
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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:
# map
## /autoware/map/topic_rate_check/pointcloud_map
"topic_state_monitor_pointcloud_map: map_topic_status": default

# localization
## /autoware/localization/scan_matching_status
"ndt_scan_matcher: scan_matching_status": default

## /autoware/localization/accuracy
"localization_error_monitor: ellipse_error_status": default

## /autoware/localization/sensor_fusion_status
"localization: ekf_localizer": default

## /autoware/localization/topic_rate_check/pose_twist_fusion
"topic_state_monitor_pose_twist_fusion_filter_pose: localization_topic_status": default

# perception
## /autoware/perception/topic_rate_check/pointcloud
"topic_state_monitor_obstacle_segmentation_pointcloud: perception_topic_status": default
121 changes: 121 additions & 0 deletions autoware_launch/config/system/tier4_diagnostics/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
43 changes: 43 additions & 0 deletions autoware_launch/config/system/tier4_diagnostics/localization.yaml
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/tier4_diagnostics/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
16 changes: 16 additions & 0 deletions autoware_launch/config/system/tier4_diagnostics/perception.yaml
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 9db6bec

Please sign in to comment.