Skip to content

Commit

Permalink
fix pre-commit err
Browse files Browse the repository at this point in the history
  • Loading branch information
xtk8532704 committed Sep 30, 2024
1 parent bc08235 commit 0cd7923
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ 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)}"
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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def toc(self, name):
time.perf_counter() - self.start_times[name]
) * 1000 # Convert to milliseconds
if self.verbose:
print(f"Time for {name}: {elapsed_time:.2f} ms")
print(f"Time for {name}: {elapsed_time: .2f} ms")

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

0 comments on commit 0cd7923

Please sign in to comment.