From 318205754c8e05255f63143974c12f211aa16f35 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 30 Sep 2024 08:35:05 +0000
Subject: [PATCH] style(pre-commit): autofix
---
perception/multi_object_tracker/package.xml | 2 +-
.../perception_replayer/perception_replayer_common.py | 10 +++++++---
.../perception_replayer/perception_reproducer.py | 2 +-
.../scripts/perception_replayer/utils.py | 2 +-
4 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/perception/multi_object_tracker/package.xml b/perception/multi_object_tracker/package.xml
index f343492b2c2e3..119919b5f076c 100644
--- a/perception/multi_object_tracker/package.xml
+++ b/perception/multi_object_tracker/package.xml
@@ -13,6 +13,7 @@
eigen3_cmake_module
autoware_auto_perception_msgs
+ diagnostic_updater
eigen
kalman_filter
mussp
@@ -24,7 +25,6 @@
tier4_autoware_utils
tier4_perception_msgs
unique_identifier_msgs
- diagnostic_updater
ament_lint_auto
autoware_lint_common
diff --git a/planning/planning_debug_tools/scripts/perception_replayer/perception_replayer_common.py b/planning/planning_debug_tools/scripts/perception_replayer/perception_replayer_common.py
index 8095724d7c681..2d876e2c93a0a 100644
--- a/planning/planning_debug_tools/scripts/perception_replayer/perception_replayer_common.py
+++ b/planning/planning_debug_tools/scripts/perception_replayer/perception_replayer_common.py
@@ -128,13 +128,17 @@ def load_rosbag(self, rosbag2_path: str):
msg_type = get_message(type_map[topic])
msg = deserialize_message(data, msg_type)
if topic == objects_topic:
- assert isinstance(msg, self.objects_pub.msg_type), f"Unsupported conversion from {type(msg)}"
+ assert isinstance(
+ msg, self.objects_pub.msg_type
+ ), f"Unsupported conversion from {type(msg)}"
self.rosbag_objects_data.append((stamp, msg))
if topic == ego_odom_topic:
assert isinstance(msg, Odometry), f"Unsupported conversion from {type(msg)}"
self.rosbag_ego_odom_data.append((stamp, msg))
if topic == traffic_signals_topic:
- assert isinstance(msg, TrafficSignalArray), f"Unsupported conversion from {type(msg)}"
+ assert isinstance(
+ msg, TrafficSignalArray
+ ), f"Unsupported conversion from {type(msg)}"
self.rosbag_traffic_signals_data.append((stamp, msg))
def kill_online_perception_node(self):
@@ -185,4 +189,4 @@ def find_topics_by_timestamp(self, timestamp):
return objects_data, traffic_signals_data
def find_ego_odom_by_timestamp(self, timestamp):
- return self.binary_search(self.rosbag_ego_odom_data, timestamp)
\ No newline at end of file
+ return self.binary_search(self.rosbag_ego_odom_data, timestamp)
diff --git a/planning/planning_debug_tools/scripts/perception_replayer/perception_reproducer.py b/planning/planning_debug_tools/scripts/perception_replayer/perception_reproducer.py
index c796ed684309f..b096aa3445f0b 100755
--- a/planning/planning_debug_tools/scripts/perception_replayer/perception_reproducer.py
+++ b/planning/planning_debug_tools/scripts/perception_replayer/perception_reproducer.py
@@ -324,4 +324,4 @@ def add_perception_noise(
pass
finally:
node.destroy_node()
- rclpy.shutdown()
\ No newline at end of file
+ rclpy.shutdown()
diff --git a/planning/planning_debug_tools/scripts/perception_replayer/utils.py b/planning/planning_debug_tools/scripts/perception_replayer/utils.py
index c799b2c2c60bb..22b4296bdef94 100644
--- a/planning/planning_debug_tools/scripts/perception_replayer/utils.py
+++ b/planning/planning_debug_tools/scripts/perception_replayer/utils.py
@@ -154,4 +154,4 @@ def toc(self, name):
print(f"Time for {name}: {elapsed_time: .2f} ms")
# Reset the starting time for the name
- del self.start_times[name]
\ No newline at end of file
+ del self.start_times[name]