Skip to content

Commit 0c6ad99

Browse files
pre-commit-ci[bot]saka1-s
authored andcommitted
style(pre-commit): autofix
1 parent 070f238 commit 0c6ad99

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

perception/multi_object_tracker/package.xml

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
<depend>tier4_autoware_utils</depend>
2626
<depend>tier4_perception_msgs</depend>
2727
<depend>unique_identifier_msgs</depend>
28-
<depend>diagnostic_updater</depend>
2928
<test_depend>ament_lint_auto</test_depend>
3029
<test_depend>autoware_lint_common</test_depend>
3130

planning/planning_debug_tools/scripts/perception_replayer/perception_replayer_common.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,17 @@ def load_rosbag(self, rosbag2_path: str):
128128
msg_type = get_message(type_map[topic])
129129
msg = deserialize_message(data, msg_type)
130130
if topic == objects_topic:
131-
assert isinstance(msg, self.objects_pub.msg_type), f"Unsupported conversion from {type(msg)}"
131+
assert isinstance(
132+
msg, self.objects_pub.msg_type
133+
), f"Unsupported conversion from {type(msg)}"
132134
self.rosbag_objects_data.append((stamp, msg))
133135
if topic == ego_odom_topic:
134136
assert isinstance(msg, Odometry), f"Unsupported conversion from {type(msg)}"
135137
self.rosbag_ego_odom_data.append((stamp, msg))
136138
if topic == traffic_signals_topic:
137-
assert isinstance(msg, TrafficSignalArray), f"Unsupported conversion from {type(msg)}"
139+
assert isinstance(
140+
msg, TrafficSignalArray
141+
), f"Unsupported conversion from {type(msg)}"
138142
self.rosbag_traffic_signals_data.append((stamp, msg))
139143

140144
def kill_online_perception_node(self):
@@ -185,4 +189,4 @@ def find_topics_by_timestamp(self, timestamp):
185189
return objects_data, traffic_signals_data
186190

187191
def find_ego_odom_by_timestamp(self, timestamp):
188-
return self.binary_search(self.rosbag_ego_odom_data, timestamp)
192+
return self.binary_search(self.rosbag_ego_odom_data, timestamp)

planning/planning_debug_tools/scripts/perception_replayer/perception_reproducer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -324,4 +324,4 @@ def add_perception_noise(
324324
pass
325325
finally:
326326
node.destroy_node()
327-
rclpy.shutdown()
327+
rclpy.shutdown()

planning/planning_debug_tools/scripts/perception_replayer/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,4 @@ def toc(self, name):
154154
print(f"Time for {name}: {elapsed_time: .2f} ms")
155155

156156
# Reset the starting time for the name
157-
del self.start_times[name]
157+
del self.start_times[name]

0 commit comments

Comments
 (0)