static_alignment_estimator¶
- giant.calibration.estimators.alignment.static.static_alignment_estimator(frame1_unit_vecs, frame2_unit_vecs, weights=None)[source]¶
This function estimates a static attitude alignment between one frame and another.
The static alignment is estimated using Davenport’s Q-Method solution to Wahba’s problem, using the
DavenportQMethodclass. To use, simply provide the unit vectors from the base frame and the unit vectors from the target frame. The estimated alignment from frame 1 to frame 2 will be returned as aRotationobject from frame 1 to frame 2In general this function should not be used by the user, and instead you should use the
Calibrationclass and itsestimate_static_alignment()method.For more details about the algorithm used see the
DavenportQMethoddocumentation.- Parameters:
frame1_unit_vecs (ndarray[tuple[Any, ...], dtype[float64]]) – Unit vectors in the base frame as a 3xn array where each column is a unit vector.
frame2_unit_vecs (ndarray[tuple[Any, ...], dtype[float64]]) – Unit vectors in the destination (camera) frame as a 3xn array where each column is a unit vector
weights (ndarray[tuple[Any, ...], dtype[float64]] | None) – Option length n array of weighting to use for each unit vector pair in the estimation process
- Return type: