public interface AttitudeProvider extends Serializable
An attitude provider provides a way to compute an Attitude from an date and position-velocity local
provider.
| Modifier and Type | Method and Description |
|---|---|
default Vector3D |
computeSpinByFD(PVCoordinatesProvider pvProv,
Frame frame,
AbsoluteDate date,
double computationStep)
Compute the rotation rate vector at a given date by finite differences (using 2nd order centered finite
differences).
|
default Vector3D |
computeSpinDerivativeByFD(PVCoordinatesProvider pvProv,
Frame frame,
AbsoluteDate date,
double computationStep)
Compute the rotation acceleration vector at a given date by finite differences (using 2nd order centered finite
differences).
|
default Attitude |
getAttitude(Orbit orbit)
Compute the attitude corresponding to an orbital state.
|
Attitude |
getAttitude(PVCoordinatesProvider pvProv,
AbsoluteDate date,
Frame frame)
Compute the attitude corresponding to an orbital state.
|
void |
setSpinDerivativesComputation(boolean computeSpinDerivatives)
Method to activate spin derivative computation.
|
Attitude getAttitude(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame) throws PatriusException
pvProv - local position-velocity provider around current datedate - current dateframe - reference frame from which attitude is computedPatriusException - if attitude cannot be computed for provided datedefault Attitude getAttitude(Orbit orbit) throws PatriusException
orbit - current orbitPatriusException - if attitude cannot be computedvoid setSpinDerivativesComputation(boolean computeSpinDerivatives)
computeSpinDerivatives - true if spin derivatives should be computeddefault Vector3D computeSpinByFD(PVCoordinatesProvider pvProv, Frame frame, AbsoluteDate date, double computationStep) throws PatriusException
Warning: this method calls getAttitude(PVCoordinatesProvider, AbsoluteDate, Frame) hence it should not
be called by this method.
pvProv - PV Coordinates Provider.frame - Frame of expression of the attitude. The rotation rate will then be relative to this frame.date - Date at which the rotation rate vector is desired.computationStep - Computation step used for the finite differences (in seconds).PatriusException - When the attitude cannot be computeddefault Vector3D computeSpinDerivativeByFD(PVCoordinatesProvider pvProv, Frame frame, AbsoluteDate date, double computationStep) throws PatriusException
Warning: this method calls getAttitude(PVCoordinatesProvider, AbsoluteDate, Frame) hence it should not
be called by this method.
pvProv - PV Coordinates Provider.frame - Frame of expression of the attitude. The rotation acceleration will then be relative to this frame.date - Date at which the rotation acceleration vector is desired.computationStep - Computation step used for the finite differences (in seconds).PatriusException - When the attitude cannot be computedCopyright © 2025 CNES. All rights reserved.