full upload so not to lose anything important

This commit is contained in:
Jan Kowalczyk
2025-03-14 18:02:23 +01:00
parent 35fcfb7d5a
commit b824ff7482
33 changed files with 3539 additions and 353 deletions

View File

@@ -14,6 +14,12 @@ def load_dataset(
return Dataset.from_file(bag_file_path, topic=pointcloud_topic)
def save_dataset(dataset: Dataset, output_file_path: Path):
if not output_file_path.is_dir():
raise ArgumentTypeError(f"{output_file_path} has to be a valid folder!")
dataset.to_file(output_file_path)
def calculate_average_frame_rate(dataset: Dataset):
timestamps = dataset.timestamps
time_deltas = [