Skip to content

Commit a00f7b2

Browse files
style(pre-commit): autofix
1 parent 1f00ebc commit a00f7b2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

planning/planning_debug_tools/scripts/perception_replayer/perception_reproducer.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,11 @@ def on_timer(self):
176176
(ego_pose.position.x - ego_odom_msg.pose.pose.position.x) ** 2
177177
+ (ego_pose.position.y - ego_odom_msg.pose.pose.position.y) ** 2
178178
)
179-
repeat_flag = ego_rosbag_speed > ego_speed * 2 and ego_rosbag_speed > 3.0 and ego_rosbag_dist > self.ego_odom_search_radius
179+
repeat_flag = (
180+
ego_rosbag_speed > ego_speed * 2
181+
and ego_rosbag_speed > 3.0
182+
and ego_rosbag_dist > self.ego_odom_search_radius
183+
)
180184
# if ego_rosbag_speed is too fast than ego_speed, stop publishing the rosbag's ego odom message temporarily.
181185

182186
if not repeat_flag:

0 commit comments

Comments
 (0)