Class ECEFKinematicsEstimatorTest
java.lang.Object
com.irurueta.navigation.inertial.estimators.ECEFKinematicsEstimatorTest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final doubleMaximum allowed difference between the estimator and the in-test reference implementation ofKinematics_ECEF.m.private static final doubleprivate static final doubleMaximum allowed difference in angular rate, expressed in radians per second, between the ECEF, ECI and NED kinematics estimators.private static final doubleMaximum allowed difference in specific force, expressed in meters per squared second, between the ECEF, ECI and NED kinematics estimators.private static final doubleprivate static final doubleMaximum absolute attitude variation per Euler angle, expressed in degrees, of the second pass of the randomised tests.private static final doubleprivate static final doubleTime interval, expressed in seconds, of the second pass of the randomised tests.private static final doubleprivate static final doubleprivate static final doubleprivate static final doubleprivate static final doubleprivate static final doubleprivate static final doubleprivate static final doubleFactor used to average the velocities at the start and the end of a time interval.private static final doubleprivate static final doubleprivate static final doubleMinimum difference in specific force, expressed in meters per squared second, that must be observed when gravity is evaluated at the end instead of at the start of the round trip long time interval.private static final doubleprivate static final doubleprivate static final doubleprivate static final doubleX coordinate of the round trip angular rate, expressed in radians per second.private static final doubleY coordinate of the round trip angular rate, expressed in radians per second.private static final doubleZ coordinate of the round trip angular rate, expressed in radians per second.private static final doubleMaximum allowed difference between the kinematics fed toECEFInertialNavigatorand the kinematics recovered byECEFKinematicsEstimatorfrom the navigated frame.private static final doubleX coordinate of the round trip specific force, expressed in meters per squared second.private static final doubleY coordinate of the round trip specific force, expressed in meters per squared second.private static final doubleZ coordinate of the round trip specific force, expressed in meters per squared second.private static final doubleLongest time interval, expressed in seconds, used by the navigator round trip tests.private static final doublePitch angle of the round trip body at the start of the interval, expressed in degrees.private static final doubleRoll angle of the round trip body at the start of the interval, expressed in degrees.private static final double[]Time intervals, expressed in seconds, used by the navigator round trip tests.private static final doubleDown velocity of the round trip body at the start of the interval, expressed in meters per second.private static final doubleEast velocity of the round trip body at the start of the interval, expressed in meters per second.private static final doubleNorth velocity of the round trip body at the start of the interval, expressed in meters per second.private static final doubleYaw angle of the round trip body at the start of the interval, expressed in degrees.private static final doubleprivate static final longSeed of the randomizers used by the tests, fixed so that tests are deterministic.private static final doubleprivate static final intNumber of randomly generated pairs of frames checked on each pass of the randomised tests. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static doubleComputes the Euclidean distance between the angular rates of two body kinematics.private static voidcheckEstimate(com.irurueta.statistics.UniformRandomizer randomizer, double timeIntervalSeconds, double maxAngleVariationDegrees) Checks that all instanceestimateoverloads are consistent with each other for a randomly generated pair of frames.private static voidcheckEstimateAndReturnNew(com.irurueta.statistics.UniformRandomizer randomizer, double timeIntervalSeconds, double maxAngleVariationDegrees) Checks that all instanceestimateAndReturnNewoverloads are consistent with each other for a randomly generated pair of frames.private static voidcheckEstimateKinematics(com.irurueta.statistics.UniformRandomizer randomizer, double timeIntervalSeconds, double maxAngleVariationDegrees) Checks that all staticestimateKinematicsoverloads are consistent with each other and with the in-test reference implementation for a randomly generated pair of frames.private static voidcheckEstimateKinematicsAndReturnNew(com.irurueta.statistics.UniformRandomizer randomizer, double timeIntervalSeconds, double maxAngleVariationDegrees) Checks that all staticestimateKinematicsAndReturnNewoverloads are consistent with each other and with the in-test reference implementation for a randomly generated pair of frames.private static com.irurueta.navigation.frames.NEDFramecreateNewNedFrame(com.irurueta.navigation.frames.NEDFrame oldFrame, com.irurueta.statistics.UniformRandomizer randomizer, double maxAngleVariationDegrees) Creates a random NED frame at the end of the time interval by randomly modifying the frame at the start.private static com.irurueta.navigation.frames.NEDFramecreateOldNedFrame(com.irurueta.statistics.UniformRandomizer randomizer) Creates a random NED frame at the start of the time interval.private static com.irurueta.statistics.UniformRandomizerCreates a randomizer with a fixed seed so that tests are deterministic.private static BodyKinematicsCreates the body kinematics used by the navigator round trip tests.private static com.irurueta.navigation.frames.ECEFFrameCreates the ECEF frame at the start of the interval used by the navigator round trip tests.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 Euclidean distance between the specific forces of two body kinematics.(package private) voidChecks that the ECEF, ECI and NED kinematics estimators agree for kinematically consistent pairs of frames (the position at the end of the time interval is the position at the start plus the mean velocity times the time interval, and ECI frames are obtained at the epochs of the start and the end of the time interval).(package private) voidChecks that all instanceestimateoverloads are consistent with each other, both for a short time interval with small attitude changes and for a long time interval with large attitude changes.(package private) voidChecks that all instanceestimateAndReturnNewoverloads are consistent with each other, both for a short time interval with small attitude changes and for a long time interval with large attitude changes.(package private) voidChecks that all staticestimateKinematicsoverloads are consistent with each other and with the in-test reference implementation, both for a short time interval with small attitude changes and for a long time interval with large attitude changes.(package private) voidChecks that all staticestimateKinematicsAndReturnNewoverloads are consistent with each other and with the in-test reference implementation, both for a short time interval with small attitude changes and for a long time interval with large attitude changes.(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 gravity at the position of the previous frame (start of the time interval), so that it recovers the kinematics fed toECEFInertialNavigator.(package private) voidChecks that the kinematics fed toECEFInertialNavigatorare recovered by the estimator from the navigated frame when the body rotates and gravity is evaluated at the position at the start of the interval.
-
Field Details
-
TIME_INTERVAL_SECONDS
private static final double TIME_INTERVAL_SECONDS- 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_DEGREES- See Also:
-
LONG_TIME_INTERVAL_SECONDS
private static final double LONG_TIME_INTERVAL_SECONDSTime interval, expressed in seconds, of the second pass of the randomised tests. It is long enough for second-order terms (Earth rotation during the interval, eq. (5.85)) to be observable.- See Also:
-
LARGE_MAX_ANGLE_VARIATION_DEGREES
private static final double LARGE_MAX_ANGLE_VARIATION_DEGREESMaximum absolute attitude variation per Euler angle, expressed in degrees, of the second pass of the randomised tests. It is large enough for second-order attitude terms to be observable.- See Also:
-
SEED
private static final long SEEDSeed of the randomizers used by the tests, fixed so that tests are deterministic.- See Also:
-
TIMES
private static final int TIMESNumber of randomly generated pairs of frames checked on each pass of the randomised 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 ofKinematics_ECEF.m. Both perform the same arithmetic in a different order of operations, so they only differ by floating point rounding: the largest difference observed over 2000 seeded pairs of frames per pass is 2.0e-14 (time interval of 0.02 s) and 7.6e-15 (time interval of 1 s). 1e-9 leaves margin for rounding while being three orders of magnitude below the smallest algorithmic error fixed in the estimator (7.8e-7 m/s^2).- See Also:
-
COMPARE_SPECIFIC_FORCE_ERROR
private static final double COMPARE_SPECIFIC_FORCE_ERRORMaximum allowed difference in specific force, expressed in meters per squared second, between the ECEF, ECI and NED kinematics estimators. It is the smallest power of ten satisfied by the three algorithms over the seeded, kinematically consistent pairs of frames of the comparison test, where the largest observed differences are 9.9e-4 (ECEF vs. NED), 1.0e-3 (ECI vs. NED) and 2.9e-5 (ECI vs. ECEF).- See Also:
-
COMPARE_ANGULAR_RATE_ERROR
private static final double COMPARE_ANGULAR_RATE_ERRORMaximum allowed difference in angular rate, expressed in radians per second, between the ECEF, ECI and NED kinematics estimators. It is the smallest power of ten satisfied by the three algorithms over the seeded, kinematically consistent pairs of frames of the comparison test, where the largest observed difference is 1.5e-9 (both ECEF vs. NED and ECI vs. NED).- See Also:
-
MEAN_FACTOR
private static final double MEAN_FACTORFactor used to average the velocities at the start and the end of a time interval.- See Also:
-
ROUND_TRIP_TIME_INTERVALS
private static final double[] ROUND_TRIP_TIME_INTERVALSTime intervals, expressed in seconds, used by the navigator round trip tests. -
ROUND_TRIP_LONG_TIME_INTERVAL
private static final double ROUND_TRIP_LONG_TIME_INTERVALLongest time interval, expressed in seconds, used by the navigator round trip tests. With the round trip velocity, the positions at the start and at the end of this interval are about 36 meters apart.- See Also:
-
ROUND_TRIP_VN
private static final double ROUND_TRIP_VNNorth velocity of the round trip body at the start of the interval, expressed in meters per second.- See Also:
-
ROUND_TRIP_VE
private static final double ROUND_TRIP_VEEast velocity of the round trip body at the start of the interval, expressed in meters per second.- See Also:
-
ROUND_TRIP_VD
private static final double ROUND_TRIP_VDDown velocity of the round trip body at the start of the interval, expressed in meters per second.- See Also:
-
ROUND_TRIP_ROLL_DEGREES
private static final double ROUND_TRIP_ROLL_DEGREESRoll angle of the round trip body at the start of the interval, expressed in degrees.- See Also:
-
ROUND_TRIP_PITCH_DEGREES
private static final double ROUND_TRIP_PITCH_DEGREESPitch angle of the round trip body at the start of the interval, expressed in degrees.- See Also:
-
ROUND_TRIP_YAW_DEGREES
private static final double ROUND_TRIP_YAW_DEGREESYaw angle of the round trip body at the start of the interval, expressed in degrees.- See Also:
-
ROUND_TRIP_FX
private static final double ROUND_TRIP_FXX coordinate of the round trip specific force, expressed in meters per squared second.- See Also:
-
ROUND_TRIP_FY
private static final double ROUND_TRIP_FYY coordinate of the round trip specific force, expressed in meters per squared second.- See Also:
-
ROUND_TRIP_FZ
private static final double ROUND_TRIP_FZZ coordinate of the round trip specific force, expressed in meters per squared second.- See Also:
-
ROUND_TRIP_ANGULAR_RATE_X
private static final double ROUND_TRIP_ANGULAR_RATE_XX coordinate of the round trip angular rate, expressed in radians per second.- See Also:
-
ROUND_TRIP_ANGULAR_RATE_Y
private static final double ROUND_TRIP_ANGULAR_RATE_YY coordinate of the round trip angular rate, expressed in radians per second.- See Also:
-
ROUND_TRIP_ANGULAR_RATE_Z
private static final double ROUND_TRIP_ANGULAR_RATE_ZZ coordinate of the round trip angular rate, expressed in radians per second.- See Also:
-
ROUND_TRIP_ERROR
private static final double ROUND_TRIP_ERRORMaximum allowed difference between the kinematics fed toECEFInertialNavigatorand the kinematics recovered byECEFKinematicsEstimatorfrom the navigated frame. Navigator and estimator implement exactly inverse equations (Groves eq. (5.73)-(5.85) and (5.36)), so the only expected difference is floating point rounding: a rounding of about 1e-16 relative in velocities of about 4e2 m/s divided by a time interval of 0.1 s gives about 1e-12 m/s^2, hence 1e-9 leaves three orders of magnitude of margin while remaining far below the smallest algorithmic error this test must detect (7.8e-7 m/s^2).- See Also:
-
MIN_POSITION_SENSITIVITY
private static final double MIN_POSITION_SENSITIVITYMinimum difference in specific force, expressed in meters per squared second, that must be observed when gravity is evaluated at the end instead of at the start of the round trip long time interval. Positions are about 36 m apart and the gravity gradient is about 3e-6 s^-2 vertically and 1.5e-6 s^-2 horizontally, which yields a difference of about 1e-4 m/s^2; 1e-6 is two orders of magnitude below that and three orders of magnitude aboveROUND_TRIP_ERROR.- See Also:
-
-
Constructor Details
-
ECEFKinematicsEstimatorTest
ECEFKinematicsEstimatorTest()
-
-
Method Details
-
testEstimate
@Test void testEstimate() throws com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException, com.irurueta.geometry.InvalidRotationMatrixExceptionChecks that all instanceestimateoverloads are consistent with each other, both for a short time interval with small attitude changes and for a long time interval with large attitude changes.- 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 all instanceestimateAndReturnNewoverloads are consistent with each other, both for a short time interval with small attitude changes and for a long time interval with large attitude changes.- 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 all staticestimateKinematicsoverloads are consistent with each other and with the in-test reference implementation, both for a short time interval with small attitude changes and for a long time interval with large attitude changes.- 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 all staticestimateKinematicsAndReturnNewoverloads are consistent with each other and with the in-test reference implementation, both for a short time interval with small attitude changes and for a long time interval with large attitude changes.- 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.InvalidRotationMatrixExceptionChecks that the ECEF, ECI and NED kinematics estimators agree for kinematically consistent pairs of frames (the position at the end of the time interval is the position at the start plus the mean velocity times the time interval, and ECI frames are obtained at the epochs of the start and the end of the time interval).- Throws:
com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException- never happens.com.irurueta.geometry.InvalidRotationMatrixException- never happens.
-
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 gravity at the position of the previous frame (start of the time interval), so that it recovers the kinematics fed toECEFInertialNavigator.- 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 timeIntervalSeconds, double maxAngleVariationDegrees) throws com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException, com.irurueta.geometry.InvalidRotationMatrixException Checks that all instanceestimateoverloads are consistent with each other for a randomly generated pair of frames.- Parameters:
randomizer- randomizer used to generate the frames.timeIntervalSeconds- time interval between frames expressed in seconds.maxAngleVariationDegrees- maximum absolute attitude variation per Euler angle between frames, expressed in degrees.- 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 timeIntervalSeconds, double maxAngleVariationDegrees) throws com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException, com.irurueta.geometry.InvalidRotationMatrixException Checks that all instanceestimateAndReturnNewoverloads are consistent with each other for a randomly generated pair of frames.- Parameters:
randomizer- randomizer used to generate the frames.timeIntervalSeconds- time interval between frames expressed in seconds.maxAngleVariationDegrees- maximum absolute attitude variation per Euler angle between frames, expressed in degrees.- 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 timeIntervalSeconds, double maxAngleVariationDegrees) throws com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException, com.irurueta.geometry.InvalidRotationMatrixException, com.irurueta.algebra.WrongSizeException, com.irurueta.algebra.RankDeficientMatrixException, com.irurueta.algebra.DecomposerException Checks that all staticestimateKinematicsoverloads are consistent with each other and with the in-test reference implementation for a randomly generated pair of frames.- Parameters:
randomizer- randomizer used to generate the frames.timeIntervalSeconds- time interval between frames expressed in seconds.maxAngleVariationDegrees- maximum absolute attitude variation per Euler angle between frames, expressed in degrees.- 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 timeIntervalSeconds, double maxAngleVariationDegrees) throws com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException, com.irurueta.geometry.InvalidRotationMatrixException, com.irurueta.algebra.WrongSizeException, com.irurueta.algebra.RankDeficientMatrixException, com.irurueta.algebra.DecomposerException Checks that all staticestimateKinematicsAndReturnNewoverloads are consistent with each other and with the in-test reference implementation for a randomly generated pair of frames.- Parameters:
randomizer- randomizer used to generate the frames.timeIntervalSeconds- time interval between frames expressed in seconds.maxAngleVariationDegrees- maximum absolute attitude variation per Euler angle between frames, expressed in degrees.- 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.
-
createRandomizer
private static com.irurueta.statistics.UniformRandomizer createRandomizer()Creates a randomizer with a fixed seed so that tests are deterministic.- Returns:
- a seeded randomizer.
-
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 random NED frame at the start of the time interval.- Parameters:
randomizer- randomizer used to generate the frame.- Returns:
- NED frame at the start of the time interval.
- Throws:
com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException- never happens.com.irurueta.geometry.InvalidRotationMatrixException- never happens.
-
createRoundTripOldFrame
private static com.irurueta.navigation.frames.ECEFFrame createRoundTripOldFrame() throws com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException, com.irurueta.geometry.InvalidRotationMatrixExceptionCreates the ECEF frame at the start of the interval used by the navigator round trip tests.- Returns:
- ECEF frame at the start of the interval.
- Throws:
com.irurueta.navigation.frames.InvalidSourceAndDestinationFrameTypeException- never happens.com.irurueta.geometry.InvalidRotationMatrixException- never happens.
-
createRoundTripKinematics
Creates the body kinematics used by the navigator round trip tests.- Returns:
- body kinematics applied during the interval.
-