RPE Result¶
rpe_result ¶
RelativeTrajectoryDeviations
dataclass
¶
RelativeTrajectoryDeviations(
pos_dev: Dict[float, List[float]],
rot_dev: Dict[float, List[float]],
pair_distance: Dict[float, List[float]],
pair_distance_unit: PairDistanceUnit = METER,
)
Container holding relative (drift) pose deviations grouped by separation.
Relative deviations quantify drift between pose pairs separated by a certain spatial distance (meters) or temporal offset (seconds). Each key in the dictionaries corresponds to a separation value (bucket) and its list contains per-pair drift samples for that bucket.
Attributes:
-
pos_dev(Dict[float, List[float]]) –Mapping from pair distance to a list of position drift magnitudes. Units depend on
pair_distance_unit; values are normalized per 100 m (expressed as percentage) when distance-based. -
rot_dev(Dict[float, List[float]]) –Mapping from pair distance to a list of orientation drift samples in radians.
-
pair_distance(Dict[float, List[float]]) –Raw separation measurements (meters or seconds) for each bucket, used for computing mean bucket spacing and step size.
-
pair_distance_unit(PairDistanceUnit) –Enumeration indicating whether bucket keys represent spatial separation (
METER) or temporal separation (SECOND). Affects drift normalization and reporting units inRPEResult.
Properties
num_pairs (int): Total number of evaluated pose pairs across all buckets.
RPEResult ¶
RPEResult(rpe_dev: RelativeTrajectoryDeviations, name: str)
This class represents a set of relative trajectory deviations
Relative trajectory deviations describe relative pose deviations between two trajectories. The deviations are calculated by comparing pairs of positions and orientations in the test and reference trajectory.
Attributes:
-
rpe_dev(RelativeTrajectoryDeviations) –The relative trajectory deviations.
-
name(str) –Name of the deviation set.
Source code in trajectopy\results\rpe_result.py
rot_rpe
property
¶
Returns the average rotation drift in radians per 100 meters.
Returns:
-
float(float) –Average rotation drift.
property_dict
property
¶
Returns a dictionary containing the properties of the deviation set.
This is relevant for time based comparisons, when pose-pairs are defined by a time difference.
Returns:
-
Dict[str, str]–Dict[str, str]: Dictionary of property names and values.
from_file
classmethod
¶
Reads a set of relative trajectory deviations from a file.