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 Oct 4, 2024
1 parent 1f00ebc commit a00f7b2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,11 @@ def on_timer(self):
(ego_pose.position.x - ego_odom_msg.pose.pose.position.x) ** 2
+ (ego_pose.position.y - ego_odom_msg.pose.pose.position.y) ** 2
)
repeat_flag = ego_rosbag_speed > ego_speed * 2 and ego_rosbag_speed > 3.0 and ego_rosbag_dist > self.ego_odom_search_radius
repeat_flag = (
ego_rosbag_speed > ego_speed * 2
and ego_rosbag_speed > 3.0
and ego_rosbag_dist > self.ego_odom_search_radius
)
# if ego_rosbag_speed is too fast than ego_speed, stop publishing the rosbag's ego odom message temporarily.

if not repeat_flag:
Expand Down

0 comments on commit a00f7b2

Please sign in to comment.