AttitudeEstimator¶
giant.stellar_opnav.estimators.attitude_estimator
:
This abstract base class (ABC) serves as a template for creating an attitude estimator that GIANT can use.
While it is not required to subclass this ABC in user created estimators, it is encouraged as it will ensure that the appropriate methods and attributes are created to ensure a seamless integration. In particular, the following attributes should be implemented:
Attributes
These attributes will be accessed directly for reading or writing by the GIANT
StarID
andStellarClass
classes (that is, they won’t be specified during initialization). In addition, the following method should be implemented with no arguments:Methods
See the
DavenportQMethod
class for an example of how to make a working attitude estimator- Parameters:
options_type (type[AttitudeEstimatorOptions]) – The type of the
UserOptions
to useoptions (AttitudeEstimatorOptions | None) – An optional oinstance of options_type preconfigured.
The post-fit covariance from the attitude estimation as a 4x4 array
Determine the options input to the dataclass.
This property method will ignore all internal properties and functions
Get the original configuration options.
- Returns:
OptionsT: The original options used during initialization.
Warning
Modifying the returned object will affect reset behavior.
A flag specifying whether to use weights in the estimation of the rotation.
Summary of Methods
Update the options as attributes of the object class |
|
Computes the attitude profile matrix for the provided vector sets |
|
Compares each attribute of self to other and stores the result in a dict mapping the attribute to the comparison result. |
|
This method computes the residuals between the aligned unit vectors according to Wahba's problem definitions. |
|
This method solves for the rotation matrix that best aligns the unit vectors in base_frame_directions with the unit vectors in target_frame_directions and returns the results |
|
this is used to overwrite options in variables only used in __init__ |
|
This method is used for special cases when certain options should be overwritten |
|
Resets the class to the state it was originally initialized with. |