We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f00ebc commit a00f7b2Copy full SHA for a00f7b2
planning/planning_debug_tools/scripts/perception_replayer/perception_reproducer.py
@@ -176,7 +176,11 @@ def on_timer(self):
176
(ego_pose.position.x - ego_odom_msg.pose.pose.position.x) ** 2
177
+ (ego_pose.position.y - ego_odom_msg.pose.pose.position.y) ** 2
178
)
179
- 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 = (
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
+ )
184
# if ego_rosbag_speed is too fast than ego_speed, stop publishing the rosbag's ego odom message temporarily.
185
186
if not repeat_flag:
0 commit comments