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: change_perception_reproducer_parameter #57

Merged
merged 4 commits into from
Jun 21, 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 @@ -65,7 +65,7 @@ def __init__(self, args):
time_diffs.append(time_diff)
prev_stamp = stamp

average_ego_odom_interval = 0.1 # sum(time_diffs) / len(time_diffs)
average_ego_odom_interval = sum(time_diffs) / len(time_diffs)
self.timer = self.create_timer(average_ego_odom_interval, self.on_timer)

# kill perception process to avoid a conflict of the perception topics
Expand Down Expand Up @@ -258,16 +258,16 @@ def find_nearby_ego_odom_indies(self, ego_poses: list, search_radius: float):
parser.add_argument(
"-r",
"--search-radius",
help="the search radius for searching rosbag's ego odom messages around the nearest ego odom pose (default is 2 meters), if the search radius is set to 0, it will always publish the closest message, just as the old reproducer did.",
help="the search radius for searching rosbag's ego odom messages around the nearest ego odom pose (default is 1.5 meters), if the search radius is set to 0, it will always publish the closest message, just as the old reproducer did.",
type=float,
default=2.0,
default=1.5,
)
parser.add_argument(
"-c",
"--reproduce-cool-down",
help="The cool down time for republishing published messages (default is 15.0 seconds)",
help="The cool down time for republishing published messages (default is 80.0 seconds)",
type=float,
default=15.0,
default=80.0,
)
args = parser.parse_args()

Expand Down
Loading