Skip to content

Commit 3182057

Browse files
style(pre-commit): autofix
1 parent 797ce57 commit 3182057

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

perception/multi_object_tracker/package.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<buildtool_depend>eigen3_cmake_module</buildtool_depend>
1414

1515
<depend>autoware_auto_perception_msgs</depend>
16+
<depend>diagnostic_updater</depend>
1617
<depend>eigen</depend>
1718
<depend>kalman_filter</depend>
1819
<depend>mussp</depend>
@@ -24,7 +25,6 @@
2425
<depend>tier4_autoware_utils</depend>
2526
<depend>tier4_perception_msgs</depend>
2627
<depend>unique_identifier_msgs</depend>
27-
<depend>diagnostic_updater</depend>
2828
<test_depend>ament_lint_auto</test_depend>
2929
<test_depend>autoware_lint_common</test_depend>
3030

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)