Class ECIKinematicsEstimatorTest
java.lang.Object
com.irurueta.navigation.inertial.estimators.ECIKinematicsEstimatorTest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final doubleMaximum allowed difference between the estimator and the in-test reference implementation (a direct transcription of Groves'Kinematics_ECI.musing matrix operations).private static final doubleprivate static final doubleprivate static final doubleprivate static final doubleMaximum absolute variation, expressed in degrees, of each Euler angle between old and new frames in the large pass of the estimation tests.private static final doubleLarge time interval, expressed in seconds (s), used by a second pass of the estimation tests along withLARGE_MAX_ANGLE_VARIATION_DEGREESso that second order terms (attitude change during the time interval and gravitation change between old and new positions) are observable.private static final doubleprivate static final doubleprivate static final doubleprivate static final doubleMaximum absolute variation, expressed in degrees, of each Euler angle between old and new frames in the small pass of the estimation tests.private static final doubleprivate static final doubleprivate static final doubleprivate static final doubleprivate static final doubleprivate static final doubleprivate static final doubleMinimum specific force difference, expressed in meters per squared second (m/s^2), that must exist between kinematics estimated with gravitation evaluated at the old position and at the new position for the long round trip time interval.private static final doubleprivate static final doubleprivate static final doubleprivate static final doubleMaximum allowed difference between the kinematics fed toECIInertialNavigatorand the kinematics recovered byECIKinematicsEstimatorfrom the navigated frame.private static final doubleX coordinate of angular rate, expressed in radians per second (rad/s), used by the round trip tests.private static final doubleY coordinate of angular rate, expressed in radians per second (rad/s), used by the round trip tests.private static final doubleZ coordinate of angular rate, expressed in radians per second (rad/s), used by the round trip tests.private static final doubleX coordinate of specific force, expressed in meters per squared second (m/s^2), used by the round trip tests.private static final doubleY coordinate of specific force, expressed in meters per squared second (m/s^2), used by the round trip tests.private static final doubleZ coordinate of specific force, expressed in meters per squared second (m/s^2), used by the round trip tests.private static final doubleLong time interval, expressed in seconds (s), used by the round trip tests.private static final doublePitch angle, expressed in degrees, of the fixed frame used by the round trip tests.private static final doubleRoll angle, expressed in degrees, of the fixed frame used by the round trip tests.private static final doubleShort time interval, expressed in seconds (s), used by the round trip tests.private static final doubleDown velocity, expressed in meters per second (m/s), of the fixed frame used by the round trip tests.private static final doubleEast velocity, expressed in meters per second (m/s), of the fixed frame used by the round trip tests.private static final doubleNorth velocity, expressed in meters per second (m/s), of the fixed frame used by the round trip tests.private static final doubleYaw angle, expressed in degrees, of the fixed frame used by the round trip tests.private static final doubleprivate static final longBase seed of the randomizers used by the estimation tests, so that they are deterministic.private static final intNumber of seeded runs executed by the estimation tests.private static final double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidcheckEstimate(com.irurueta.statistics.UniformRandomizer randomizer, double seconds, double maxAngleVariationDegrees) Executes one pass oftestEstimate().private static voidcheckEstimateAndReturnNew(com.irurueta.statistics.UniformRandomizer randomizer, double seconds, double maxAngleVariationDegrees) Executes one pass oftestEstimateAndReturnNew().private static voidcheckEstimateKinematics(com.irurueta.statistics.UniformRandomizer randomizer, double seconds, double maxAngleVariationDegrees) Executes one pass oftestEstimateKinematics().private static voidcheckEstimateKinematicsAndReturnNew(com.irurueta.statistics.UniformRandomizer randomizer, double seconds, double maxAngleVariationDegrees) Executes one pass oftestEstimateKinematicsAndReturnNew().private static com.irurueta.navigation.frames.NEDFramecreateNewNedFrame(com.irurueta.navigation.frames.NEDFrame oldFrame) private static com.irurueta.navigation.frames.NEDFramecreateNewNedFrame(com.irurueta.statistics.UniformRandomizer randomizer, com.irurueta.navigation.frames.NEDFrame oldFrame, double maxAngleVariationDegrees) Creates a NED frame at the end of the time interval by randomly varying position, velocity and attitude of the frame at the start of the time interval.private static com.irurueta.navigation.frames.NEDFrameprivate static com.irurueta.navigation.frames.NEDFramecreateOldNedFrame(com.irurueta.statistics.UniformRandomizer randomizer) Creates a NED frame at the start of the time interval having random velocity and attitude.private static BodyKinematicsCreates the fixed body kinematics used by the round trip tests.private static com.irurueta.navigation.frames.ECIFramecreateRoundTripOldEciFrame(double timeInterval) Creates the fixed ECI frame at the start of the time interval used by the round trip tests.private static StringDescribes body kinematics so that assertion failures report the observed values.private static BodyKinematicsestimateKinematics(double timeInterval, com.irurueta.navigation.frames.CoordinateTransformation c, com.irurueta.navigation.frames.CoordinateTransformation oldC, double vx, double vy, double vz, double oldVx, double oldVy, double oldVz, double x, double y, double z) private static doubleComputes the norm of the specific force difference between two body kinematics.(package private) void(package private) voidChecks that allECIKinematicsEstimator.estimate(double, com.irurueta.navigation.frames.CoordinateTransformation, com.irurueta.navigation.frames.CoordinateTransformation, double, double, double, double, double, double, double, double, double, com.irurueta.navigation.inertial.BodyKinematics)overloads are consistent: overloads receiving an explicit position or the previous frame evaluate gravitation at the provided or previous position, and overloads receiving only the current frame evaluate gravitation at the current position.(package private) voidChecks that allECIKinematicsEstimator.estimateAndReturnNew(double, com.irurueta.navigation.frames.CoordinateTransformation, com.irurueta.navigation.frames.CoordinateTransformation, double, double, double, double, double, double, double, double, double)overloads are consistent: overloads receiving an explicit position or the previous frame evaluate gravitation at the provided or previous position, and overloads receiving only the current frame evaluate gravitation at the current position.(package private) voidChecks that allECIKinematicsEstimator.estimateKinematics(double, com.irurueta.navigation.frames.CoordinateTransformation, com.irurueta.navigation.frames.CoordinateTransformation, double, double, double, double, double, double, double, double, double, com.irurueta.navigation.inertial.BodyKinematics)overloads are consistent: overloads receiving an explicit position or the previous frame evaluate gravitation at the provided or previous position, and overloads receiving only the current frame evaluate gravitation at the current position.(package private) voidChecks that allECIKinematicsEstimator.estimateKinematicsAndReturnNew(double, com.irurueta.navigation.frames.CoordinateTransformation, com.irurueta.navigation.frames.CoordinateTransformation, double, double, double, double, double, double, double, double, double)overloads are consistent: overloads receiving an explicit position or the previous frame evaluate gravitation at the provided or previous position, and overloads receiving only the current frame evaluate gravitation at the current position.(package private) void(package private) void(package private) void(package private) void(package private) voidChecks that every overload receiving both the current and the previous frame evaluates gravitation at the previous position (the position at the start of the time interval), so that it recovers the kinematics fed toECIInertialNavigator.(package private) voidChecks that kinematics fed toECIInertialNavigatoron a rotating body are recovered by the estimator from the navigated frame when gravitation is evaluated at the position at the start of the time interval.
-
Field Details
-
TIME_INTERVAL_SECONDS
private static final double TIME_INTERVAL_SECONDS- See Also:
-
LARGE_TIME_INTERVAL_SECONDS
private static final double LARGE_TIME_INTERVAL_SECONDSLarge time interval, expressed in seconds (s), used by a second pass of the estimation tests along withLARGE_MAX_ANGLE_VARIATION_DEGREESso that second order terms (attitude change during the time interval and gravitation change between old and new positions) are observable.- See Also:
-
LATITUDE_DEGREES
private static final double LATITUDE_DEGREES- See Also:
-
LONGITUDE_DEGREES
private static final double LONGITUDE_DEGREES- See Also:
-
HEIGHT
private static final double HEIGHT- See Also:
-
MIN_ANGLE_DEGREES
private static final double MIN_ANGLE_DEGREES- See Also:
-
MAX_ANGLE_DEGREES
private static final double MAX_ANGLE_DEGREES- See Also:
-
MIN_VELOCITY_VALUE
private static final double MIN_VELOCITY_VALUE- See Also:
-
MAX_VELOCITY_VALUE
private static final double MAX_VELOCITY_VALUE- See Also:
-
MAX_ANGLE_VARIATION_DEGREES
private static final double MAX_ANGLE_VARIATION_DEGREESMaximum absolute variation, expressed in degrees, of each Euler angle between old and new frames in the small pass of the estimation tests.- See Also:
-
LARGE_MAX_ANGLE_VARIATION_DEGREES
private static final double LARGE_MAX_ANGLE_VARIATION_DEGREESMaximum absolute variation, expressed in degrees, of each Euler angle between old and new frames in the large pass of the estimation tests.- See Also:
-
MIN_POSITION_VARIATION_DEGREES
private static final double MIN_POSITION_VARIATION_DEGREES- See Also:
-
MAX_POSITION_VARIATION_DEGREES
private static final double MAX_POSITION_VARIATION_DEGREES- See Also:
-
MIN_HEIGHT_VARIATION
private static final double MIN_HEIGHT_VARIATION- See Also:
-
MAX_HEIGHT_VARIATION
private static final double MAX_HEIGHT_VARIATION- See Also:
-
MIN_VELOCITY_VARIATION
private static final double MIN_VELOCITY_VARIATION- See Also:
-
MAX_VELOCITY_VARIATION
private static final double MAX_VELOCITY_VARIATION- See Also:
-
SCALING_THRESHOLD
private static final double SCALING_THRESHOLD- See Also:
-
ALPHA_THRESHOLD
private static final double ALPHA_THRESHOLD- See Also:
-
ABSOLUTE_ERROR
private static final double ABSOLUTE_ERRORMaximum allowed difference between the estimator and the in-test reference implementation (a direct transcription of Groves'Kinematics_ECI.musing matrix operations). Both perform the same arithmetic and only differ in the order of a few floating point operations, hence only rounding errors remain: ECI velocities are of the order of 1e2 m/s, so their rounding error (about 1e-14 m/s) divided by the shortest time interval (0.02 s) is of the order of 1e-12 m/s^2. This value passes for both passes (small and large) of theSEEDED_RUNSseeded runs of the estimation tests, which were observed to keep passing when this value is reduced down to 1e-13, so no larger value is needed.- See Also:
-
SEED
private static final long SEEDBase seed of the randomizers used by the estimation tests, so that they are deterministic.- See Also:
-
SEEDED_RUNS
private static final int SEEDED_RUNSNumber of seeded runs executed by the estimation tests. Runiuses seedSEED + i.- See Also:
-
LARGE_ABSOLUTE_ERROR
private static final double LARGE_ABSOLUTE_ERROR- See Also:
-
ROUND_TRIP_VN
private static final double ROUND_TRIP_VNNorth velocity, expressed in meters per second (m/s), of the fixed frame used by the round trip tests.- See Also:
-
ROUND_TRIP_VE
private static final double ROUND_TRIP_VEEast velocity, expressed in meters per second (m/s), of the fixed frame used by the round trip tests.- See Also:
-
ROUND_TRIP_VD
private static final double ROUND_TRIP_VDDown velocity, expressed in meters per second (m/s), of the fixed frame used by the round trip tests.- See Also:
-
ROUND_TRIP_ROLL_DEGREES
private static final double ROUND_TRIP_ROLL_DEGREESRoll angle, expressed in degrees, of the fixed frame used by the round trip tests.- See Also:
-
ROUND_TRIP_PITCH_DEGREES
private static final double ROUND_TRIP_PITCH_DEGREESPitch angle, expressed in degrees, of the fixed frame used by the round trip tests.- See Also:
-
ROUND_TRIP_YAW_DEGREES
private static final double ROUND_TRIP_YAW_DEGREESYaw angle, expressed in degrees, of the fixed frame used by the round trip tests.- See Also:
-
ROUND_TRIP_FX
private static final double ROUND_TRIP_FXX coordinate of specific force, expressed in meters per squared second (m/s^2), used by the round trip tests.- See Also:
-
ROUND_TRIP_FY
private static final double ROUND_TRIP_FYY coordinate of specific force, expressed in meters per squared second (m/s^2), used by the round trip tests.- See Also:
-
ROUND_TRIP_FZ
private static final double ROUND_TRIP_FZZ coordinate of specific force, expressed in meters per squared second (m/s^2), used by the round trip tests.- See Also:
-
ROUND_TRIP_ANGULAR_RATE_X
private static final double ROUND_TRIP_ANGULAR_RATE_XX coordinate of angular rate, expressed in radians per second (rad/s), used by the round trip tests.- See Also:
-
ROUND_TRIP_ANGULAR_RATE_Y
private static final double ROUND_TRIP_ANGULAR_RATE_YY coordinate of angular rate, expressed in radians per second (rad/s), used by the round trip tests.- See Also:
-
ROUND_TRIP_ANGULAR_RATE_Z
private static final double ROUND_TRIP_ANGULAR_RATE_ZZ coordinate of angular rate, expressed in radians per second (rad/s), used by the round trip tests.- See Also:
-
ROUND_TRIP_SHORT_TIME_INTERVAL_SECONDS
private static final double ROUND_TRIP_SHORT_TIME_INTERVAL_SECONDSShort time interval, expressed in seconds (s), used by the round trip tests.- See Also:
-
ROUND_TRIP_LONG_TIME_INTERVAL_SECONDS
private static final double ROUND_TRIP_LONG_TIME_INTERVAL_SECONDSLong time interval, expressed in seconds (s), used by the round trip tests. With the angular rate used by the round trip tests the body rotates more than one radian during this interval, so that second order attitude terms are clearly observable.- See Also:
-
ROUND_TRIP_ABSOLUTE_ERROR
private static final double ROUND_TRIP_ABSOLUTE_ERRORMaximum allowed difference between the kinematics fed toECIInertialNavigatorand the kinematics recovered byECIKinematicsEstimatorfrom the navigated frame. Estimator and navigator are exact inverses of each other when gravitation is evaluated at the position at the start of the time interval, hence only rounding errors remain: velocities are of the order of 1e2 m/s (they include Earth rotation), so that their rounding error (about 1e-14 m/s) divided by the shortest time interval (0.1 s) stays several orders of magnitude below this value (the round trip was observed to keep passing when this value is reduced down to 1e-12). Any deviation from the reference algorithm is orders of magnitude larger (1e-6 m/s^2 or more).- See Also:
-
MIN_POSITION_SPECIFIC_FORCE_DIFFERENCE
private static final double MIN_POSITION_SPECIFIC_FORCE_DIFFERENCEMinimum specific force difference, expressed in meters per squared second (m/s^2), that must exist between kinematics estimated with gravitation evaluated at the old position and at the new position for the long round trip time interval. In that interval the body moves several hundred meters with respect to the ECI frame (because of Earth rotation), and gravitation gradient is about 1.5e-6 s^-2, so the actual difference is of the order of 1e-4 m/s^2, well above this value and well aboveROUND_TRIP_ABSOLUTE_ERROR.- See Also:
-
-
Constructor Details
-
ECIKinematicsEstimatorTest
ECIKinematicsEstimatorTest()
-
-
Method Details
-
testEstimate
@Test void testEstimate() throws com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException, com.irurueta.geometry.InvalidRotationMatrixExceptionChecks that allECIKinematicsEstimator.estimate(double, com.irurueta.navigation.frames.CoordinateTransformation, com.irurueta.navigation.frames.CoordinateTransformation, double, double, double, double, double, double, double, double, double, com.irurueta.navigation.inertial.BodyKinematics)overloads are consistent: overloads receiving an explicit position or the previous frame evaluate gravitation at the provided or previous position, and overloads receiving only the current frame evaluate gravitation at the current position. Each seeded run executes a small pass (short time interval, small attitude variation) and a large pass (long time interval, large attitude variation).- Throws:
com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException- never happens.com.irurueta.geometry.InvalidRotationMatrixException- never happens.
-
testEstimateAndReturnNew
@Test void testEstimateAndReturnNew() throws com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException, com.irurueta.geometry.InvalidRotationMatrixExceptionChecks that allECIKinematicsEstimator.estimateAndReturnNew(double, com.irurueta.navigation.frames.CoordinateTransformation, com.irurueta.navigation.frames.CoordinateTransformation, double, double, double, double, double, double, double, double, double)overloads are consistent: overloads receiving an explicit position or the previous frame evaluate gravitation at the provided or previous position, and overloads receiving only the current frame evaluate gravitation at the current position. Each seeded run executes a small pass (short time interval, small attitude variation) and a large pass (long time interval, large attitude variation).- Throws:
com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException- never happens.com.irurueta.geometry.InvalidRotationMatrixException- never happens.
-
testEstimateKinematics
@Test void testEstimateKinematics() throws com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException, com.irurueta.geometry.InvalidRotationMatrixException, com.irurueta.algebra.WrongSizeException, com.irurueta.algebra.RankDeficientMatrixException, com.irurueta.algebra.DecomposerExceptionChecks that allECIKinematicsEstimator.estimateKinematics(double, com.irurueta.navigation.frames.CoordinateTransformation, com.irurueta.navigation.frames.CoordinateTransformation, double, double, double, double, double, double, double, double, double, com.irurueta.navigation.inertial.BodyKinematics)overloads are consistent: overloads receiving an explicit position or the previous frame evaluate gravitation at the provided or previous position, and overloads receiving only the current frame evaluate gravitation at the current position. Results are also compared against the in-test reference implementation. Each seeded run executes a small pass (short time interval, small attitude variation) and a large pass (long time interval, large attitude variation).- Throws:
com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException- never happens.com.irurueta.geometry.InvalidRotationMatrixException- never happens.com.irurueta.algebra.WrongSizeException- never happens.com.irurueta.algebra.RankDeficientMatrixException- never happens.com.irurueta.algebra.DecomposerException- never happens.
-
testEstimateKinematicsAndReturnNew
@Test void testEstimateKinematicsAndReturnNew() throws com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException, com.irurueta.geometry.InvalidRotationMatrixException, com.irurueta.algebra.WrongSizeException, com.irurueta.algebra.RankDeficientMatrixException, com.irurueta.algebra.DecomposerExceptionChecks that allECIKinematicsEstimator.estimateKinematicsAndReturnNew(double, com.irurueta.navigation.frames.CoordinateTransformation, com.irurueta.navigation.frames.CoordinateTransformation, double, double, double, double, double, double, double, double, double)overloads are consistent: overloads receiving an explicit position or the previous frame evaluate gravitation at the provided or previous position, and overloads receiving only the current frame evaluate gravitation at the current position. Results are also compared against the in-test reference implementation. Each seeded run executes a small pass (short time interval, small attitude variation) and a large pass (long time interval, large attitude variation).- Throws:
com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException- never happens.com.irurueta.geometry.InvalidRotationMatrixException- never happens.com.irurueta.algebra.WrongSizeException- never happens.com.irurueta.algebra.RankDeficientMatrixException- never happens.com.irurueta.algebra.DecomposerException- never happens.
-
testEstimateKinematicsWhenNegativeIntervalThrowsIllegalArgumentException
@Test void testEstimateKinematicsWhenNegativeIntervalThrowsIllegalArgumentException() throws com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException, com.irurueta.geometry.InvalidRotationMatrixException- Throws:
com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeExceptioncom.irurueta.geometry.InvalidRotationMatrixException
-
testEstimateKinematicsWhenInvalidCoordinateTransformationThrowsIllegalArgumentException
@Test void testEstimateKinematicsWhenInvalidCoordinateTransformationThrowsIllegalArgumentException() throws com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException, com.irurueta.geometry.InvalidRotationMatrixException- Throws:
com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeExceptioncom.irurueta.geometry.InvalidRotationMatrixException
-
testEstimateKinematicsWhenInvalidOldCoordinateTransformationThrowsIllegalArgumentException
@Test void testEstimateKinematicsWhenInvalidOldCoordinateTransformationThrowsIllegalArgumentException() throws com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException, com.irurueta.geometry.InvalidRotationMatrixException- Throws:
com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeExceptioncom.irurueta.geometry.InvalidRotationMatrixException
-
testEstimateKinematicsWhenZeroTimeIntervalReturnsZeroValues
@Test void testEstimateKinematicsWhenZeroTimeIntervalReturnsZeroValues() throws com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException, com.irurueta.geometry.InvalidRotationMatrixException, com.irurueta.algebra.WrongSizeException, com.irurueta.algebra.RankDeficientMatrixException, com.irurueta.algebra.DecomposerException- Throws:
com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeExceptioncom.irurueta.geometry.InvalidRotationMatrixExceptioncom.irurueta.algebra.WrongSizeExceptioncom.irurueta.algebra.RankDeficientMatrixExceptioncom.irurueta.algebra.DecomposerException
-
testCompareKinematics
@Test void testCompareKinematics() throws com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException, com.irurueta.geometry.InvalidRotationMatrixException- Throws:
com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeExceptioncom.irurueta.geometry.InvalidRotationMatrixException
-
testFrameOverloadsUseOldPosition
@Test void testFrameOverloadsUseOldPosition() throws com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException, com.irurueta.geometry.InvalidRotationMatrixException, InertialNavigatorExceptionChecks that every overload receiving both the current and the previous frame evaluates gravitation at the previous position (the position at the start of the time interval), so that it recovers the kinematics fed toECIInertialNavigator.- Throws:
com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException- never happens.com.irurueta.geometry.InvalidRotationMatrixException- never happens.InertialNavigatorException- never happens.
-
checkEstimate
private static void checkEstimate(com.irurueta.statistics.UniformRandomizer randomizer, double seconds, double maxAngleVariationDegrees) throws com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException, com.irurueta.geometry.InvalidRotationMatrixException Executes one pass oftestEstimate().- Parameters:
randomizer- seeded randomizer used to create old and new frames.seconds- time interval between old and new frames expressed in seconds (s).maxAngleVariationDegrees- maximum absolute variation, expressed in degrees, of each Euler angle between old and new frames.- Throws:
com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException- never happens.com.irurueta.geometry.InvalidRotationMatrixException- never happens.
-
checkEstimateAndReturnNew
private static void checkEstimateAndReturnNew(com.irurueta.statistics.UniformRandomizer randomizer, double seconds, double maxAngleVariationDegrees) throws com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException, com.irurueta.geometry.InvalidRotationMatrixException Executes one pass oftestEstimateAndReturnNew().- Parameters:
randomizer- seeded randomizer used to create old and new frames.seconds- time interval between old and new frames expressed in seconds (s).maxAngleVariationDegrees- maximum absolute variation, expressed in degrees, of each Euler angle between old and new frames.- Throws:
com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException- never happens.com.irurueta.geometry.InvalidRotationMatrixException- never happens.
-
checkEstimateKinematics
private static void checkEstimateKinematics(com.irurueta.statistics.UniformRandomizer randomizer, double seconds, double maxAngleVariationDegrees) throws com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException, com.irurueta.geometry.InvalidRotationMatrixException, com.irurueta.algebra.WrongSizeException, com.irurueta.algebra.RankDeficientMatrixException, com.irurueta.algebra.DecomposerException Executes one pass oftestEstimateKinematics().- Parameters:
randomizer- seeded randomizer used to create old and new frames.seconds- time interval between old and new frames expressed in seconds (s).maxAngleVariationDegrees- maximum absolute variation, expressed in degrees, of each Euler angle between old and new frames.- Throws:
com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException- never happens.com.irurueta.geometry.InvalidRotationMatrixException- never happens.com.irurueta.algebra.WrongSizeException- never happens.com.irurueta.algebra.RankDeficientMatrixException- never happens.com.irurueta.algebra.DecomposerException- never happens.
-
checkEstimateKinematicsAndReturnNew
private static void checkEstimateKinematicsAndReturnNew(com.irurueta.statistics.UniformRandomizer randomizer, double seconds, double maxAngleVariationDegrees) throws com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException, com.irurueta.geometry.InvalidRotationMatrixException, com.irurueta.algebra.WrongSizeException, com.irurueta.algebra.RankDeficientMatrixException, com.irurueta.algebra.DecomposerException Executes one pass oftestEstimateKinematicsAndReturnNew().- Parameters:
randomizer- seeded randomizer used to create old and new frames.seconds- time interval between old and new frames expressed in seconds (s).maxAngleVariationDegrees- maximum absolute variation, expressed in degrees, of each Euler angle between old and new frames.- Throws:
com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException- never happens.com.irurueta.geometry.InvalidRotationMatrixException- never happens.com.irurueta.algebra.WrongSizeException- never happens.com.irurueta.algebra.RankDeficientMatrixException- never happens.com.irurueta.algebra.DecomposerException- never happens.
-
createOldNedFrame
private static com.irurueta.navigation.frames.NEDFrame createOldNedFrame() throws com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException, com.irurueta.geometry.InvalidRotationMatrixException- Throws:
com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeExceptioncom.irurueta.geometry.InvalidRotationMatrixException
-
createOldNedFrame
private static com.irurueta.navigation.frames.NEDFrame createOldNedFrame(com.irurueta.statistics.UniformRandomizer randomizer) throws com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException, com.irurueta.geometry.InvalidRotationMatrixException Creates a NED frame at the start of the time interval having random velocity and attitude.- Parameters:
randomizer- randomizer used to generate velocity and attitude.- Returns:
- NED frame at the start of the time interval.
- Throws:
com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException- never happens.com.irurueta.geometry.InvalidRotationMatrixException- never happens.
-
createRoundTripOldEciFrame
private static com.irurueta.navigation.frames.ECIFrame createRoundTripOldEciFrame(double timeInterval) throws com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException, com.irurueta.geometry.InvalidRotationMatrixException Creates the fixed ECI frame at the start of the time interval used by the round trip tests.- Parameters:
timeInterval- time elapsed since ECI and ECEF frames were coincident, expressed in seconds (s).- Returns:
- ECI frame at the start of the time interval.
- Throws:
com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException- never happens.com.irurueta.geometry.InvalidRotationMatrixException- never happens.
-
createRoundTripKinematics
Creates the fixed body kinematics used by the round trip tests.- Returns:
- body kinematics containing a specific force and a non-negligible angular rate.
-