diff --git a/planning/planning_debug_tools/scripts/perception_replayer/perception_replayer_common.py b/planning/planning_debug_tools/scripts/perception_replayer/perception_replayer_common.py index a076c78d..fa0d7301 100644 --- a/planning/planning_debug_tools/scripts/perception_replayer/perception_replayer_common.py +++ b/planning/planning_debug_tools/scripts/perception_replayer/perception_replayer_common.py @@ -148,7 +148,9 @@ def load_rosbag(self, rosbag2_path: str): new_msg.stamp = msg.stamp for traffic_signal in msg.signals: traffic_light_group = TrafficLightGroup() - traffic_light_group.traffic_light_group_id = traffic_signal.traffic_signal_id + traffic_light_group.traffic_light_group_id = ( + traffic_signal.traffic_signal_id + ) for traffic_signal_element in traffic_signal.elements: traffic_light_element = TrafficLightElement() traffic_light_element.color = traffic_signal_element.color diff --git a/planning/planning_debug_tools/scripts/perception_replayer/perception_reproducer_v2.py b/planning/planning_debug_tools/scripts/perception_replayer/perception_reproducer_v2.py index 4df7f5df..3720f1e7 100755 --- a/planning/planning_debug_tools/scripts/perception_replayer/perception_reproducer_v2.py +++ b/planning/planning_debug_tools/scripts/perception_replayer/perception_reproducer_v2.py @@ -122,7 +122,7 @@ def on_timer(self): # find a list of ego odom around the nearest_ego_odom_pos. self.stopwatch.tic("find_nearby_ego_odom_indies") - ego_odom_indices = self.find_nearby_ego_odom_indies(nearest_ego_odom_pos, + ego_odom_indices = self.find_nearby_ego_odom_indies(nearest_ego_odom_pos, self.rosbag_ego_odom_search_radius) ego_odom_indices = self.find_nearby_ego_odom_indies( nearest_ego_odom_pos, self.rosbag_ego_odom_search_radius