From 6b90c30e596a5d975a02266be48d9b0023897600 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 26 Mar 2024 07:19:10 +0000 Subject: [PATCH] ci(pre-commit): autofix --- .../launch/topic_state_monitor.launch.py | 357 ++++++++++-------- 1 file changed, 194 insertions(+), 163 deletions(-) diff --git a/aip_x2_launch/launch/topic_state_monitor.launch.py b/aip_x2_launch/launch/topic_state_monitor.launch.py index 71480a29..4ff61e05 100644 --- a/aip_x2_launch/launch/topic_state_monitor.launch.py +++ b/aip_x2_launch/launch/topic_state_monitor.launch.py @@ -2,22 +2,25 @@ from launch_ros.actions import ComposableNodeContainer from launch_ros.descriptions import ComposableNode + def generate_launch_description(): # GNSS topic monitor gnss_topic_monitor = ComposableNode( package="topic_state_monitor", plugin="topic_state_monitor::TopicStateMonitorNode", name="topic_state_monitor_gnss_pose", - parameters=[{ - "topic": "/sensing/gnss/pose", - "topic_type": "geometry_msgs/msg/PoseStamped", - "best_effort": True, - "diag_name": "gnss_topic_status", - "warn_rate": 2.5, - "error_rate": 0.5, - "timeout": 5.0, - "window_size": 10, - }], + parameters=[ + { + "topic": "/sensing/gnss/pose", + "topic_type": "geometry_msgs/msg/PoseStamped", + "best_effort": True, + "diag_name": "gnss_topic_status", + "warn_rate": 2.5, + "error_rate": 0.5, + "timeout": 5.0, + "window_size": 10, + } + ], extra_arguments=[{"use_intra_process_comms": True}], ) @@ -26,16 +29,18 @@ def generate_launch_description(): package="topic_state_monitor", plugin="topic_state_monitor::TopicStateMonitorNode", name="topic_state_monitor_imu_data", - parameters=[{ - "topic": "/sensing/imu/imu_data", - "topic_type": "sensor_msgs/msg/Imu", - "best_effort": True, - "diag_name": "imu_topic_status", - "warn_rate": 5.0, - "error_rate": 1.0, - "timeout": 5.0, - "window_size": 10, - }], + parameters=[ + { + "topic": "/sensing/imu/imu_data", + "topic_type": "sensor_msgs/msg/Imu", + "best_effort": True, + "diag_name": "imu_topic_status", + "warn_rate": 5.0, + "error_rate": 1.0, + "timeout": 5.0, + "window_size": 10, + } + ], extra_arguments=[{"use_intra_process_comms": True}], ) @@ -44,16 +49,18 @@ def generate_launch_description(): package="topic_state_monitor", plugin="topic_state_monitor::TopicStateMonitorNode", name="topic_state_monitor_radar_front_center", - parameters=[{ - "topic": "/sensing/radar/front_center/objects_raw", - "topic_type": "radar_msgs/msg/RadarTracks", - "best_effort": True, - "diag_name": "radar_front_center_topic_status", - "warn_rate": 5.0, - "error_rate": 1.0, - "timeout": 5.0, - "window_size": 10, - }], + parameters=[ + { + "topic": "/sensing/radar/front_center/objects_raw", + "topic_type": "radar_msgs/msg/RadarTracks", + "best_effort": True, + "diag_name": "radar_front_center_topic_status", + "warn_rate": 5.0, + "error_rate": 1.0, + "timeout": 5.0, + "window_size": 10, + } + ], extra_arguments=[{"use_intra_process_comms": True}], ) @@ -61,16 +68,18 @@ def generate_launch_description(): package="topic_state_monitor", plugin="topic_state_monitor::TopicStateMonitorNode", name="topic_state_monitor_radar_front_left", - parameters=[{ - "topic": "/sensing/radar/front_left/objects_raw", - "topic_type": "radar_msgs/msg/RadarTracks", - "best_effort": True, - "diag_name": "radar_front_left_topic_status", - "warn_rate": 5.0, - "error_rate": 1.0, - "timeout": 5.0, - "window_size": 10, - }], + parameters=[ + { + "topic": "/sensing/radar/front_left/objects_raw", + "topic_type": "radar_msgs/msg/RadarTracks", + "best_effort": True, + "diag_name": "radar_front_left_topic_status", + "warn_rate": 5.0, + "error_rate": 1.0, + "timeout": 5.0, + "window_size": 10, + } + ], extra_arguments=[{"use_intra_process_comms": True}], ) @@ -78,16 +87,18 @@ def generate_launch_description(): package="topic_state_monitor", plugin="topic_state_monitor::TopicStateMonitorNode", name="topic_state_monitor_radar_front_right", - parameters=[{ - "topic": "/sensing/radar/front_right/objects_raw", - "topic_type": "radar_msgs/msg/RadarTracks", - "best_effort": True, - "diag_name": "radar_front_right_topic_status", - "warn_rate": 5.0, - "error_rate": 1.0, - "timeout": 5.0, - "window_size": 10, - }], + parameters=[ + { + "topic": "/sensing/radar/front_right/objects_raw", + "topic_type": "radar_msgs/msg/RadarTracks", + "best_effort": True, + "diag_name": "radar_front_right_topic_status", + "warn_rate": 5.0, + "error_rate": 1.0, + "timeout": 5.0, + "window_size": 10, + } + ], extra_arguments=[{"use_intra_process_comms": True}], ) @@ -95,16 +106,18 @@ def generate_launch_description(): package="topic_state_monitor", plugin="topic_state_monitor::TopicStateMonitorNode", name="topic_state_monitor_radar_rear_center", - parameters=[{ - "topic": "/sensing/radar/rear_center/objects_raw", - "topic_type": "radar_msgs/msg/RadarTracks", - "best_effort": True, - "diag_name": "radar_rear_center_topic_status", - "warn_rate": 5.0, - "error_rate": 1.0, - "timeout": 5.0, - "window_size": 10, - }], + parameters=[ + { + "topic": "/sensing/radar/rear_center/objects_raw", + "topic_type": "radar_msgs/msg/RadarTracks", + "best_effort": True, + "diag_name": "radar_rear_center_topic_status", + "warn_rate": 5.0, + "error_rate": 1.0, + "timeout": 5.0, + "window_size": 10, + } + ], extra_arguments=[{"use_intra_process_comms": True}], ) @@ -112,16 +125,18 @@ def generate_launch_description(): package="topic_state_monitor", plugin="topic_state_monitor::TopicStateMonitorNode", name="topic_state_monitor_radar_rear_left", - parameters=[{ - "topic": "/sensing/radar/rear_left/objects_raw", - "topic_type": "radar_msgs/msg/RadarTracks", - "best_effort": True, - "diag_name": "radar_rear_left_topic_status", - "warn_rate": 5.0, - "error_rate": 1.0, - "timeout": 5.0, - "window_size": 10, - }], + parameters=[ + { + "topic": "/sensing/radar/rear_left/objects_raw", + "topic_type": "radar_msgs/msg/RadarTracks", + "best_effort": True, + "diag_name": "radar_rear_left_topic_status", + "warn_rate": 5.0, + "error_rate": 1.0, + "timeout": 5.0, + "window_size": 10, + } + ], extra_arguments=[{"use_intra_process_comms": True}], ) @@ -129,16 +144,18 @@ def generate_launch_description(): package="topic_state_monitor", plugin="topic_state_monitor::TopicStateMonitorNode", name="topic_state_monitor_radar_rear_right", - parameters=[{ - "topic": "/sensing/radar/rear_right/objects_raw", - "topic_type": "radar_msgs/msg/RadarTracks", - "best_effort": True, - "diag_name": "radar_rear_right_topic_status", - "warn_rate": 5.0, - "error_rate": 1.0, - "timeout": 5.0, - "window_size": 10, - }], + parameters=[ + { + "topic": "/sensing/radar/rear_right/objects_raw", + "topic_type": "radar_msgs/msg/RadarTracks", + "best_effort": True, + "diag_name": "radar_rear_right_topic_status", + "warn_rate": 5.0, + "error_rate": 1.0, + "timeout": 5.0, + "window_size": 10, + } + ], extra_arguments=[{"use_intra_process_comms": True}], ) @@ -147,16 +164,18 @@ def generate_launch_description(): package="topic_state_monitor", plugin="topic_state_monitor::TopicStateMonitorNode", name="topic_state_monitor_camera0", - parameters=[{ - "topic": "/sensing/camera/camera0/camera_info", - "topic_type": "sensor_msgs/msg/CameraInfo", - "best_effort": True, - "diag_name": "camera0_topic_status", - "warn_rate": 5.0, - "error_rate": 1.0, - "timeout": 5.0, - "window_size": 10, - }], + parameters=[ + { + "topic": "/sensing/camera/camera0/camera_info", + "topic_type": "sensor_msgs/msg/CameraInfo", + "best_effort": True, + "diag_name": "camera0_topic_status", + "warn_rate": 5.0, + "error_rate": 1.0, + "timeout": 5.0, + "window_size": 10, + } + ], extra_arguments=[{"use_intra_process_comms": True}], ) @@ -164,16 +183,18 @@ def generate_launch_description(): package="topic_state_monitor", plugin="topic_state_monitor::TopicStateMonitorNode", name="topic_state_monitor_camera1", - parameters=[{ - "topic": "/sensing/camera/camera1/camera_info", - "topic_type": "sensor_msgs/msg/CameraInfo", - "best_effort": True, - "diag_name": "camera1_topic_status", - "warn_rate": 5.0, - "error_rate": 1.0, - "timeout": 5.0, - "window_size": 10, - }], + parameters=[ + { + "topic": "/sensing/camera/camera1/camera_info", + "topic_type": "sensor_msgs/msg/CameraInfo", + "best_effort": True, + "diag_name": "camera1_topic_status", + "warn_rate": 5.0, + "error_rate": 1.0, + "timeout": 5.0, + "window_size": 10, + } + ], extra_arguments=[{"use_intra_process_comms": True}], ) @@ -181,16 +202,18 @@ def generate_launch_description(): package="topic_state_monitor", plugin="topic_state_monitor::TopicStateMonitorNode", name="topic_state_monitor_camera2", - parameters=[{ - "topic": "/sensing/camera/camera2/camera_info", - "topic_type": "sensor_msgs/msg/CameraInfo", - "best_effort": True, - "diag_name": "camera2_topic_status", - "warn_rate": 5.0, - "error_rate": 1.0, - "timeout": 5.0, - "window_size": 10, - }], + parameters=[ + { + "topic": "/sensing/camera/camera2/camera_info", + "topic_type": "sensor_msgs/msg/CameraInfo", + "best_effort": True, + "diag_name": "camera2_topic_status", + "warn_rate": 5.0, + "error_rate": 1.0, + "timeout": 5.0, + "window_size": 10, + } + ], extra_arguments=[{"use_intra_process_comms": True}], ) @@ -198,16 +221,18 @@ def generate_launch_description(): package="topic_state_monitor", plugin="topic_state_monitor::TopicStateMonitorNode", name="topic_state_monitor_camera3", - parameters=[{ - "topic": "/sensing/camera/camera3/camera_info", - "topic_type": "sensor_msgs/msg/CameraInfo", - "best_effort": True, - "diag_name": "camera3_topic_status", - "warn_rate": 5.0, - "error_rate": 1.0, - "timeout": 5.0, - "window_size": 10, - }], + parameters=[ + { + "topic": "/sensing/camera/camera3/camera_info", + "topic_type": "sensor_msgs/msg/CameraInfo", + "best_effort": True, + "diag_name": "camera3_topic_status", + "warn_rate": 5.0, + "error_rate": 1.0, + "timeout": 5.0, + "window_size": 10, + } + ], extra_arguments=[{"use_intra_process_comms": True}], ) @@ -215,16 +240,18 @@ def generate_launch_description(): package="topic_state_monitor", plugin="topic_state_monitor::TopicStateMonitorNode", name="topic_state_monitor_camera4", - parameters=[{ - "topic": "/sensing/camera/camera4/camera_info", - "topic_type": "sensor_msgs/msg/CameraInfo", - "best_effort": True, - "diag_name": "camera4_topic_status", - "warn_rate": 5.0, - "error_rate": 1.0, - "timeout": 5.0, - "window_size": 10, - }], + parameters=[ + { + "topic": "/sensing/camera/camera4/camera_info", + "topic_type": "sensor_msgs/msg/CameraInfo", + "best_effort": True, + "diag_name": "camera4_topic_status", + "warn_rate": 5.0, + "error_rate": 1.0, + "timeout": 5.0, + "window_size": 10, + } + ], extra_arguments=[{"use_intra_process_comms": True}], ) @@ -232,16 +259,18 @@ def generate_launch_description(): package="topic_state_monitor", plugin="topic_state_monitor::TopicStateMonitorNode", name="topic_state_monitor_camera5", - parameters=[{ - "topic": "/sensing/camera/camera5/camera_info", - "topic_type": "sensor_msgs/msg/CameraInfo", - "best_effort": True, - "diag_name": "camera5_topic_status", - "warn_rate": 5.0, - "error_rate": 1.0, - "timeout": 5.0, - "window_size": 10, - }], + parameters=[ + { + "topic": "/sensing/camera/camera5/camera_info", + "topic_type": "sensor_msgs/msg/CameraInfo", + "best_effort": True, + "diag_name": "camera5_topic_status", + "warn_rate": 5.0, + "error_rate": 1.0, + "timeout": 5.0, + "window_size": 10, + } + ], extra_arguments=[{"use_intra_process_comms": True}], ) @@ -249,16 +278,18 @@ def generate_launch_description(): package="topic_state_monitor", plugin="topic_state_monitor::TopicStateMonitorNode", name="topic_state_monitor_camera6", - parameters=[{ - "topic": "/sensing/camera/camera6/camera_info", - "topic_type": "sensor_msgs/msg/CameraInfo", - "best_effort": True, - "diag_name": "camera6_topic_status", - "warn_rate": 5.0, - "error_rate": 1.0, - "timeout": 5.0, - "window_size": 10, - }], + parameters=[ + { + "topic": "/sensing/camera/camera6/camera_info", + "topic_type": "sensor_msgs/msg/CameraInfo", + "best_effort": True, + "diag_name": "camera6_topic_status", + "warn_rate": 5.0, + "error_rate": 1.0, + "timeout": 5.0, + "window_size": 10, + } + ], extra_arguments=[{"use_intra_process_comms": True}], ) @@ -266,16 +297,18 @@ def generate_launch_description(): package="topic_state_monitor", plugin="topic_state_monitor::TopicStateMonitorNode", name="topic_state_monitor_camera7", - parameters=[{ - "topic": "/sensing/camera/camera7/camera_info", - "topic_type": "sensor_msgs/msg/CameraInfo", - "best_effort": True, - "diag_name": "camera7_topic_status", - "warn_rate": 5.0, - "error_rate": 1.0, - "timeout": 5.0, - "window_size": 10, - }], + parameters=[ + { + "topic": "/sensing/camera/camera7/camera_info", + "topic_type": "sensor_msgs/msg/CameraInfo", + "best_effort": True, + "diag_name": "camera7_topic_status", + "warn_rate": 5.0, + "error_rate": 1.0, + "timeout": 5.0, + "window_size": 10, + } + ], extra_arguments=[{"use_intra_process_comms": True}], ) @@ -306,6 +339,4 @@ def generate_launch_description(): output="screen", ) - return LaunchDescription([ - container - ]) + return LaunchDescription([container])