Skip to content

Commit

Permalink
feat(simulator_launch): add fault_injection config (autowarefoundatio…
Browse files Browse the repository at this point in the history
…n#286)

Signed-off-by: Keisuke Shima <19993104+KeisukeShima@users.noreply.github.com>
  • Loading branch information
KeisukeShima authored and 0x126 committed Apr 22, 2022
1 parent 93414a8 commit c7f037a
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
1 change: 1 addition & 0 deletions simulator_launch/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ endif()

ament_auto_package(INSTALL_TO_SHARE
launch
config
)
37 changes: 37 additions & 0 deletions simulator_launch/config/fault_injection.param.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/**:
ros__parameters:
event_diag_list:
vehicle_is_out_of_lane: "lane_departure"
trajectory_deviation_is_high: "trajectory_deviation"
localization_matching_score_is_low: "ndt_scan_matcher"
localization_accuracy_is_low: "localization_accuracy"
map_version_is_different: "map_version"
trajectory_is_invalid: "trajectory_point_validation"
cpu_temperature_is_high: "CPU Temperature"
cpu_usage_is_high: "CPU Usage"
cpu_is_in_thermal_throttling: "CPU Thermal Throttling"
storage_temperature_is_high: "HDD Temperature"
storage_usage_is_high: "HDD Usage"
network_usage_is_high: "Network Usage"
clock_error_is_large: "NTP Offset"
gpu_temperature_is_high: "GPU Temperature"
gpu_usage_is_high: "GPU Usage"
gpu_memory_usage_is_high: "GPU Memory Usage"
gpu_is_in_thermal_throttling: "GPU Thermal Throttling"
driving_recorder_storage_error: "driving_recorder"
debug_data_logger_storage_error: "bagpacker"
emergency_stop_operation: "emergency_stop_operation"
vehicle_error_occurred: "vehicle_errors"
vehicle_ecu_connection_is_lost: "can_bus_connection"
obstacle_crash_sensor_is_activated: "obstacle_crash"
/control/command_gate/node_alive_monitoring: "vehicle_cmd_gate: heartbeat"
/control/autonomous_driving/node_alive_monitoring: "control_topic_status"
/control/external_command_selector/node_alive_monitoring: "external_cmd_selector: heartbeat"
/localization/node_alive_monitoring: "localization_topic_status"
/map/node_alive_monitoring: "map_topic_status"
/planning/node_alive_monitoring: "planning_topic_status"
/sensing/lidar/node_alive_monitoring: "lidar_topic_status"
/sensing/imu/node_alive_monitoring: "imu_connection"
/sensing/gnss/node_alive_monitoring: "gnss_connection"
/system/node_alive_monitoring: "system_topic_status"
/vehicle/node_alive_monitoring: "vehicle_topic_status"
4 changes: 3 additions & 1 deletion simulator_launch/launch/simulator.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
<let name="vehicle_model_pkg" value="$(find-pkg-share $(var vehicle_model)_description)"/>

<group if="$(var scenario_simulation)">
<include file="$(find-pkg-share fault_injection)/launch/fault_injection.launch.xml"/>
<include file="$(find-pkg-share fault_injection)/launch/fault_injection.launch.xml">
<arg name="config_file" value="$(find-pkg-share simulator_launch)/config/fault_injection.param.yaml"/>
</include>
</group>

<!-- Dummy Perception -->
Expand Down

0 comments on commit c7f037a

Please sign in to comment.