public final class KinematicsToolkit extends Object
Modifier and Type | Class and Description |
---|---|
static class |
KinematicsToolkit.IntegrationType
Integration types.
|
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_4HZ
Default 4 Hz integration step.
|
static double |
DEFAULT_8HZ
Default 8 Hz integration step.
|
Modifier and Type | Method and Description |
---|---|
static Vector3D |
computeSpin(double[] ang,
double[] angd,
RotationOrder order)
Compute spin knowing the instantaneous quaternion and its derivative.
|
static Vector3D |
computeSpin(Quaternion q,
Quaternion qd)
Compute spin knowing the instantaneous quaternion and its derivative.
|
static Quaternion |
differentiateQuaternion(Quaternion q,
Vector3D spin)
Compute the derivative of a quaternion knowing the instantaneous spin.
|
static Vector3D |
estimateSpin(Rotation start,
Rotation end,
double dt)
Estimate spin between two orientations.
|
static Rotation |
integrate(KinematicsToolkit.IntegrationType type,
Rotation initOrientation,
AbsoluteDate initDate,
AbsoluteDate finalDate,
Vector3DFunction spin,
double step)
Integrate a spin function.
|
public static final double DEFAULT_4HZ
public static final double DEFAULT_8HZ
public static Vector3D estimateSpin(Rotation start, Rotation end, double dt)
start
- start orientationend
- end orientationdt
- time elapsed between the dates of the two orientationspublic static Vector3D computeSpin(Quaternion q, Quaternion qd)
q
- the quaternion (rotation transforming frame R to frame S) at a given dateqd
- the derivative of the quaternion at a given datepublic static Vector3D computeSpin(double[] ang, double[] angd, RotationOrder order) throws PatriusException
ang
- the angles describing a rotation from frame R to frame S at a given dateangd
- the derivative of the anglesorder
- the rotation order: ZXZ for Euler angles, ZYX for Cardan anglesPatriusException
- the rotation order is not supportedpublic static Quaternion differentiateQuaternion(Quaternion q, Vector3D spin)
q
- the quaternion (rotation transforming frame R to frame S) at a given datespin
- the spin (from frame S to frame R, expressed in frame S) at the given datepublic static Rotation integrate(KinematicsToolkit.IntegrationType type, Rotation initOrientation, AbsoluteDate initDate, AbsoluteDate finalDate, Vector3DFunction spin, double step)
type
- type of the integration (either Wilcox or Edwards)initOrientation
- rotation at initial dateinitDate
- initial datefinalDate
- final date (is after or equals the initial date)spin
- spin functionstep
- time stepCopyright © 2019 CNES. All rights reserved.