ATE Result¶
ate_result ¶
AbsoluteTrajectoryDeviations
dataclass
¶
AbsoluteTrajectoryDeviations(
pos_dev: ndarray,
directed_pos_dev: ndarray,
rot_dev: Union[Rotations, None] = None,
rotations_used: bool = False,
)
Container holding absolute pose deviations between two trajectories.
The arrays stored in this dataclass represent per-epoch deviations after
an optional temporal/spatial alignment of a reference (ground truth) and
a test trajectory. They are later aggregated by ATEResult to derive
metrics such as mean/median Absolute Trajectory Error (ATE), directional
bias, and RMS statistics.
Attributes:
-
pos_dev(ndarray) –3D array of absolute position deviation vectors in meters. Shape is (N, 3) for N deviation vectors with x, y, z components. These deviations are directly depending on the definition of the coordinate frame of the trajectories.
-
directed_pos_dev(ndarray) –3D array of directed position deviation vectors (e.g. along-track, horizontal/vertical cross-track) in meters. Shape is (N, 3). These deviations are independent of the global coordinate frame, as they are derived based on the along-track direction of the trajectory.
-
rot_dev(Rotations | None) –Optional orientation deviations represented as a
Rotationsinstance (radians).Noneif rotational evaluation was not performed. -
rotations_used(bool) –Indicates whether trajectory rotation information was employed to derive the direction frame for
directed_pos_dev. If False, directional decomposition has relied on positional differences only.
ATEResult ¶
ATEResult(
trajectory: Trajectory,
abs_dev: AbsoluteTrajectoryDeviations,
name: str = "",
)
This class represents a set of absolute trajectory deviations
Absolute trajectory deviations describe absolute pose deviations between two trajectories. The deviations are calculated by comparing pairs of positions and orientations in the test and reference trajectory.
Attributes:
-
trajectory(Trajectory) –The trajectory the deviations are belonging to
-
abs_dev(AbsoluteTrajectoryDeviations) –The absolute trajectory deviations
-
name(str) –The name of the result
Source code in trajectopy\results\ate_result.py
index
property
¶
Returns the variable that currently parametrizes the trajectory.
Depending on the sorting of the trajectory, this is either time or arc length.
Returns:
-
ndarray–np.ndarray: Current independent variable array (time or path-length).
sorted_abs_rot_dev
property
¶
sorted_abs_rot_dev: Rotations
Returns absolute rotation deviations sorted according to the trajectory's sorting index.
Returns:
-
Rotations(Rotations) –Sorted absolute rotation deviations.
has_orientation
property
¶
Returns True if orientation is available.
Returns:
-
bool(bool) –True if rotation deviations are available, False otherwise.
pos_dev_cross_h
property
¶
Returns deviations of horizontal cross track deviations
pos_dev_cross_v
property
¶
Returns deviations of vertical cross track deviations
pos_dev_comb
property
¶
Returns position deviations combined using the L2 norm
remove_ate_above ¶
Clips the ATE at a given value.
This is useful to remove outliers from the ATE.
Parameters:
-
threshold(float) –Maximum ATE value to keep.
Source code in trajectopy\results\ate_result.py
to_dataframe ¶
Exports results as pandas dataframe
Source code in trajectopy\results\ate_result.py
to_file ¶
Exports results as csv