Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(planning_debug_tools): fix a bug of perception reproducer #1578

Merged
merged 2 commits into from
Oct 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,12 @@ 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 * 5 and ego_rosbag_dist > 1.0
# set the speed threshold to many (5) times then ego_speed because this constraint is mainly for departing/stopping (ego speed is close to 0).
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:
self.stopwatch.tic("find_topics_by_timestamp")
Expand Down
Loading