navlie.utils.common.associate_stamps¶
- navlie.utils.common.associate_stamps(first_stamps: List[float], second_stamps: List[float], offset: float = 0.0, max_difference: float = 0.02) → List[Tuple[int, int]]¶
Associate timestamps.
Returns a sorted list of matches, of length of the smallest of first_stamps and second_stamps.
Function taken from rpg_trajectory_evaluation toolbox.
- Parameters:
first_stamps (List[float]) – List of first timestamps
second_stamps (List[float]) – List of second timestamps
offset (float, optional) – Offset between the two lists, by default 0.0.
max_difference (float, optional) – Maximum difference between stamps in the two list to be considered a match, by default 0.02.
- Returns:
Sorted list of matches in the form (match_first_idx, match_second_idx).
- Return type: