Alignment Result¶
alignment_result ¶
AlignmentResult
dataclass
¶
AlignmentResult(
name: str = "Alignment Result",
position_parameters: AlignmentParameters = AlignmentParameters(),
rotation_parameters: SensorRotationParameters = SensorRotationParameters(),
estimation_of: AlignmentEstimationSettings = AlignmentEstimationSettings(),
converged: bool = True,
)
Class to store the result of an alignment.
Attributes:
-
name(str) –Name of the result.
-
position_parameters(AlignmentParameters) –Estimated position alignment parameters.
-
rotation_parameters(SensorRotationParameters) –Estimated rotation alignment parameters.
-
estimation_of(AlignmentEstimationSettings) –Settings defining which parameters were estimated.
-
converged(bool) –Whether the estimation converged.
to_file ¶
Save the result to a file.
Parameters:
-
filename(str) –Path to the file.
Source code in trajectopy\results\alignment_result.py
from_file
classmethod
¶
from_file(filename: str) -> AlignmentResult
Load the result from a file.
Parameters:
-
filename(str) –Path to the file.
Returns:
-
AlignmentResult(AlignmentResult) –The loaded result.