Skip to content

Commit 070f238

Browse files
xtk8532704saka1-s
authored andcommitted
fix pre-commit err
Signed-off-by: temkei.kem <1041084556@qq.com>
1 parent ec44ce6 commit 070f238

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

planning/planning_debug_tools/scripts/perception_replayer/perception_replayer_common.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,13 @@ 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(msg, self.objects_pub.msg_type), f"Unsupported conversion from {type(msg)}"
132132
self.rosbag_objects_data.append((stamp, msg))
133133
if topic == ego_odom_topic:
134-
assert isinstance(msg, Odometry),f"Unsupported conversion from {type(msg)}"
134+
assert isinstance(msg, Odometry), f"Unsupported conversion from {type(msg)}"
135135
self.rosbag_ego_odom_data.append((stamp, msg))
136136
if topic == traffic_signals_topic:
137-
assert isinstance(msg, TrafficSignalArray),f"Unsupported conversion from {type(msg)}"
137+
assert isinstance(msg, TrafficSignalArray), f"Unsupported conversion from {type(msg)}"
138138
self.rosbag_traffic_signals_data.append((stamp, msg))
139139

140140
def kill_online_perception_node(self):

planning/planning_debug_tools/scripts/perception_replayer/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def toc(self, name):
151151
time.perf_counter() - self.start_times[name]
152152
) * 1000 # Convert to milliseconds
153153
if self.verbose:
154-
print(f"Time for {name}: {elapsed_time:.2f} ms")
154+
print(f"Time for {name}: {elapsed_time: .2f} ms")
155155

156156
# Reset the starting time for the name
157157
del self.start_times[name]

0 commit comments

Comments
 (0)