lighthouse_sample_matcher


Classes

LighthouseSampleMatcher

LighthouseSampleMatcher()

Utility class to match samples of measurements from multiple lighthouse base stations.

Assuming that the Crazyflie was moving when the measurements were recorded, samples that were meassured aproximately at the same position are aggregated into a list of LhCfPoseSample. Matching is done using the timestamp and a maximum time span.


Static methods

def match(samples: list[LhMeasurement], max_time_diff: float = 0.02, min_nr_of_bs_in_match: int = 0) > list[cflib.localization.lighthouse_types.LhCfPoseSample]

Aggregate samples close in time into lists