Skip to content

Commit

Permalink
style(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Sep 30, 2024
1 parent 797ce57 commit 3182057
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion perception/multi_object_tracker/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<buildtool_depend>eigen3_cmake_module</buildtool_depend>

<depend>autoware_auto_perception_msgs</depend>
<depend>diagnostic_updater</depend>
<depend>eigen</depend>
<depend>kalman_filter</depend>
<depend>mussp</depend>
Expand All @@ -24,7 +25,6 @@
<depend>tier4_autoware_utils</depend>
<depend>tier4_perception_msgs</depend>
<depend>unique_identifier_msgs</depend>
<depend>diagnostic_updater</depend>
<test_depend>ament_lint_auto</test_depend>
<test_depend>autoware_lint_common</test_depend>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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)
return self.binary_search(self.rosbag_ego_odom_data, timestamp)
Original file line number Diff line number Diff line change
Expand Up @@ -324,4 +324,4 @@ def add_perception_noise(
pass
finally:
node.destroy_node()
rclpy.shutdown()
rclpy.shutdown()
Original file line number Diff line number Diff line change
Expand Up @@ -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]
del self.start_times[name]

0 comments on commit 3182057

Please sign in to comment.