Class RobustKnownBiasEasyGyroscopeCalibrator
java.lang.Object
com.irurueta.navigation.inertial.calibration.gyroscope.RobustKnownBiasEasyGyroscopeCalibrator
- All Implemented Interfaces:
AccelerometerDependentGyroscopeCalibrator,GyroscopeCalibrator,GyroscopeNonLinearCalibrator,KnownBiasGyroscopeCalibrator,OrderedBodyKinematicsSequenceGyroscopeCalibrator,QualityScoredGyroscopeCalibrator
- Direct Known Subclasses:
LMedSRobustKnownBiasEasyGyroscopeCalibrator,MSACRobustKnownBiasEasyGyroscopeCalibrator,PROMedSRobustKnownBiasEasyGyroscopeCalibrator,PROSACRobustKnownBiasEasyGyroscopeCalibrator,RANSACRobustKnownBiasEasyGyroscopeCalibrator
public abstract class RobustKnownBiasEasyGyroscopeCalibrator
extends Object
implements GyroscopeNonLinearCalibrator, KnownBiasGyroscopeCalibrator, OrderedBodyKinematicsSequenceGyroscopeCalibrator, QualityScoredGyroscopeCalibrator, AccelerometerDependentGyroscopeCalibrator
This is an abstract class to robustly estimate gyroscope
cross couplings and scaling factors
along with G-dependent cross biases introduced on the gyroscope by the
specific forces sensed by the accelerometer.
This calibrator assumes that the IMU is at a more or less fixed location on Earth, and evaluates sequences of measured body kinematics to perform calibration for unknown orientations on those provided sequences. Each provided sequence will be preceded by a static period where mean specific force will be measured to determine gravity (and hence partial body attitude).
Measured gyroscope angular rates is assumed to follow the model shown below:
Ωmeas = bg + (I + Mg) * Ωtrue + Gg * ftrue + w
Where:
- Ωmeas is the measured gyroscope angular rates. This is a 3x1 vector.
- bg is the gyroscope bias. Ideally, on a perfect gyroscope, this should be a
3x1 zero vector.
- I is the 3x3 identity matrix.
- Mg is the 3x3 matrix containing cross-couplings and scaling factors. Ideally, on
a perfect gyroscope, this should be a 3x3 zero matrix.
- Ωtrue is ground-truth gyroscope angular rates.
- Gg is the G-dependent cross biases introduced by the specific forces sensed
by the accelerometer. Ideally, on a perfect gyroscope, this should be a 3x3
zero matrix.
- ftrue is ground-truth specific force. This is a 3x1 vector.
- w is measurement noise. This is a 3x1 vector.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classInternal class containing estimated preliminary result. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AccelerationFixerAn acceleration fixer.private doubleKnown x-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.private doubleKnown y-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.private doubleKnown z-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.private doubleKnown accelerometer x-y cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.private doubleKnow accelerometer x-z cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.private doubleKnown accelerometer y-x cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.private doubleKnown accelerometer y-z cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.private doubleKnown accelerometer z-x cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.private doubleKnown accelerometer z-y cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.private doubleKnown accelerometer x scaling factor to be used to fix measured specific force and find cross biases introduced by the accelerometer.private doubleKnown accelerometer y scaling factor to be used to fix measured specific force and find cross biases introduced by the accelerometer.private doubleKnown accelerometer z scaling factor to be used to fix measured specific force and find cross biases introduced by the accelerometer.private final AngularRateFixerAn angular rate fixer.private doubleX-coordinate of gyroscope known bias expressed in radians per second (rad/s).private doubleY-coordinate of gyroscope known bias expressed in radians per second (rad/s).private doubleZ-coordinate of gyroscope known bias expressed in radians per second (rad/s).private booleanThis flag indicates whether z-axis is assumed to be common for accelerometer and gyroscope.protected doubleAmount of confidence expressed as a value between 0.0 and 1.0 (which is equivalent to 100%).static final doubleConstant defining default confidence of the estimated result, which is 99%.static final booleanIndicates that by default G-dependent cross biases introduced by the accelerometer on the gyroscope are estimated.static final booleanIndicates that covariance is kept by default after refining result.static final intDefault maximum allowed number of iterations.static final floatDefault amount of progress variation before notifying a change in estimation progress.static final booleanIndicates that result is refined by default using a non-linear calibrator (which uses a Levenberg-Marquardt fitter).static final com.irurueta.numerical.robust.RobustEstimatorMethodDefault robust estimator method when none is provided.static final booleanIndicates whether by default a common z-axis is assumed for both the accelerometer and gyroscope.private final com.irurueta.geometry.InhomogeneousPoint3DContains estimated normalized end gravity coordinates.private doubleEstimated chi square value.private intEstimated degrees of freedom of chi square value.private com.irurueta.algebra.MatrixEstimated covariance matrix for estimated parameters.private com.irurueta.algebra.MatrixEstimated G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer.private com.irurueta.algebra.MatrixEstimated gyroscope scale factors and cross coupling errors.private doubleEstimated mean square error respect to provided measurements.private doubleEstimated probability of finding a smaller chi square value expressed as a value between 0.0 and 1.0.private doubleEstimated measure of quality of estimated fit as a value between 0.0 and 1.0.private doubleEstimated reduced chi square value.private booleanThis flag indicates whether G-dependent cross biases are being estimated or not.private final com.irurueta.geometry.InhomogeneousPoint3DContains expected normalized end gravity coordinates.private final double[]Array containing fixed angular rate coordinates.private final double[]Array containing fixed specific force coordinates.private com.irurueta.algebra.MatrixInitial G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer.private doubleInitial gyroscope x-y cross coupling error.private doubleInitial gyroscope x-z cross coupling error.private doubleInitial gyroscope y-x cross coupling error.private doubleInitial gyroscope y-z cross coupling error.private doubleInitial gyroscope z-x cross coupling error.private doubleInitial gyroscope z-y cross coupling error.private doubleInitial gyroscope x scaling factor.private doubleInitial gyroscope y scaling factor.private doubleInitial gyroscope z scaling factor.protected com.irurueta.numerical.robust.InliersDataData related to inliers found after calibration.private final KnownBiasEasyGyroscopeCalibratorInner non-robust calibrator.private booleanIndicates whether covariance must be kept after refining result.Listener to be notified of events such as when calibration starts, ends or its progress significantly changes.static final doubleMaximum allowed confidence value.static final floatMaximum allowed value for progress delta.protected intMaximum allowed number of iterations.private final double[]Array containing measured angular rate coordinates.private final double[]Array containing measured specific force coordinates.static final doubleMinimum allowed confidence value.static final intMinimum allowed number of iterations.static final floatMinimum allowed value for progress delta.protected intSize of subsets to be checked during robust estimation.protected floatAmount of progress variation before notifying a progress change during calibration.private final com.irurueta.geometry.QuaternionContains amount of rotation for a given sequence and preliminary solution.protected booleanIndicates whether result must be refined using a non linear calibrator over found inliers.protected booleanIndicates whether calibrator is running.Contains a collection of sequences of timestamped body kinematics measurements taken at a given position where the device moves freely with different orientations.private final com.irurueta.geometry.InhomogeneousPoint3DContains normalized start gravity coordinates. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor.protectedRobustKnownBiasEasyGyroscopeCalibrator(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, double[] bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg) Constructor.protectedRobustKnownBiasEasyGyroscopeCalibrator(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, double[] bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, double[] accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa) Constructor.protectedRobustKnownBiasEasyGyroscopeCalibrator(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, double[] bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, double[] accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, RobustKnownBiasEasyGyroscopeCalibratorListener listener) Constructor.protectedRobustKnownBiasEasyGyroscopeCalibrator(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, double[] bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, RobustKnownBiasEasyGyroscopeCalibratorListener listener) Constructor.protectedRobustKnownBiasEasyGyroscopeCalibrator(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg) Constructor.protectedRobustKnownBiasEasyGyroscopeCalibrator(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.algebra.Matrix accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa) Constructor.protectedRobustKnownBiasEasyGyroscopeCalibrator(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.algebra.Matrix accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, RobustKnownBiasEasyGyroscopeCalibratorListener listener) Constructor.protectedRobustKnownBiasEasyGyroscopeCalibrator(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, RobustKnownBiasEasyGyroscopeCalibratorListener listener) Constructor.protectedRobustKnownBiasEasyGyroscopeCalibrator(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, double[] bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg) Constructor.protectedRobustKnownBiasEasyGyroscopeCalibrator(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, double[] bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, double[] accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa) Constructor.protectedRobustKnownBiasEasyGyroscopeCalibrator(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, double[] bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, double[] accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, RobustKnownBiasEasyGyroscopeCalibratorListener listener) Constructor.protectedRobustKnownBiasEasyGyroscopeCalibrator(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, double[] bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, RobustKnownBiasEasyGyroscopeCalibratorListener listener) Constructor.protectedRobustKnownBiasEasyGyroscopeCalibrator(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg) Constructor.protectedRobustKnownBiasEasyGyroscopeCalibrator(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.algebra.Matrix accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa) Constructor.protectedRobustKnownBiasEasyGyroscopeCalibrator(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.algebra.Matrix accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, RobustKnownBiasEasyGyroscopeCalibratorListener listener) Constructor.protectedRobustKnownBiasEasyGyroscopeCalibrator(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, RobustKnownBiasEasyGyroscopeCalibratorListener listener) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidattemptRefine(RobustKnownBiasEasyGyroscopeCalibrator.PreliminaryResult preliminaryResult) Attempts to refine calibration parameters if refinement is requested.protected doublecomputeError(BodyKinematicsSequence<StandardDeviationTimedBodyKinematics> sequence, RobustKnownBiasEasyGyroscopeCalibrator.PreliminaryResult preliminaryResult) Computes error of a preliminary result respect a given sequence.protected voidcomputePreliminarySolutions(int[] samplesIndices, List<RobustKnownBiasEasyGyroscopeCalibrator.PreliminaryResult> solutions) Computes a preliminary solution for a subset of samples picked by a robust estimator.private static doubleconvertAcceleration(com.irurueta.units.Acceleration acceleration) Converts acceleration instance to meters per squared second.private static doubleconvertAngularSpeed(double value, com.irurueta.units.AngularSpeedUnit unit) Converts angular speed instance to radians per second (rad/s).private static doubleconvertAngularSpeed(com.irurueta.units.AngularSpeed angularSpeed) Converts angular speed instance to radians per second (rad/s).create()Creates a robust gyroscope calibrator using default robust method.create(double[] qualityScores, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(double[] qualityScores, List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, double[] accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, RobustKnownBiasEasyGyroscopeCalibratorListener listener, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(double[] qualityScores, List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, double[] accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(double[] qualityScores, List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, RobustKnownBiasEasyGyroscopeCalibratorListener listener, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(double[] qualityScores, List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(double[] qualityScores, List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.algebra.Matrix accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, RobustKnownBiasEasyGyroscopeCalibratorListener listener, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(double[] qualityScores, List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.algebra.Matrix accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(double[] qualityScores, List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, RobustKnownBiasEasyGyroscopeCalibratorListener listener, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(double[] qualityScores, List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(double[] qualityScores, List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, double[] accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, RobustKnownBiasEasyGyroscopeCalibratorListener listener, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(double[] qualityScores, List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, double[] accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(double[] qualityScores, List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, RobustKnownBiasEasyGyroscopeCalibratorListener listener, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(double[] qualityScores, List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(double[] qualityScores, List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.algebra.Matrix accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, RobustKnownBiasEasyGyroscopeCalibratorListener listener, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(double[] qualityScores, List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.algebra.Matrix accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(double[] qualityScores, List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, RobustKnownBiasEasyGyroscopeCalibratorListener listener, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(double[] qualityScores, List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg) Creates a robust gyroscope calibrator using default robust method.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, double[] accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa) Creates a robust gyroscope calibrator using default robust method.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, double[] accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, RobustKnownBiasEasyGyroscopeCalibratorListener listener) Creates a robust gyroscope calibrator using default robust method.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, double[] accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, RobustKnownBiasEasyGyroscopeCalibratorListener listener, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, double[] accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, RobustKnownBiasEasyGyroscopeCalibratorListener listener) Creates a robust gyroscope calibrator using default robust method.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, RobustKnownBiasEasyGyroscopeCalibratorListener listener, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg) Creates a robust gyroscope calibrator using default robust method.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.algebra.Matrix accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa) Creates a robust gyroscope calibrator using default robust method.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.algebra.Matrix accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, RobustKnownBiasEasyGyroscopeCalibratorListener listener) Creates a robust gyroscope calibrator using default robust method.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.algebra.Matrix accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, RobustKnownBiasEasyGyroscopeCalibratorListener listener, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.algebra.Matrix accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, RobustKnownBiasEasyGyroscopeCalibratorListener listener) Creates a robust gyroscope calibrator using default robust method.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, RobustKnownBiasEasyGyroscopeCalibratorListener listener, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg) Creates a robust gyroscope calibrator using default robust method.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, double[] accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa) Creates a robust gyroscope calibrator using default robust method.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, double[] accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, RobustKnownBiasEasyGyroscopeCalibratorListener listener) Creates a robust gyroscope calibrator using default robust method.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, double[] accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, RobustKnownBiasEasyGyroscopeCalibratorListener listener, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, double[] accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, RobustKnownBiasEasyGyroscopeCalibratorListener listener) Creates a robust gyroscope calibrator using default robust method.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, RobustKnownBiasEasyGyroscopeCalibratorListener listener, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg) Creates a robust gyroscope calibrator using default robust method.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.algebra.Matrix accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa) Creates a robust gyroscope calibrator using default robust method.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.algebra.Matrix accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, RobustKnownBiasEasyGyroscopeCalibratorListener listener) Creates a robust gyroscope calibrator using default robust method.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.algebra.Matrix accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, RobustKnownBiasEasyGyroscopeCalibratorListener listener, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.algebra.Matrix accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, RobustKnownBiasEasyGyroscopeCalibratorListener listener) Creates a robust gyroscope calibrator using default robust method.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, RobustKnownBiasEasyGyroscopeCalibratorListener listener, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.private voidfixKinematics(BodyKinematics measuredKinematics, BodyKinematics result) Fixes a measured kinematics instance using currentdouble[]Gets known accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.voidgetAccelerometerBias(double[] result) Gets known accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.com.irurueta.algebra.MatrixGets known accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.voidgetAccelerometerBiasAsMatrix(com.irurueta.algebra.Matrix result) Gets known accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.doubleGets known x-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.com.irurueta.units.AccelerationGets known x-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.voidgetAccelerometerBiasXAsAcceleration(com.irurueta.units.Acceleration result) Gets known x-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.doubleGets known y-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.com.irurueta.units.AccelerationGets known y-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.voidgetAccelerometerBiasYAsAcceleration(com.irurueta.units.Acceleration result) Gets known y-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.doubleGets known z-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.com.irurueta.units.AccelerationGets known z-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.voidgetAccelerometerBiasZAsAcceleration(com.irurueta.units.Acceleration result) Gets known z-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.com.irurueta.algebra.MatrixGets known accelerometer scale factors and cross coupling errors matrix.voidgetAccelerometerMa(com.irurueta.algebra.Matrix result) Gets known accelerometer scale factors and cross coupling errors matrix.doubleGets known accelerometer x-y cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.doubleGets known accelerometer x-z cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.doubleGets known accelerometer y-x cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.doubleGets known accelerometer y-z cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.doubleGets known accelerometer z-x cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.doubleGets known accelerometer z-y cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.doubleGets known accelerometer x scaling factor to be used to fix measured specific force and find cross biases introduced by the accelerometer.doubleGets known accelerometer y scaling factor to be used to fix measured specific force and find cross biases introduced by the accelerometer.doubleGets known accelerometer z scaling factor to be used to fix measured specific force and find cross biases introduced by the accelerometer.double[]getBias()Gets gyroscope known bias as an array.voidgetBias(double[] result) Gets gyroscope known bias as an array.com.irurueta.units.AngularSpeedGets x-coordinate of gyroscope known bias.voidgetBiasAngularSpeedX(com.irurueta.units.AngularSpeed result) Gets x-coordinate of gyroscope known bias.com.irurueta.units.AngularSpeedGets y-coordinate of gyroscope known bias.voidgetBiasAngularSpeedY(com.irurueta.units.AngularSpeed result) Gets y-coordinate of gyroscope known bias.com.irurueta.units.AngularSpeedGets z-coordinate of gyroscope known bias.voidgetBiasAngularSpeedZ(com.irurueta.units.AngularSpeed result) Gets z-coordinate of gyroscope known bias.com.irurueta.algebra.MatrixGets gyroscope known bias as a column matrix.voidgetBiasAsMatrix(com.irurueta.algebra.Matrix result) Gets gyroscope known bias as a column matrix.Gets known gyroscope bias.voidgetBiasAsTriad(AngularSpeedTriad result) Gets known gyroscope bias.doublegetBiasX()Gets x-coordinate of gyroscope known bias.doublegetBiasY()Gets y-coordinate of gyroscope known bias.doublegetBiasZ()Gets z-coordinate of gyroscope known bias.doubleReturns amount of confidence expressed as a value between 0.0 and 1.0 (which is equivalent to 100%).doubleGets estimated chi square value.intGets estimated chi square degrees of freedom.com.irurueta.algebra.MatrixGets estimated covariance matrix for estimated parameters.com.irurueta.algebra.MatrixGets estimated G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer.com.irurueta.algebra.MatrixGets estimated gyroscope scale factors and cross coupling errors.doubleGets estimated mean square error respect to provided measurements.Gets estimated gyroscope x-y cross-coupling error.Gets estimated gyroscope x-z cross-coupling error.Gets estimated gyroscope y-x cross-coupling error.Gets estimated gyroscope y-z cross-coupling error.Gets estimated gyroscope z-x cross-coupling error.Gets estimated gyroscope z-y cross-coupling error.doubleGets estimated probability of finding a smaller chi square value expressed as a value between 0.0 and 1.0.doubleGets estimated measure of quality of estimated fit as a value between 0.0 and 1.0.doubleGets estimated reduced chi square value.Gets estimated gyroscope x-axis scale factor.Gets estimated gyroscope y-axis scale factor.Gets estimated gyroscope z-axis scale factor.com.irurueta.algebra.MatrixGets initial G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer.voidgetInitialGg(com.irurueta.algebra.Matrix result) Gets initial G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer.com.irurueta.algebra.MatrixGets initial gyroscope scale factors and cross coupling errors matrix.voidgetInitialMg(com.irurueta.algebra.Matrix result) Gets initial gyroscope scale factors and cross coupling errors matrix.doubleGets initial x-y cross coupling error of gyroscope.doubleGets initial x-z cross coupling error of gyroscope.doubleGets initial y-x cross coupling error of gyroscope.doubleGets initial y-z cross coupling error of gyroscope.doubleGets initial z-x cross coupling error of gyroscope.doubleGets initial z-y cross coupling error of gyroscope.doubleGets initial x scaling factor of gyroscope.doubleGets initial y scaling factor of gyroscope.doubleGets initial z scaling factor of gyroscope.com.irurueta.numerical.robust.InliersDataGets data related to inliers found after estimation.Gets listener to handle events raised by this estimator.intReturns maximum allowed number of iterations.Indicates the type of measurement or sequence used by this calibrator.abstract com.irurueta.numerical.robust.RobustEstimatorMethodReturns method being used for robust estimation.intGets minimum number of required sequences.intGets size of subsets to be checked during robust estimation.floatReturns amount of progress variation before notifying a progress change during calibration.double[]Returns quality scores corresponding to each sequence.Gets collection of sequences of timestamped body kinematics measurements taken at a given position where the device moves freely with different orientations.booleanIndicates whether z-axis is assumed to be common for accelerometer and gyroscope.booleanIndicates whether covariance must be kept after refining result.booleanIndicates whether G-dependent cross biases are being estimated or not.booleanIndicates whether this calibrator requires ordered measurements or sequences in a list or not.booleanisReady()Indicates whether calibrator is ready to start.booleanIndicates whether result must be refined using a non-linear solver over found inliers.booleanIndicates whether calibrator is currently running or not.voidsetAccelerometerBias(double[] accelerometerBias) Sets known accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.voidsetAccelerometerBias(double accelerometerBiasX, double accelerometerBiasY, double accelerometerBiasZ) Sets known accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.voidsetAccelerometerBias(com.irurueta.algebra.Matrix accelerometerBias) Sets known accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.voidsetAccelerometerBias(com.irurueta.units.Acceleration accelerometerBiasX, com.irurueta.units.Acceleration accelerometerBiasY, com.irurueta.units.Acceleration accelerometerBiasZ) Sets known accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.voidsetAccelerometerBiasX(double accelerometerBiasX) Sets known x-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.voidsetAccelerometerBiasX(com.irurueta.units.Acceleration accelerometerBiasX) Sets known x-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.voidsetAccelerometerBiasY(double accelerometerBiasY) Sets known y-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.voidsetAccelerometerBiasY(com.irurueta.units.Acceleration accelerometerBiasY) Sets known y-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.voidsetAccelerometerBiasZ(double accelerometerBiasZ) Sets known z-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.voidsetAccelerometerBiasZ(com.irurueta.units.Acceleration accelerometerBiasZ) Sets known z-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.voidsetAccelerometerCrossCouplingErrors(double accelerometerMxy, double accelerometerMxz, double accelerometerMyx, double accelerometerMyz, double accelerometerMzx, double accelerometerMzy) Sets known accelerometer cross coupling errors to be used to fix measured specific force and find cross biases introduced by the accelerometer.voidsetAccelerometerMa(com.irurueta.algebra.Matrix accelerometerMa) Sets known accelerometer scale factors and cross coupling errors matrix.voidsetAccelerometerMxy(double accelerometerMxy) Sets known accelerometer x-y cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.voidsetAccelerometerMxz(double accelerometerMxz) Sets known accelerometer x-z cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.voidsetAccelerometerMyx(double accelerometerMyx) Sets known accelerometer y-x cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.voidsetAccelerometerMyz(double accelerometerMyz) Sets known accelerometer y-z cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.voidsetAccelerometerMzx(double accelerometerMzx) Sets known accelerometer z-x cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.voidsetAccelerometerMzy(double accelerometerMzy) Sets known accelerometer z-y cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.voidsetAccelerometerScalingFactors(double accelerometerSx, double accelerometerSy, double accelerometerSz) Sets known accelerometer scaling factors to be used to fix measured specific force and find cross biases introduced by the accelerometer.voidsetAccelerometerScalingFactorsAndCrossCouplingErrors(double accelerometerSx, double accelerometerSy, double accelerometerSz, double accelerometerMxy, double accelerometerMxz, double accelerometerMyx, double accelerometerMyz, double accelerometerMzx, double accelerometerMzy) Sets known accelerometer scaling factors and cross coupling errors to be used to fix measured specific force and find cross biases introduced by the accelerometer.voidsetAccelerometerSx(double accelerometerSx) Sets known accelerometer x scaling factor to be used to fix measured specific force and find cross biases introduced by the accelerometer.voidsetAccelerometerSy(double accelerometerSy) Sets known accelerometer y scaling factor to be used to fix measured specific force and find cross biases introduced by the accelerometer.voidsetAccelerometerSz(double accelerometerSz) Sets known accelerometer z scaling factor to be used to fix measured specific force and find cross biases introduced by the accelerometer.voidsetBias(double[] bias) Sets gyroscope known bias to be used to find a solution as an array.voidsetBias(com.irurueta.algebra.Matrix initialBias) Sets gyroscope known bias as a column matrix.voidsetBias(AngularSpeedTriad bias) Sets known gyroscope bias.voidsetBiasCoordinates(double biasX, double biasY, double biasZ) Sets known bias coordinates of gyroscope expressed in radians per second (rad/s).voidsetBiasCoordinates(com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ) Sets known bias coordinates of gyroscope.voidsetBiasX(double biasX) Sets x-coordinate of gyroscope known bias.voidsetBiasX(com.irurueta.units.AngularSpeed biasX) Sets x-coordinate of gyroscope known bias.voidsetBiasY(double biasY) Sets y-coordinate of gyroscope known bias.voidsetBiasY(com.irurueta.units.AngularSpeed biasY) Sets y-coordinate of gyroscope known bias.voidsetBiasZ(double biasZ) Sets z-coordinate of gyroscope known bias.voidsetBiasZ(com.irurueta.units.AngularSpeed biasZ) Sets z-coordinate of gyroscope known bias.voidsetCommonAxisUsed(boolean commonAxisUsed) Specifies whether z-axis is assumed to be common for accelerometer and gyroscope.voidsetConfidence(double confidence) Sets amount of confidence expressed as a value between 0.0 and 1.0 (which is equivalent to 100%).voidsetCovarianceKept(boolean keepCovariance) Specifies whether covariance must be kept after refining result.voidsetGDependentCrossBiasesEstimated(boolean estimateGDependentCrossBiases) Specifies whether G-dependent cross biases are being estimated or not.voidsetInitialCrossCouplingErrors(double initialMxy, double initialMxz, double initialMyx, double initialMyz, double initialMzx, double initialMzy) Sets initial cross coupling errors of gyroscope.voidsetInitialGg(com.irurueta.algebra.Matrix initialGg) Sets initial G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer.voidsetInitialMg(com.irurueta.algebra.Matrix initialMg) Sets initial gyroscope scale factors and cross coupling errors matrix.voidsetInitialMxy(double initialMxy) Sets initial x-y cross coupling error of gyroscope.voidsetInitialMxz(double initialMxz) Sets initial x-z cross coupling error of gyroscope.voidsetInitialMyx(double initialMyx) Sets initial y-x cross coupling error of gyroscope.voidsetInitialMyz(double initialMyz) Sets initial y-z cross coupling error of gyroscope.voidsetInitialMzx(double initialMzx) Sets initial z-x cross coupling error of gyroscope.voidsetInitialMzy(double initialMzy) Sets initial z-y cross coupling error of gyroscope.voidsetInitialScalingFactors(double initialSx, double initialSy, double initialSz) Sets initial scaling factors of gyroscope.voidsetInitialScalingFactorsAndCrossCouplingErrors(double initialSx, double initialSy, double initialSz, double initialMxy, double initialMxz, double initialMyx, double initialMyz, double initialMzx, double initialMzy) Sets initial scaling factors and cross coupling errors of gyroscope.voidsetInitialSx(double initialSx) Sets initial x scaling factor of gyroscope.voidsetInitialSy(double initialSy) Sets initial y scaling factor of gyroscope.voidsetInitialSz(double initialSz) Sets initial z scaling factor of gyroscope.voidSets listener to handle events raised by this estimator.voidsetMaxIterations(int maxIterations) Sets maximum allowed number of iterations.voidsetPreliminarySubsetSize(int preliminarySubsetSize) Sets size of subsets to be checked during robust estimation.voidsetProgressDelta(float progressDelta) Sets amount of progress variation before notifying a progress change during calibration.voidsetQualityScores(double[] qualityScores) Sets quality scores corresponding to each sequence.voidsetResultRefined(boolean refineResult) Specifies whether result must be refined using a non-linear solver over found inliers.voidSets collection of sequences of timestamped body kinematics measurements taken at a given position where the device moves freely with different orientations.protected voidConfigures acceleration fixerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.irurueta.navigation.inertial.calibration.gyroscope.GyroscopeCalibrator
calibrate, isQualityScoresRequired
-
Field Details
-
DEFAULT_USE_COMMON_Z_AXIS
public static final boolean DEFAULT_USE_COMMON_Z_AXISIndicates whether by default a common z-axis is assumed for both the accelerometer and gyroscope.- See Also:
-
DEFAULT_ESTIMATE_G_DEPENDENT_CROSS_BIASES
public static final boolean DEFAULT_ESTIMATE_G_DEPENDENT_CROSS_BIASESIndicates that by default G-dependent cross biases introduced by the accelerometer on the gyroscope are estimated.- See Also:
-
DEFAULT_ROBUST_METHOD
public static final com.irurueta.numerical.robust.RobustEstimatorMethod DEFAULT_ROBUST_METHODDefault robust estimator method when none is provided. -
DEFAULT_REFINE_RESULT
public static final boolean DEFAULT_REFINE_RESULTIndicates that result is refined by default using a non-linear calibrator (which uses a Levenberg-Marquardt fitter).- See Also:
-
DEFAULT_KEEP_COVARIANCE
public static final boolean DEFAULT_KEEP_COVARIANCEIndicates that covariance is kept by default after refining result.- See Also:
-
DEFAULT_PROGRESS_DELTA
public static final float DEFAULT_PROGRESS_DELTADefault amount of progress variation before notifying a change in estimation progress. By default this is set to 5%.- See Also:
-
MIN_PROGRESS_DELTA
public static final float MIN_PROGRESS_DELTAMinimum allowed value for progress delta.- See Also:
-
MAX_PROGRESS_DELTA
public static final float MAX_PROGRESS_DELTAMaximum allowed value for progress delta.- See Also:
-
DEFAULT_CONFIDENCE
public static final double DEFAULT_CONFIDENCEConstant defining default confidence of the estimated result, which is 99%. This means that with a probability of 99% estimation will be accurate because chosen sub-samples will be inliers.- See Also:
-
DEFAULT_MAX_ITERATIONS
public static final int DEFAULT_MAX_ITERATIONSDefault maximum allowed number of iterations.- See Also:
-
MIN_CONFIDENCE
public static final double MIN_CONFIDENCEMinimum allowed confidence value.- See Also:
-
MAX_CONFIDENCE
public static final double MAX_CONFIDENCEMaximum allowed confidence value.- See Also:
-
MIN_ITERATIONS
public static final int MIN_ITERATIONSMinimum allowed number of iterations.- See Also:
-
accelerometerBiasX
private double accelerometerBiasXKnown x-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer. This is expressed in meters per squared second (m/s^2). -
accelerometerBiasY
private double accelerometerBiasYKnown y-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer. This is expressed in meters per squared second (m/s^2). -
accelerometerBiasZ
private double accelerometerBiasZKnown z-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer. This is expressed in meters per squared second (m/s^2). -
accelerometerSx
private double accelerometerSxKnown accelerometer x scaling factor to be used to fix measured specific force and find cross biases introduced by the accelerometer. -
accelerometerSy
private double accelerometerSyKnown accelerometer y scaling factor to be used to fix measured specific force and find cross biases introduced by the accelerometer. -
accelerometerSz
private double accelerometerSzKnown accelerometer z scaling factor to be used to fix measured specific force and find cross biases introduced by the accelerometer. -
accelerometerMxy
private double accelerometerMxyKnown accelerometer x-y cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer. -
accelerometerMxz
private double accelerometerMxzKnow accelerometer x-z cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer. -
accelerometerMyx
private double accelerometerMyxKnown accelerometer y-x cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer. -
accelerometerMyz
private double accelerometerMyzKnown accelerometer y-z cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer. -
accelerometerMzx
private double accelerometerMzxKnown accelerometer z-x cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer. -
accelerometerMzy
private double accelerometerMzyKnown accelerometer z-y cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer. -
biasX
private double biasXX-coordinate of gyroscope known bias expressed in radians per second (rad/s). -
biasY
private double biasYY-coordinate of gyroscope known bias expressed in radians per second (rad/s). -
biasZ
private double biasZZ-coordinate of gyroscope known bias expressed in radians per second (rad/s). -
initialSx
private double initialSxInitial gyroscope x scaling factor. -
initialSy
private double initialSyInitial gyroscope y scaling factor. -
initialSz
private double initialSzInitial gyroscope z scaling factor. -
initialMxy
private double initialMxyInitial gyroscope x-y cross coupling error. -
initialMxz
private double initialMxzInitial gyroscope x-z cross coupling error. -
initialMyx
private double initialMyxInitial gyroscope y-x cross coupling error. -
initialMyz
private double initialMyzInitial gyroscope y-z cross coupling error. -
initialMzx
private double initialMzxInitial gyroscope z-x cross coupling error. -
initialMzy
private double initialMzyInitial gyroscope z-y cross coupling error. -
initialGg
private com.irurueta.algebra.Matrix initialGgInitial G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. -
sequences
Contains a collection of sequences of timestamped body kinematics measurements taken at a given position where the device moves freely with different orientations. -
commonAxisUsed
private boolean commonAxisUsedThis flag indicates whether z-axis is assumed to be common for accelerometer and gyroscope. When enabled, this eliminates 3 variables from Mg matrix. -
estimateGDependentCrossBiases
private boolean estimateGDependentCrossBiasesThis flag indicates whether G-dependent cross biases are being estimated or not. When enabled, this adds 9 variables from Gg matrix. -
listener
Listener to be notified of events such as when calibration starts, ends or its progress significantly changes. -
estimatedMg
private com.irurueta.algebra.Matrix estimatedMgEstimated gyroscope scale factors and cross coupling errors. This is the product of matrix Tg containing cross coupling errors and Kg containing scaling factors. So that:Mg = [sx mxy mxz] = Tg*Kg [myx sy myz] [mzx mzy sz ]Where:Kg = [sx 0 0 ] [0 sy 0 ] [0 0 sz]andTg = [1 -alphaXy alphaXz ] [alphaYx 1 -alphaYz] [-alphaZx alphaZy 1 ]Hence:Mg = [sx mxy mxz] = Tg*Kg = [sx -sy * alphaXy sz * alphaXz ] [myx sy myz] [sx * alphaYx sy -sz * alphaYz] [mzx mzy sz ] [-sx * alphaZx sy * alphaZy sz ]This instance allows any 3x3 matrix however, typically alphaYx, alphaZx and alphaZy are considered to be zero if the gyroscope z-axis is assumed to be the same as the body z-axis. When this is assumed, myx = mzx = mzy = 0 and the Mg matrix becomes upper diagonal:Mg = [sx mxy mxz] [0 sy myz] [0 0 sz ]Values of this matrix are unit-less. -
estimatedGg
private com.irurueta.algebra.Matrix estimatedGgEstimated G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. This instance allows any 3x3 matrix. -
estimatedCovariance
private com.irurueta.algebra.Matrix estimatedCovarianceEstimated covariance matrix for estimated parameters. -
estimatedChiSq
private double estimatedChiSqEstimated chi square value. -
estimatedChiSqDegreesOfFreedom
private int estimatedChiSqDegreesOfFreedomEstimated degrees of freedom of chi square value. Degrees of freedom is equal to the number of sampled data minus the number of estimated parameters. -
estimatedReducedChiSq
private double estimatedReducedChiSqEstimated reduced chi square value. This is equal to estimated chi square value divided by its degrees of freedom. Ideally this value should be close to 1.0. -
estimatedMse
private double estimatedMseEstimated mean square error respect to provided measurements. -
estimatedP
private double estimatedPEstimated probability of finding a smaller chi square value expressed as a value between 0.0 and 1.0. The smaller the found chi square value is, the better the fit of the estimated parameters to the actual parameter. Thus, the smaller the chance of finding a smaller chi square value, then the better the estimated fit is. -
estimatedQ
private double estimatedQEstimated measure of quality of estimated fit as a value between 0.0 and 1.0. The larger the quality value is, the better the fit that has been estimated. -
running
protected boolean runningIndicates whether calibrator is running. -
progressDelta
protected float progressDeltaAmount of progress variation before notifying a progress change during calibration. -
confidence
protected double confidenceAmount of confidence expressed as a value between 0.0 and 1.0 (which is equivalent to 100%). The amount of confidence indicates the probability that the estimated result is correct. Usually this value will be close to 1.0, but not exactly 1.0. -
maxIterations
protected int maxIterationsMaximum allowed number of iterations. When the maximum number of iterations is exceeded, result will not be available, however an approximate result will be available for retrieval. -
inliersData
protected com.irurueta.numerical.robust.InliersData inliersDataData related to inliers found after calibration. -
refineResult
protected boolean refineResultIndicates whether result must be refined using a non linear calibrator over found inliers. If true, inliers will be computed and kept in any implementation regardless of the settings. -
preliminarySubsetSize
protected int preliminarySubsetSizeSize of subsets to be checked during robust estimation. -
keepCovariance
private boolean keepCovarianceIndicates whether covariance must be kept after refining result. This setting is only taken into account if result is refined. -
innerCalibrator
Inner non-robust calibrator. -
startPoint
private final com.irurueta.geometry.InhomogeneousPoint3D startPointContains normalized start gravity coordinates. This is reused when computing error residuals. -
endPoint
private final com.irurueta.geometry.InhomogeneousPoint3D endPointContains estimated normalized end gravity coordinates. This is reused when computing error residuals. -
expectedEndPoint
private final com.irurueta.geometry.InhomogeneousPoint3D expectedEndPointContains expected normalized end gravity coordinates. This is reused when computing error residuals. -
q
private final com.irurueta.geometry.Quaternion qContains amount of rotation for a given sequence and preliminary solution. This is reused when computing error residuals. -
measuredSpecificForce
private final double[] measuredSpecificForceArray containing measured specific force coordinates. This is reused when computing error residuals. -
fixedSpecificForce
private final double[] fixedSpecificForceArray containing fixed specific force coordinates. This is reused when computing error residuals. -
measuredAngularRate
private final double[] measuredAngularRateArray containing measured angular rate coordinates. This is reused when computing error residuals. -
fixedAngularRate
private final double[] fixedAngularRateArray containing fixed angular rate coordinates. This is reused when computing error residuals. -
accelerationFixer
An acceleration fixer. This is reused when computing error residuals. -
angularRateFixer
An angular rate fixer. This is reused when computing error residuals.
-
-
Constructor Details
-
RobustKnownBiasEasyGyroscopeCalibrator
protected RobustKnownBiasEasyGyroscopeCalibrator()Constructor. -
RobustKnownBiasEasyGyroscopeCalibrator
protected RobustKnownBiasEasyGyroscopeCalibrator(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg) Constructor.- Parameters:
sequences- collection of sequences containing timestamped body kinematics measurements.bias- gyroscope known bias. This must be 3x1 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.- Throws:
IllegalArgumentException- if any of the provided values does not have proper size.
-
RobustKnownBiasEasyGyroscopeCalibrator
protected RobustKnownBiasEasyGyroscopeCalibrator(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, double[] bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg) Constructor.- Parameters:
sequences- collection of sequences containing timestamped body kinematics measurements.bias- gyroscope known bias. This must have length 3 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.- Throws:
IllegalArgumentException- if any of the provided values does not have proper size.
-
RobustKnownBiasEasyGyroscopeCalibrator
protected RobustKnownBiasEasyGyroscopeCalibrator(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, double[] bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, double[] accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa) Constructor.- Parameters:
sequences- collection of sequences containing timestamped body kinematics measurements.bias- gyroscope known bias. This must have length 3 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.accelerometerBias- known accelerometer bias. This must have length 3 and is expressed in meters per squared second (m/s^2).accelerometerMa- known accelerometer scale factors and cross coupling matrix. Must be 3x3.- Throws:
IllegalArgumentException- if any of the provided values does not have proper size.
-
RobustKnownBiasEasyGyroscopeCalibrator
protected RobustKnownBiasEasyGyroscopeCalibrator(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.algebra.Matrix accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa) Constructor.- Parameters:
sequences- collection of sequences containing timestamped body kinematics measurements.bias- gyroscope known bias. This must be 3x1 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.accelerometerBias- known accelerometer bias. This must be 3x1 and is expressed in meters per squared second (m/s^2).accelerometerMa- known accelerometer scale factors and cross coupling matrix. Must be 3x3.- Throws:
IllegalArgumentException- if any of the provided values does not have proper size.
-
RobustKnownBiasEasyGyroscopeCalibrator
protected RobustKnownBiasEasyGyroscopeCalibrator(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg) Constructor.- Parameters:
sequences- collection of sequences containing timestamped body kinematics measurements.commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.estimateGDependentCrossBiases- true if G-dependent cross biases will be estimated, false otherwise.bias- gyroscope known bias. This must be 3x1 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.- Throws:
IllegalArgumentException- if any of the provided values does not have proper size.
-
RobustKnownBiasEasyGyroscopeCalibrator
protected RobustKnownBiasEasyGyroscopeCalibrator(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, double[] bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg) Constructor.- Parameters:
sequences- collection of sequences containing timestamped body kinematics measurements.commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.estimateGDependentCrossBiases- true if G-dependent cross biases will be estimated, false otherwise.bias- gyroscope known bias. This must have length 3 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.- Throws:
IllegalArgumentException- if any of the provided values does not have proper size.
-
RobustKnownBiasEasyGyroscopeCalibrator
protected RobustKnownBiasEasyGyroscopeCalibrator(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, double[] bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, double[] accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa) Constructor.- Parameters:
sequences- collection of sequences containing timestamped body kinematics measurements.commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.estimateGDependentCrossBiases- true if G-dependent cross biases will be estimated, false otherwise.bias- gyroscope known bias. This must have length 3 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.accelerometerBias- known accelerometer bias. This must have length 3 and is expressed in meters per squared second (m/s^2).accelerometerMa- known accelerometer scale factors and cross coupling matrix. Must be 3x3.- Throws:
IllegalArgumentException- if any of the provided values does not have proper size.
-
RobustKnownBiasEasyGyroscopeCalibrator
protected RobustKnownBiasEasyGyroscopeCalibrator(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.algebra.Matrix accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa) Constructor.- Parameters:
sequences- collection of sequences containing timestamped body kinematics measurements.commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.estimateGDependentCrossBiases- true if G-dependent cross biases will be estimated, false otherwise.bias- gyroscope known bias. This must be 3x1 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.accelerometerBias- known accelerometer bias. This must have length 3 and is expressed in meters per squared second (m/s^2).accelerometerMa- known accelerometer scale factors and cross coupling matrix. Must be 3x3.- Throws:
IllegalArgumentException- if any of the provided values does not have proper size.
-
-
Method Details
-
getAccelerometerBiasX
public double getAccelerometerBiasX()Gets known x-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer. This is expressed in meters per squared second (m/s^2).- Specified by:
getAccelerometerBiasXin interfaceAccelerometerDependentGyroscopeCalibrator- Returns:
- known x-coordinate of accelerometer bias.
-
setAccelerometerBiasX
public void setAccelerometerBiasX(double accelerometerBiasX) throws com.irurueta.navigation.LockedException Sets known x-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer. This is expressed in meters per squared second (m/s^2).- Specified by:
setAccelerometerBiasXin interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
accelerometerBiasX- known x-coordinate of accelerometer bias.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getAccelerometerBiasY
public double getAccelerometerBiasY()Gets known y-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer. This is expressed in meters per squared second (m/s^2).- Specified by:
getAccelerometerBiasYin interfaceAccelerometerDependentGyroscopeCalibrator- Returns:
- known y-coordinate of accelerometer bias.
-
setAccelerometerBiasY
public void setAccelerometerBiasY(double accelerometerBiasY) throws com.irurueta.navigation.LockedException Sets known y-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer. This is expressed in meters per squared second (m/s^2).- Specified by:
setAccelerometerBiasYin interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
accelerometerBiasY- known y-coordinate of accelerometer bias.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getAccelerometerBiasZ
public double getAccelerometerBiasZ()Gets known z-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer. This is expressed in meters per squared second (m/s^2).- Specified by:
getAccelerometerBiasZin interfaceAccelerometerDependentGyroscopeCalibrator- Returns:
- known z-coordinate of accelerometer bias.
-
setAccelerometerBiasZ
public void setAccelerometerBiasZ(double accelerometerBiasZ) throws com.irurueta.navigation.LockedException Sets known z-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer. This is expressed in meters per squared second (m/s^2).- Specified by:
setAccelerometerBiasZin interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
accelerometerBiasZ- known z-coordinate of accelerometer bias.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getAccelerometerBiasXAsAcceleration
public com.irurueta.units.Acceleration getAccelerometerBiasXAsAcceleration()Gets known x-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
getAccelerometerBiasXAsAccelerationin interfaceAccelerometerDependentGyroscopeCalibrator- Returns:
- known x-coordinate of accelerometer bias.
-
getAccelerometerBiasXAsAcceleration
public void getAccelerometerBiasXAsAcceleration(com.irurueta.units.Acceleration result) Gets known x-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
getAccelerometerBiasXAsAccelerationin interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
result- instance where result data will be stored.
-
setAccelerometerBiasX
public void setAccelerometerBiasX(com.irurueta.units.Acceleration accelerometerBiasX) throws com.irurueta.navigation.LockedException Sets known x-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
setAccelerometerBiasXin interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
accelerometerBiasX- x-coordinate of accelerometer bias.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getAccelerometerBiasYAsAcceleration
public com.irurueta.units.Acceleration getAccelerometerBiasYAsAcceleration()Gets known y-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
getAccelerometerBiasYAsAccelerationin interfaceAccelerometerDependentGyroscopeCalibrator- Returns:
- known y-coordinate of accelerometer bias.
-
getAccelerometerBiasYAsAcceleration
public void getAccelerometerBiasYAsAcceleration(com.irurueta.units.Acceleration result) Gets known y-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
getAccelerometerBiasYAsAccelerationin interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
result- instance where result data will be stored.
-
setAccelerometerBiasY
public void setAccelerometerBiasY(com.irurueta.units.Acceleration accelerometerBiasY) throws com.irurueta.navigation.LockedException Sets known y-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
setAccelerometerBiasYin interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
accelerometerBiasY- y-coordinate of accelerometer bias.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getAccelerometerBiasZAsAcceleration
public com.irurueta.units.Acceleration getAccelerometerBiasZAsAcceleration()Gets known z-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
getAccelerometerBiasZAsAccelerationin interfaceAccelerometerDependentGyroscopeCalibrator- Returns:
- known z-coordinate of accelerometer bias.
-
getAccelerometerBiasZAsAcceleration
public void getAccelerometerBiasZAsAcceleration(com.irurueta.units.Acceleration result) Gets known z-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
getAccelerometerBiasZAsAccelerationin interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
result- instance where result data will be stored.
-
setAccelerometerBiasZ
public void setAccelerometerBiasZ(com.irurueta.units.Acceleration accelerometerBiasZ) throws com.irurueta.navigation.LockedException Sets known z-coordinate of accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
setAccelerometerBiasZin interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
accelerometerBiasZ- z-coordinate of accelerometer bias.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
setAccelerometerBias
public void setAccelerometerBias(double accelerometerBiasX, double accelerometerBiasY, double accelerometerBiasZ) throws com.irurueta.navigation.LockedException Sets known accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer. This is expressed in meters per squared second (m/s^2).- Specified by:
setAccelerometerBiasin interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
accelerometerBiasX- x-coordinate of accelerometer bias.accelerometerBiasY- y-coordinate of accelerometer bias.accelerometerBiasZ- z-coordinate of accelerometer bias.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
setAccelerometerBias
public void setAccelerometerBias(com.irurueta.units.Acceleration accelerometerBiasX, com.irurueta.units.Acceleration accelerometerBiasY, com.irurueta.units.Acceleration accelerometerBiasZ) throws com.irurueta.navigation.LockedException Sets known accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
setAccelerometerBiasin interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
accelerometerBiasX- x-coordinate of accelerometer bias.accelerometerBiasY- y-coordinate of accelerometer bias.accelerometerBiasZ- z-coordinate of accelerometer bias.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getAccelerometerBias
public double[] getAccelerometerBias()Gets known accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer. This is expressed in meters per squared second (m/s^2).- Specified by:
getAccelerometerBiasin interfaceAccelerometerDependentGyroscopeCalibrator- Returns:
- known accelerometer bias.
-
getAccelerometerBias
public void getAccelerometerBias(double[] result) Gets known accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer. This is expressed in meters per squared second (m/s^2).- Specified by:
getAccelerometerBiasin interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
result- instance where result data will be copied to.- Throws:
IllegalArgumentException- if provided array does not have length 3.
-
setAccelerometerBias
public void setAccelerometerBias(double[] accelerometerBias) throws com.irurueta.navigation.LockedException Sets known accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer. This is expressed in meters per squared second (m/s^2).- Specified by:
setAccelerometerBiasin interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
accelerometerBias- known accelerometer bias.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.IllegalArgumentException- if provided array does not have length 3.
-
getAccelerometerBiasAsMatrix
public com.irurueta.algebra.Matrix getAccelerometerBiasAsMatrix()Gets known accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer. This is expressed in meters per squared second (m/s^2).- Specified by:
getAccelerometerBiasAsMatrixin interfaceAccelerometerDependentGyroscopeCalibrator- Returns:
- known accelerometer bias.
-
getAccelerometerBiasAsMatrix
public void getAccelerometerBiasAsMatrix(com.irurueta.algebra.Matrix result) Gets known accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer. This is expressed in meters per squared second (m/s^2).- Specified by:
getAccelerometerBiasAsMatrixin interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
result- instance where result data will be copied to.- Throws:
IllegalArgumentException- if provided matrix is not 3x1.
-
setAccelerometerBias
public void setAccelerometerBias(com.irurueta.algebra.Matrix accelerometerBias) throws com.irurueta.navigation.LockedException Sets known accelerometer bias to be used to fix measured specific force and find cross biases introduced by the accelerometer. This is expressed in meters per squared second (m/s^2).- Specified by:
setAccelerometerBiasin interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
accelerometerBias- known accelerometer bias. Must be 3x1.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.IllegalArgumentException- if provided matrix is not 3x1.
-
getAccelerometerSx
public double getAccelerometerSx()Gets known accelerometer x scaling factor to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
getAccelerometerSxin interfaceAccelerometerDependentGyroscopeCalibrator- Returns:
- known accelerometer x scaling factor.
-
setAccelerometerSx
public void setAccelerometerSx(double accelerometerSx) throws com.irurueta.navigation.LockedException Sets known accelerometer x scaling factor to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
setAccelerometerSxin interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
accelerometerSx- known accelerometer x scaling factor.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getAccelerometerSy
public double getAccelerometerSy()Gets known accelerometer y scaling factor to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
getAccelerometerSyin interfaceAccelerometerDependentGyroscopeCalibrator- Returns:
- known accelerometer y scaling factor.
-
setAccelerometerSy
public void setAccelerometerSy(double accelerometerSy) throws com.irurueta.navigation.LockedException Sets known accelerometer y scaling factor to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
setAccelerometerSyin interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
accelerometerSy- known accelerometer y scaling factor.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getAccelerometerSz
public double getAccelerometerSz()Gets known accelerometer z scaling factor to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
getAccelerometerSzin interfaceAccelerometerDependentGyroscopeCalibrator- Returns:
- known accelerometer z scaling factor.
-
setAccelerometerSz
public void setAccelerometerSz(double accelerometerSz) throws com.irurueta.navigation.LockedException Sets known accelerometer z scaling factor to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
setAccelerometerSzin interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
accelerometerSz- known accelerometer z scaling factor.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getAccelerometerMxy
public double getAccelerometerMxy()Gets known accelerometer x-y cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
getAccelerometerMxyin interfaceAccelerometerDependentGyroscopeCalibrator- Returns:
- known accelerometer x-y cross coupling error.
-
setAccelerometerMxy
public void setAccelerometerMxy(double accelerometerMxy) throws com.irurueta.navigation.LockedException Sets known accelerometer x-y cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
setAccelerometerMxyin interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
accelerometerMxy- known accelerometer x-y cross coupling error.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getAccelerometerMxz
public double getAccelerometerMxz()Gets known accelerometer x-z cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
getAccelerometerMxzin interfaceAccelerometerDependentGyroscopeCalibrator- Returns:
- known accelerometer x-z cross coupling error.
-
setAccelerometerMxz
public void setAccelerometerMxz(double accelerometerMxz) throws com.irurueta.navigation.LockedException Sets known accelerometer x-z cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
setAccelerometerMxzin interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
accelerometerMxz- known accelerometer x-z cross coupling error.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getAccelerometerMyx
public double getAccelerometerMyx()Gets known accelerometer y-x cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
getAccelerometerMyxin interfaceAccelerometerDependentGyroscopeCalibrator- Returns:
- known accelerometer y-x cross coupling error.
-
setAccelerometerMyx
public void setAccelerometerMyx(double accelerometerMyx) throws com.irurueta.navigation.LockedException Sets known accelerometer y-x cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
setAccelerometerMyxin interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
accelerometerMyx- known accelerometer y-x cross coupling error.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getAccelerometerMyz
public double getAccelerometerMyz()Gets known accelerometer y-z cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
getAccelerometerMyzin interfaceAccelerometerDependentGyroscopeCalibrator- Returns:
- known accelerometer y-z cross coupling error.
-
setAccelerometerMyz
public void setAccelerometerMyz(double accelerometerMyz) throws com.irurueta.navigation.LockedException Sets known accelerometer y-z cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
setAccelerometerMyzin interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
accelerometerMyz- known accelerometer y-z cross coupling error.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getAccelerometerMzx
public double getAccelerometerMzx()Gets known accelerometer z-x cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
getAccelerometerMzxin interfaceAccelerometerDependentGyroscopeCalibrator- Returns:
- known accelerometer z-x cross coupling error.
-
setAccelerometerMzx
public void setAccelerometerMzx(double accelerometerMzx) throws com.irurueta.navigation.LockedException Sets known accelerometer z-x cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
setAccelerometerMzxin interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
accelerometerMzx- known accelerometer z-x cross coupling error.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getAccelerometerMzy
public double getAccelerometerMzy()Gets known accelerometer z-y cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
getAccelerometerMzyin interfaceAccelerometerDependentGyroscopeCalibrator- Returns:
- known accelerometer z-y cross coupling error.
-
setAccelerometerMzy
public void setAccelerometerMzy(double accelerometerMzy) throws com.irurueta.navigation.LockedException Sets known accelerometer z-y cross coupling error to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
setAccelerometerMzyin interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
accelerometerMzy- known accelerometer z-y cross coupling error.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
setAccelerometerScalingFactors
public void setAccelerometerScalingFactors(double accelerometerSx, double accelerometerSy, double accelerometerSz) throws com.irurueta.navigation.LockedException Sets known accelerometer scaling factors to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
setAccelerometerScalingFactorsin interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
accelerometerSx- known accelerometer x scaling factor.accelerometerSy- known accelerometer y scaling factor.accelerometerSz- known accelerometer z scaling factor.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
setAccelerometerCrossCouplingErrors
public void setAccelerometerCrossCouplingErrors(double accelerometerMxy, double accelerometerMxz, double accelerometerMyx, double accelerometerMyz, double accelerometerMzx, double accelerometerMzy) throws com.irurueta.navigation.LockedException Sets known accelerometer cross coupling errors to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
setAccelerometerCrossCouplingErrorsin interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
accelerometerMxy- known accelerometer x-y cross coupling error.accelerometerMxz- known accelerometer x-z cross coupling error.accelerometerMyx- known accelerometer y-x cross coupling error.accelerometerMyz- known accelerometer y-z cross coupling error.accelerometerMzx- known accelerometer z-x cross coupling error.accelerometerMzy- known accelerometer z-y cross coupling error.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
setAccelerometerScalingFactorsAndCrossCouplingErrors
public void setAccelerometerScalingFactorsAndCrossCouplingErrors(double accelerometerSx, double accelerometerSy, double accelerometerSz, double accelerometerMxy, double accelerometerMxz, double accelerometerMyx, double accelerometerMyz, double accelerometerMzx, double accelerometerMzy) throws com.irurueta.navigation.LockedException Sets known accelerometer scaling factors and cross coupling errors to be used to fix measured specific force and find cross biases introduced by the accelerometer.- Specified by:
setAccelerometerScalingFactorsAndCrossCouplingErrorsin interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
accelerometerSx- known accelerometer x scaling factor.accelerometerSy- known accelerometer y scaling factor.accelerometerSz- known accelerometer z scaling factor.accelerometerMxy- known accelerometer x-y cross coupling error.accelerometerMxz- known accelerometer x-z cross coupling error.accelerometerMyx- known accelerometer y-x cross coupling error.accelerometerMyz- known accelerometer y-z cross coupling error.accelerometerMzx- known accelerometer z-x cross coupling error.accelerometerMzy- known accelerometer z-y cross coupling error.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getAccelerometerMa
public com.irurueta.algebra.Matrix getAccelerometerMa()Gets known accelerometer scale factors and cross coupling errors matrix.- Specified by:
getAccelerometerMain interfaceAccelerometerDependentGyroscopeCalibrator- Returns:
- known accelerometer scale factors and cross coupling errors matrix.
-
getAccelerometerMa
public void getAccelerometerMa(com.irurueta.algebra.Matrix result) Gets known accelerometer scale factors and cross coupling errors matrix.- Specified by:
getAccelerometerMain interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
result- instance where data will be stored.- Throws:
IllegalArgumentException- if provided matrix is not 3x3.
-
setAccelerometerMa
public void setAccelerometerMa(com.irurueta.algebra.Matrix accelerometerMa) throws com.irurueta.navigation.LockedException Sets known accelerometer scale factors and cross coupling errors matrix.- Specified by:
setAccelerometerMain interfaceAccelerometerDependentGyroscopeCalibrator- Parameters:
accelerometerMa- known accelerometer scale factors and cross coupling errors matrix. Must be 3x3.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.IllegalArgumentException- if provided matrix is not 3x3.
-
getBiasX
public double getBiasX()Gets x-coordinate of gyroscope known bias. This is expressed in radians per second (rad/s).- Specified by:
getBiasXin interfaceKnownBiasGyroscopeCalibrator- Returns:
- x-coordinate of gyroscope known bias.
-
setBiasX
public void setBiasX(double biasX) throws com.irurueta.navigation.LockedException Sets x-coordinate of gyroscope known bias. This is expressed in radians per second (rad/s).- Specified by:
setBiasXin interfaceKnownBiasGyroscopeCalibrator- Parameters:
biasX- x-coordinate of gyroscope known bias.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getBiasY
public double getBiasY()Gets y-coordinate of gyroscope known bias. This is expressed in radians per second (rad/s).- Specified by:
getBiasYin interfaceKnownBiasGyroscopeCalibrator- Returns:
- y-coordinate of gyroscope known bias.
-
setBiasY
public void setBiasY(double biasY) throws com.irurueta.navigation.LockedException Sets y-coordinate of gyroscope known bias. This is expressed in radians per second (rad/s).- Specified by:
setBiasYin interfaceKnownBiasGyroscopeCalibrator- Parameters:
biasY- y-coordinate of gyroscope known bias.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getBiasZ
public double getBiasZ()Gets z-coordinate of gyroscope known bias. This is expressed in radians per second (rad/s).- Specified by:
getBiasZin interfaceKnownBiasGyroscopeCalibrator- Returns:
- z-coordinate of gyroscope known bias.
-
setBiasZ
public void setBiasZ(double biasZ) throws com.irurueta.navigation.LockedException Sets z-coordinate of gyroscope known bias. This is expressed in radians per second (rad/s).- Specified by:
setBiasZin interfaceKnownBiasGyroscopeCalibrator- Parameters:
biasZ- z-coordinate of gyroscope bias.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getBiasAngularSpeedX
public com.irurueta.units.AngularSpeed getBiasAngularSpeedX()Gets x-coordinate of gyroscope known bias.- Specified by:
getBiasAngularSpeedXin interfaceKnownBiasGyroscopeCalibrator- Returns:
- x-coordinate of gyroscope known bias.
-
getBiasAngularSpeedX
public void getBiasAngularSpeedX(com.irurueta.units.AngularSpeed result) Gets x-coordinate of gyroscope known bias.- Specified by:
getBiasAngularSpeedXin interfaceKnownBiasGyroscopeCalibrator- Parameters:
result- instance where result data will be stored.
-
setBiasX
public void setBiasX(com.irurueta.units.AngularSpeed biasX) throws com.irurueta.navigation.LockedException Sets x-coordinate of gyroscope known bias.- Specified by:
setBiasXin interfaceKnownBiasGyroscopeCalibrator- Parameters:
biasX- x-coordinate of gyroscope known bias.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getBiasAngularSpeedY
public com.irurueta.units.AngularSpeed getBiasAngularSpeedY()Gets y-coordinate of gyroscope known bias.- Specified by:
getBiasAngularSpeedYin interfaceKnownBiasGyroscopeCalibrator- Returns:
- y-coordinate of gyroscope known bias.
-
getBiasAngularSpeedY
public void getBiasAngularSpeedY(com.irurueta.units.AngularSpeed result) Gets y-coordinate of gyroscope known bias.- Specified by:
getBiasAngularSpeedYin interfaceKnownBiasGyroscopeCalibrator- Parameters:
result- instance where result data will be stored.
-
setBiasY
public void setBiasY(com.irurueta.units.AngularSpeed biasY) throws com.irurueta.navigation.LockedException Sets y-coordinate of gyroscope known bias.- Specified by:
setBiasYin interfaceKnownBiasGyroscopeCalibrator- Parameters:
biasY- y-coordinate of gyroscope known bias.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getBiasAngularSpeedZ
public com.irurueta.units.AngularSpeed getBiasAngularSpeedZ()Gets z-coordinate of gyroscope known bias.- Specified by:
getBiasAngularSpeedZin interfaceKnownBiasGyroscopeCalibrator- Returns:
- initial z-coordinate of gyroscope known bias.
-
getBiasAngularSpeedZ
public void getBiasAngularSpeedZ(com.irurueta.units.AngularSpeed result) Gets z-coordinate of gyroscope known bias.- Specified by:
getBiasAngularSpeedZin interfaceKnownBiasGyroscopeCalibrator- Parameters:
result- instance where result data will be stored.
-
setBiasZ
public void setBiasZ(com.irurueta.units.AngularSpeed biasZ) throws com.irurueta.navigation.LockedException Sets z-coordinate of gyroscope known bias.- Specified by:
setBiasZin interfaceKnownBiasGyroscopeCalibrator- Parameters:
biasZ- z-coordinate of gyroscope known bias.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
setBiasCoordinates
public void setBiasCoordinates(double biasX, double biasY, double biasZ) throws com.irurueta.navigation.LockedException Sets known bias coordinates of gyroscope expressed in radians per second (rad/s).- Specified by:
setBiasCoordinatesin interfaceKnownBiasGyroscopeCalibrator- Parameters:
biasX- x-coordinate of gyroscope known bias.biasY- y-coordinate of gyroscope known bias.biasZ- z-coordinate of gyroscope known bias.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
setBiasCoordinates
public void setBiasCoordinates(com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ) throws com.irurueta.navigation.LockedException Sets known bias coordinates of gyroscope.- Specified by:
setBiasCoordinatesin interfaceKnownBiasGyroscopeCalibrator- Parameters:
biasX- x-coordinate of gyroscope known bias.biasY- y-coordinate of gyroscope known bias.biasZ- z-coordinate of gyroscope known bias.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getBiasAsTriad
Gets known gyroscope bias.- Returns:
- known gyroscope bias.
-
getInitialSx
public double getInitialSx()Gets initial x scaling factor of gyroscope.- Specified by:
getInitialSxin interfaceGyroscopeNonLinearCalibrator- Returns:
- initial x scaling factor of gyroscope.
-
setInitialSx
public void setInitialSx(double initialSx) throws com.irurueta.navigation.LockedException Sets initial x scaling factor of gyroscope.- Specified by:
setInitialSxin interfaceGyroscopeNonLinearCalibrator- Parameters:
initialSx- initial x scaling factor of gyroscope.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getInitialSy
public double getInitialSy()Gets initial y scaling factor of gyroscope.- Specified by:
getInitialSyin interfaceGyroscopeNonLinearCalibrator- Returns:
- initial y scaling factor of gyroscope.
-
setInitialSy
public void setInitialSy(double initialSy) throws com.irurueta.navigation.LockedException Sets initial y scaling factor of gyroscope.- Specified by:
setInitialSyin interfaceGyroscopeNonLinearCalibrator- Parameters:
initialSy- initial y scaling factor of gyroscope.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getInitialSz
public double getInitialSz()Gets initial z scaling factor of gyroscope.- Specified by:
getInitialSzin interfaceGyroscopeNonLinearCalibrator- Returns:
- initial z scaling factor of gyroscope.
-
setInitialSz
public void setInitialSz(double initialSz) throws com.irurueta.navigation.LockedException Sets initial z scaling factor of gyroscope.- Specified by:
setInitialSzin interfaceGyroscopeNonLinearCalibrator- Parameters:
initialSz- initial z scaling factor of gyroscope.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getInitialMxy
public double getInitialMxy()Gets initial x-y cross coupling error of gyroscope.- Specified by:
getInitialMxyin interfaceGyroscopeNonLinearCalibrator- Returns:
- initial x-y cross coupling error of gyroscope.
-
setInitialMxy
public void setInitialMxy(double initialMxy) throws com.irurueta.navigation.LockedException Sets initial x-y cross coupling error of gyroscope.- Specified by:
setInitialMxyin interfaceGyroscopeNonLinearCalibrator- Parameters:
initialMxy- initial x-y cross coupling error of gyroscope.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getInitialMxz
public double getInitialMxz()Gets initial x-z cross coupling error of gyroscope.- Specified by:
getInitialMxzin interfaceGyroscopeNonLinearCalibrator- Returns:
- initial x-z cross coupling error of gyroscope.
-
setInitialMxz
public void setInitialMxz(double initialMxz) throws com.irurueta.navigation.LockedException Sets initial x-z cross coupling error of gyroscope.- Specified by:
setInitialMxzin interfaceGyroscopeNonLinearCalibrator- Parameters:
initialMxz- initial x-z cross coupling error of gyroscope.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getInitialMyx
public double getInitialMyx()Gets initial y-x cross coupling error of gyroscope.- Specified by:
getInitialMyxin interfaceGyroscopeNonLinearCalibrator- Returns:
- initial y-x cross coupling error of gyroscope.
-
setInitialMyx
public void setInitialMyx(double initialMyx) throws com.irurueta.navigation.LockedException Sets initial y-x cross coupling error of gyroscope.- Specified by:
setInitialMyxin interfaceGyroscopeNonLinearCalibrator- Parameters:
initialMyx- initial y-x cross coupling error of gyroscope.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getInitialMyz
public double getInitialMyz()Gets initial y-z cross coupling error of gyroscope.- Specified by:
getInitialMyzin interfaceGyroscopeNonLinearCalibrator- Returns:
- initial y-z cross coupling error of gyroscope.
-
setInitialMyz
public void setInitialMyz(double initialMyz) throws com.irurueta.navigation.LockedException Sets initial y-z cross coupling error of gyroscope.- Specified by:
setInitialMyzin interfaceGyroscopeNonLinearCalibrator- Parameters:
initialMyz- initial y-z cross coupling error of gyroscope.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getInitialMzx
public double getInitialMzx()Gets initial z-x cross coupling error of gyroscope.- Specified by:
getInitialMzxin interfaceGyroscopeNonLinearCalibrator- Returns:
- initial z-x cross coupling error of gyroscope.
-
setInitialMzx
public void setInitialMzx(double initialMzx) throws com.irurueta.navigation.LockedException Sets initial z-x cross coupling error of gyroscope.- Specified by:
setInitialMzxin interfaceGyroscopeNonLinearCalibrator- Parameters:
initialMzx- initial z-x cross coupling error of gyroscope.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getInitialMzy
public double getInitialMzy()Gets initial z-y cross coupling error of gyroscope.- Specified by:
getInitialMzyin interfaceGyroscopeNonLinearCalibrator- Returns:
- initial z-y cross coupling error of gyroscope.
-
setInitialMzy
public void setInitialMzy(double initialMzy) throws com.irurueta.navigation.LockedException Sets initial z-y cross coupling error of gyroscope.- Specified by:
setInitialMzyin interfaceGyroscopeNonLinearCalibrator- Parameters:
initialMzy- initial z-y cross coupling error of gyroscope.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
setInitialScalingFactors
public void setInitialScalingFactors(double initialSx, double initialSy, double initialSz) throws com.irurueta.navigation.LockedException Sets initial scaling factors of gyroscope.- Specified by:
setInitialScalingFactorsin interfaceGyroscopeNonLinearCalibrator- Parameters:
initialSx- initial x scaling factor of gyroscope.initialSy- initial y scaling factor of gyroscope.initialSz- initial z scaling factor of gyroscope.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
setInitialCrossCouplingErrors
public void setInitialCrossCouplingErrors(double initialMxy, double initialMxz, double initialMyx, double initialMyz, double initialMzx, double initialMzy) throws com.irurueta.navigation.LockedException Sets initial cross coupling errors of gyroscope.- Specified by:
setInitialCrossCouplingErrorsin interfaceGyroscopeNonLinearCalibrator- Parameters:
initialMxy- initial x-y cross coupling error of gyroscope.initialMxz- initial x-z cross coupling error of gyroscope.initialMyx- initial y-x cross coupling error of gyroscope.initialMyz- initial y-z cross coupling error of gyroscope.initialMzx- initial z-x cross coupling error of gyroscope.initialMzy- initial z-y cross coupling error of gyroscope.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
setInitialScalingFactorsAndCrossCouplingErrors
public void setInitialScalingFactorsAndCrossCouplingErrors(double initialSx, double initialSy, double initialSz, double initialMxy, double initialMxz, double initialMyx, double initialMyz, double initialMzx, double initialMzy) throws com.irurueta.navigation.LockedException Sets initial scaling factors and cross coupling errors of gyroscope.- Specified by:
setInitialScalingFactorsAndCrossCouplingErrorsin interfaceGyroscopeNonLinearCalibrator- Parameters:
initialSx- initial x scaling factor of gyroscope.initialSy- initial y scaling factor of gyroscope.initialSz- initial z scaling factor of gyroscope.initialMxy- initial x-y cross coupling error of gyroscope.initialMxz- initial x-z cross coupling error of gyroscope.initialMyx- initial y-x cross coupling error of gyroscope.initialMyz- initial y-z cross coupling error of gyroscope.initialMzx- initial z-x cross coupling error of gyroscope.initialMzy- initial z-y cross coupling error of gyroscope.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getBias
public double[] getBias()Gets gyroscope known bias as an array. Array values are expressed in radians per second (rad/s).- Specified by:
getBiasin interfaceKnownBiasGyroscopeCalibrator- Returns:
- array containing coordinates of gyroscope known bias.
-
getBias
public void getBias(double[] result) Gets gyroscope known bias as an array. Array values are expressed in radians per second (rad/s).- Specified by:
getBiasin interfaceKnownBiasGyroscopeCalibrator- Parameters:
result- instance where result data will be copied to.- Throws:
IllegalArgumentException- if provided array does not have length 3.
-
setBias
public void setBias(double[] bias) throws com.irurueta.navigation.LockedException Sets gyroscope known bias to be used to find a solution as an array. Array values are expressed in radians per second (rad/s).- Specified by:
setBiasin interfaceKnownBiasGyroscopeCalibrator- Parameters:
bias- known bias.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.IllegalArgumentException- if provided array does not have length 3.
-
getBiasAsMatrix
public com.irurueta.algebra.Matrix getBiasAsMatrix()Gets gyroscope known bias as a column matrix.- Specified by:
getBiasAsMatrixin interfaceKnownBiasGyroscopeCalibrator- Returns:
- initial gyroscope bias to be used to find a solution as a column matrix.
-
getBiasAsMatrix
public void getBiasAsMatrix(com.irurueta.algebra.Matrix result) Gets gyroscope known bias as a column matrix.- Specified by:
getBiasAsMatrixin interfaceKnownBiasGyroscopeCalibrator- Parameters:
result- instance where result data will be copied to.- Throws:
IllegalArgumentException- if provided matrix is not 3x1.
-
setBias
public void setBias(com.irurueta.algebra.Matrix initialBias) throws com.irurueta.navigation.LockedException Sets gyroscope known bias as a column matrix.- Specified by:
setBiasin interfaceKnownBiasGyroscopeCalibrator- Parameters:
initialBias- gyroscope known bias.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.IllegalArgumentException- if provided matrix is not 3x1.
-
getInitialMg
public com.irurueta.algebra.Matrix getInitialMg()Gets initial gyroscope scale factors and cross coupling errors matrix.- Specified by:
getInitialMgin interfaceGyroscopeNonLinearCalibrator- Returns:
- initial gyroscope scale factors and cross coupling errors matrix.
-
getInitialMg
public void getInitialMg(com.irurueta.algebra.Matrix result) Gets initial gyroscope scale factors and cross coupling errors matrix.- Specified by:
getInitialMgin interfaceGyroscopeNonLinearCalibrator- Parameters:
result- instance where data will be stored.- Throws:
IllegalArgumentException- if provided matrix is not 3x3.
-
setInitialMg
public void setInitialMg(com.irurueta.algebra.Matrix initialMg) throws com.irurueta.navigation.LockedException Sets initial gyroscope scale factors and cross coupling errors matrix.- Specified by:
setInitialMgin interfaceGyroscopeNonLinearCalibrator- Parameters:
initialMg- initial scale factors and cross coupling errors matrix.- Throws:
IllegalArgumentException- if provided matrix is not 3x3.com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getInitialGg
public com.irurueta.algebra.Matrix getInitialGg()Gets initial G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer.- Specified by:
getInitialGgin interfaceGyroscopeNonLinearCalibrator- Returns:
- a 3x3 matrix containing initial g-dependent cross biases.
-
getInitialGg
public void getInitialGg(com.irurueta.algebra.Matrix result) Gets initial G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer.- Specified by:
getInitialGgin interfaceGyroscopeNonLinearCalibrator- Parameters:
result- instance where data will be stored.- Throws:
IllegalArgumentException- if provided matrix is not 3x3.
-
setInitialGg
public void setInitialGg(com.irurueta.algebra.Matrix initialGg) throws com.irurueta.navigation.LockedException Sets initial G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer.- Specified by:
setInitialGgin interfaceGyroscopeNonLinearCalibrator- Parameters:
initialGg- g-dependent cross biases.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.IllegalArgumentException- if provided matrix is not 3x3.
-
getSequences
Gets collection of sequences of timestamped body kinematics measurements taken at a given position where the device moves freely with different orientations.- Specified by:
getSequencesin interfaceOrderedBodyKinematicsSequenceGyroscopeCalibrator- Returns:
- collection of sequences of timestamped body kinematics measurements.
-
setSequences
public void setSequences(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences) throws com.irurueta.navigation.LockedException Sets collection of sequences of timestamped body kinematics measurements taken at a given position where the device moves freely with different orientations.- Specified by:
setSequencesin interfaceOrderedBodyKinematicsSequenceGyroscopeCalibrator- Parameters:
sequences- collection of sequences of timestamped body kinematics measurements.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getMeasurementOrSequenceType
Indicates the type of measurement or sequence used by this calibrator.- Specified by:
getMeasurementOrSequenceTypein interfaceGyroscopeCalibrator- Returns:
- type of measurement or sequence used by this calibrator.
-
isOrderedMeasurementsOrSequencesRequired
public boolean isOrderedMeasurementsOrSequencesRequired()Indicates whether this calibrator requires ordered measurements or sequences in a list or not.- Specified by:
isOrderedMeasurementsOrSequencesRequiredin interfaceGyroscopeCalibrator- Returns:
- true if measurements or sequences must be ordered, false otherwise.
-
isCommonAxisUsed
public boolean isCommonAxisUsed()Indicates whether z-axis is assumed to be common for accelerometer and gyroscope. When enabled, this eliminates 3 variables from Ma matrix.- Specified by:
isCommonAxisUsedin interfaceGyroscopeCalibrator- Returns:
- true if z-axis is assumed to be common for accelerometer and gyroscope, false otherwise.
-
setCommonAxisUsed
public void setCommonAxisUsed(boolean commonAxisUsed) throws com.irurueta.navigation.LockedException Specifies whether z-axis is assumed to be common for accelerometer and gyroscope. When enabled, this eliminates 3 variables from Ma matrix.- Specified by:
setCommonAxisUsedin interfaceGyroscopeCalibrator- Parameters:
commonAxisUsed- true if z-axis is assumed to be common for accelerometer and gyroscope, false otherwise.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
isGDependentCrossBiasesEstimated
public boolean isGDependentCrossBiasesEstimated()Indicates whether G-dependent cross biases are being estimated or not. When enabled, this adds 9 variables from Gg matrix.- Returns:
- true if G-dependent cross biases will be estimated, false otherwise.
-
setGDependentCrossBiasesEstimated
public void setGDependentCrossBiasesEstimated(boolean estimateGDependentCrossBiases) throws com.irurueta.navigation.LockedException Specifies whether G-dependent cross biases are being estimated or not. When enabled, this adds 9 variables from Gg matrix.- Parameters:
estimateGDependentCrossBiases- true if G-dependent cross biases will be estimated, false otherwise.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getListener
Gets listener to handle events raised by this estimator.- Returns:
- listener to handle events raised by this estimator.
-
getMinimumRequiredMeasurementsOrSequences
public int getMinimumRequiredMeasurementsOrSequences()Gets minimum number of required sequences.- Specified by:
getMinimumRequiredMeasurementsOrSequencesin interfaceGyroscopeCalibrator- Returns:
- minimum number of required sequences.
-
isReady
public boolean isReady()Indicates whether calibrator is ready to start.- Specified by:
isReadyin interfaceGyroscopeCalibrator- Returns:
- true if calibrator is ready, false otherwise.
-
isRunning
public boolean isRunning()Indicates whether calibrator is currently running or not.- Specified by:
isRunningin interfaceGyroscopeCalibrator- Returns:
- true if calibrator is running, false otherwise.
-
getProgressDelta
public float getProgressDelta()Returns amount of progress variation before notifying a progress change during calibration.- Returns:
- amount of progress variation before notifying a progress change during calibration.
-
setProgressDelta
public void setProgressDelta(float progressDelta) throws com.irurueta.navigation.LockedException Sets amount of progress variation before notifying a progress change during calibration.- Parameters:
progressDelta- amount of progress variation before notifying a progress change during calibration.- Throws:
IllegalArgumentException- if progress delta is less than zero or greater than 1.com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getConfidence
public double getConfidence()Returns amount of confidence expressed as a value between 0.0 and 1.0 (which is equivalent to 100%). The amount of confidence indicates the probability that the estimated result is correct. Usually this value will be close to 1.0, but not exactly 1.0.- Returns:
- amount of confidence as a value between 0.0 and 1.0.
-
setConfidence
public void setConfidence(double confidence) throws com.irurueta.navigation.LockedException Sets amount of confidence expressed as a value between 0.0 and 1.0 (which is equivalent to 100%). The amount of confidence indicates the probability that the estimated result is correct. Usually this value will be close to 1.0, but not exactly 1.0.- Parameters:
confidence- confidence to be set as a value between 0.0 and 1.0.- Throws:
IllegalArgumentException- if provided value is not between 0.0 and 1.0.com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getMaxIterations
public int getMaxIterations()Returns maximum allowed number of iterations. If maximum allowed number of iterations is achieved without converging to a result when calling calibrate(), a RobustEstimatorException will be raised.- Returns:
- maximum allowed number of iterations.
-
setMaxIterations
public void setMaxIterations(int maxIterations) throws com.irurueta.navigation.LockedException Sets maximum allowed number of iterations. When the maximum number of iterations is exceeded, result will not be available, however an approximate result will be available for retrieval.- Parameters:
maxIterations- maximum allowed number of iterations to be set.- Throws:
IllegalArgumentException- if provided value is less than 1.com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getInliersData
public com.irurueta.numerical.robust.InliersData getInliersData()Gets data related to inliers found after estimation.- Returns:
- data related to inliers found after estimation.
-
isResultRefined
public boolean isResultRefined()Indicates whether result must be refined using a non-linear solver over found inliers.- Returns:
- true to refine result, false to simply use result found by robust estimator without further refining.
-
setResultRefined
public void setResultRefined(boolean refineResult) throws com.irurueta.navigation.LockedException Specifies whether result must be refined using a non-linear solver over found inliers.- Parameters:
refineResult- true to refine result, false to simply use result found by robust estimator without further refining.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
isCovarianceKept
public boolean isCovarianceKept()Indicates whether covariance must be kept after refining result. This setting is only taken into account if result is refined.- Returns:
- true if covariance must be kept after refining result, false otherwise.
-
setCovarianceKept
public void setCovarianceKept(boolean keepCovariance) throws com.irurueta.navigation.LockedException Specifies whether covariance must be kept after refining result. This setting is only taken into account if result is refined.- Parameters:
keepCovariance- true if covariance must be kept after refining result, false otherwise.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getQualityScores
public double[] getQualityScores()Returns quality scores corresponding to each sequence. The larger the score value the better the quality of the sample. This implementation always returns null. Subclasses using quality scores must implement proper behavior.- Specified by:
getQualityScoresin interfaceQualityScoredGyroscopeCalibrator- Returns:
- quality scores corresponding to each sample.
-
setQualityScores
public void setQualityScores(double[] qualityScores) throws com.irurueta.navigation.LockedException Sets quality scores corresponding to each sequence. The larger the score value the better the quality of the sample. This implementation makes no action. Subclasses using quality scores must implement proper behaviour.- Specified by:
setQualityScoresin interfaceQualityScoredGyroscopeCalibrator- Parameters:
qualityScores- quality scores corresponding to each sample.- Throws:
IllegalArgumentException- if provided quality scores length is smaller than minimum required samples.com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getEstimatedMg
public com.irurueta.algebra.Matrix getEstimatedMg()Gets estimated gyroscope scale factors and cross coupling errors. This is the product of matrix Tg containing cross coupling errors and Kg containing scaling factors. So that:Mg = [sx mxy mxz] = Tg*Kg [myx sy myz] [mzx mzy sz ]Where:Kg = [sx 0 0 ] [0 sy 0 ] [0 0 sz]andTg = [1 -alphaXy alphaXz ] [alphaYx 1 -alphaYz] [-alphaZx alphaZy 1 ]Hence:Mg = [sx mxy mxz] = Tg*Kg = [sx -sy * alphaXy sz * alphaXz ] [myx sy myz] [sx * alphaYx sy -sz * alphaYz] [mzx mzy sz ] [-sx * alphaZx sy * alphaZy sz ]This instance allows any 3x3 matrix however, typically alphaYx, alphaZx and alphaZy are considered to be zero if the gyroscope z-axis is assumed to be the same as the body z-axis. When this is assumed, myx = mzx = mzy = 0 and the Mg matrix becomes upper diagonal:Mg = [sx mxy mxz] [0 sy myz] [0 0 sz ]Values of this matrix are unit-less.- Specified by:
getEstimatedMgin interfaceGyroscopeCalibrator- Returns:
- estimated gyroscope scale factors and cross coupling errors, or null if not available.
-
getEstimatedSx
Gets estimated gyroscope x-axis scale factor.- Specified by:
getEstimatedSxin interfaceGyroscopeCalibrator- Returns:
- estimated gyroscope x-axis scale factor or null if not available.
-
getEstimatedSy
Gets estimated gyroscope y-axis scale factor.- Specified by:
getEstimatedSyin interfaceGyroscopeCalibrator- Returns:
- estimated gyroscope y-axis scale factor or null if not available.
-
getEstimatedSz
Gets estimated gyroscope z-axis scale factor.- Specified by:
getEstimatedSzin interfaceGyroscopeCalibrator- Returns:
- estimated gyroscope z-axis scale factor or null if not available.
-
getEstimatedMxy
Gets estimated gyroscope x-y cross-coupling error.- Specified by:
getEstimatedMxyin interfaceGyroscopeCalibrator- Returns:
- estimated gyroscope x-y cross-coupling error or null if not available.
-
getEstimatedMxz
Gets estimated gyroscope x-z cross-coupling error.- Specified by:
getEstimatedMxzin interfaceGyroscopeCalibrator- Returns:
- estimated gyroscope x-z cross-coupling error or null if not available.
-
getEstimatedMyx
Gets estimated gyroscope y-x cross-coupling error.- Specified by:
getEstimatedMyxin interfaceGyroscopeCalibrator- Returns:
- estimated gyroscope y-x cross-coupling error or null if not available.
-
getEstimatedMyz
Gets estimated gyroscope y-z cross-coupling error.- Specified by:
getEstimatedMyzin interfaceGyroscopeCalibrator- Returns:
- estimated gyroscope y-z cross-coupling error or null if not available.
-
getEstimatedMzx
Gets estimated gyroscope z-x cross-coupling error.- Specified by:
getEstimatedMzxin interfaceGyroscopeCalibrator- Returns:
- estimated gyroscope z-x cross-coupling error or null if not available.
-
getEstimatedMzy
Gets estimated gyroscope z-y cross-coupling error.- Specified by:
getEstimatedMzyin interfaceGyroscopeCalibrator- Returns:
- estimated gyroscope z-y cross-coupling error or null if not available.
-
getEstimatedGg
public com.irurueta.algebra.Matrix getEstimatedGg()Gets estimated G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. This instance allows any 3x3 matrix.- Specified by:
getEstimatedGgin interfaceGyroscopeCalibrator- Returns:
- estimated G-dependent cross biases.
-
getEstimatedCovariance
public com.irurueta.algebra.Matrix getEstimatedCovariance()Gets estimated covariance matrix for estimated parameters. Diagonal elements of the matrix contains variance for the following parameters (following indicated order): sx, sy, sz, mxy, mxz, myx, myz, mzx, mzy, gg11, gg21, gg31, gg12, gg22, gg32, gg13, gg23, gg33.- Specified by:
getEstimatedCovariancein interfaceGyroscopeNonLinearCalibrator- Returns:
- estimated covariance matrix for estimated parameters.
-
getEstimatedChiSq
public double getEstimatedChiSq()Gets estimated chi square value.- Specified by:
getEstimatedChiSqin interfaceGyroscopeNonLinearCalibrator- Returns:
- estimated chi square value.
-
getEstimatedChiSqDegreesOfFreedom
public int getEstimatedChiSqDegreesOfFreedom()Gets estimated chi square degrees of freedom. Degrees of freedom is equal to the number of sampled data minus the number of estimated parameters.- Specified by:
getEstimatedChiSqDegreesOfFreedomin interfaceGyroscopeNonLinearCalibrator- Returns:
- estimated degrees of freedom of chi square value
-
getEstimatedReducedChiSq
public double getEstimatedReducedChiSq()Gets estimated reduced chi square value. This is equal to estimated chi square value divided by its degrees of freedom. Ideally this value should be close to 1.0, indicating that fit is optimal. A value larger than 1.0 indicates that fit is not good or noise has been underestimated, and a value smaller than 1.0 indicates that there is overfitting or noise has been overestimated.- Specified by:
getEstimatedReducedChiSqin interfaceGyroscopeNonLinearCalibrator- Returns:
- estimated reduced chi square value
-
getEstimatedMse
public double getEstimatedMse()Gets estimated mean square error respect to provided measurements.- Specified by:
getEstimatedMsein interfaceGyroscopeNonLinearCalibrator- Returns:
- estimated mean square error respect to provided measurements.
-
getEstimatedP
public double getEstimatedP()Gets estimated probability of finding a smaller chi square value expressed as a value between 0.0 and 1.0. The smaller the found chi square value is, the better the fit of the estimated parameters to the actual parameter. Thus, the smaller the chance of finding a smaller chi square value, then the better the estimated fit is.- Specified by:
getEstimatedPin interfaceGyroscopeNonLinearCalibrator- Returns:
- estimated probability of finding a smaller chi square value.
-
getEstimatedQ
public double getEstimatedQ()Gets estimated measure of quality of estimated fit as a value between 0.0 and 1.0. The larger the quality value is, the better the fit that has been estimated.- Specified by:
getEstimatedQin interfaceGyroscopeNonLinearCalibrator- Returns:
- estimated measure of quality of estimated fit.
-
getPreliminarySubsetSize
public int getPreliminarySubsetSize()Gets size of subsets to be checked during robust estimation. This has to be at leastgetMinimumRequiredMeasurementsOrSequences().- Returns:
- size of subsets to be checked during robust estimation.
-
setPreliminarySubsetSize
public void setPreliminarySubsetSize(int preliminarySubsetSize) throws com.irurueta.navigation.LockedException Sets size of subsets to be checked during robust estimation. This has to be at leastgetMinimumRequiredMeasurementsOrSequences().- Parameters:
preliminarySubsetSize- size of subsets to be checked during robust estimation.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.IllegalArgumentException- if provided value is less thangetMinimumRequiredMeasurementsOrSequences().
-
getMethod
public abstract com.irurueta.numerical.robust.RobustEstimatorMethod getMethod()Returns method being used for robust estimation.- Returns:
- method being used for robust estimation.
-
create
public static RobustKnownBiasEasyGyroscopeCalibrator create(com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.- Parameters:
method- robust estimator method.- Returns:
- a robust gyroscope calibrator.
-
create
public static RobustKnownBiasEasyGyroscopeCalibrator create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.- Parameters:
sequences- collection of sequences containing timestamped body kinematics measurements.initialBias- initial gyroscope bias to be used to find a solution. This must be 3x1 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.method- robust estimator method.- Returns:
- a robust gyroscope calibrator.
- Throws:
IllegalArgumentException- if any of the provided values does not have proper size.
-
create
public static RobustKnownBiasEasyGyroscopeCalibrator create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.- Parameters:
sequences- collection of sequences containing timestamped body kinematics measurements.initialBias- initial gyroscope bias to be used to find a solution. This must have length 3 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.method- robust estimator method.- Returns:
- a robust gyroscope calibrator.
- Throws:
IllegalArgumentException- if any of the provided values does not have proper size.
-
create
public static RobustKnownBiasEasyGyroscopeCalibrator create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, double[] accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.- Parameters:
sequences- collection of sequences containing timestamped body kinematics measurements.initialBias- initial gyroscope bias to be used to find a solution. This must have length 3 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.accelerometerBias- known accelerometer bias. This must have length 3 and is expressed in meters per squared second (m/s^2).accelerometerMa- known accelerometer scale factors and cross coupling matrix. Must be 3x3.method- robust estimator method.- Returns:
- a robust gyroscope calibrator.
- Throws:
IllegalArgumentException- if any of the provided values does not have proper size.
-
create
public static RobustKnownBiasEasyGyroscopeCalibrator create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.algebra.Matrix accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.- Parameters:
sequences- collection of sequences containing timestamped body kinematics measurements.initialBias- initial gyroscope bias to be used to find a solution. This must be 3x1 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.accelerometerBias- known accelerometer bias. This must be 3x1 and is expressed in meters per squared second (m/s^2).accelerometerMa- known accelerometer scale factors and cross coupling matrix. Must be 3x3.method- robust estimator method.- Returns:
- a robust gyroscope calibrator.
- Throws:
IllegalArgumentException- if any of the provided values does not have proper size.
-
create
public static RobustKnownBiasEasyGyroscopeCalibrator create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.- Parameters:
sequences- collection of sequences containing timestamped body kinematics measurements.commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.estimateGDependentCrossBiases- true if G-dependent cross biases will be estimated, false otherwise.initialBias- initial gyroscope bias to be used to find a solution. This must be 3x1 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.method- robust estimator method.- Returns:
- a robust gyroscope calibrator.
- Throws:
IllegalArgumentException- if any of the provided values does not have proper size.
-
create
public static RobustKnownBiasEasyGyroscopeCalibrator create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.- Parameters:
sequences- collection of sequences containing timestamped body kinematics measurements.commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.estimateGDependentCrossBiases- true if G-dependent cross biases will be estimated, false otherwise.initialBias- initial gyroscope bias to be used to find a solution. This must have length 3 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.method- robust estimator method.- Returns:
- a robust gyroscope calibrator.
- Throws:
IllegalArgumentException- if any of the provided values does not have proper size.
-
create
public static RobustKnownBiasEasyGyroscopeCalibrator create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, double[] accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.- Parameters:
sequences- collection of sequences containing timestamped body kinematics measurements.commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.estimateGDependentCrossBiases- true if G-dependent cross biases will be estimated, false otherwise.initialBias- initial gyroscope bias to be used to find a solution. This must have length 3 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.accelerometerBias- known accelerometer bias. This must have length 3 and is expressed in meters per squared second (m/s^2).accelerometerMa- known accelerometer scale factors and cross coupling matrix. Must be 3x3.method- robust estimator method.- Returns:
- a robust gyroscope calibrator.
- Throws:
IllegalArgumentException- if any of the provided values does not have proper size.
-
create
public static RobustKnownBiasEasyGyroscopeCalibrator create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.algebra.Matrix accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.- Parameters:
sequences- collection of sequences containing timestamped body kinematics measurements.commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.estimateGDependentCrossBiases- true if G-dependent cross biases will be estimated, false otherwise.initialBias- initial gyroscope bias to be used to find a solution. This must be 3x1 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.accelerometerBias- known accelerometer bias. This must have length 3 and is expressed in meters per squared second (m/s^2).accelerometerMa- known accelerometer scale factors and cross coupling matrix. Must be 3x3.method- robust estimator method.- Returns:
- a robust gyroscope calibrator.
- Throws:
IllegalArgumentException- if any of the provided values does not have proper size.
-
create
public static RobustKnownBiasEasyGyroscopeCalibrator create(double[] qualityScores, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.- Parameters:
qualityScores- quality scores corresponding to each provided sequence. The larger the score value the better the quality of the sequence.method- robust estimator method.- Returns:
- a robust gyroscope calibrator.
- Throws:
IllegalArgumentException- if provided quality scores length is smaller than 10.
-
create
public static RobustKnownBiasEasyGyroscopeCalibrator create(double[] qualityScores, List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.- Parameters:
qualityScores- quality scores corresponding to each provided sequence. The larger the score value the better the quality of the sequence.sequences- collection of sequences containing timestamped body kinematics measurements.initialBias- initial gyroscope bias to be used to find a solution. This must be 3x1 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.method- robust estimator method.- Returns:
- a robust gyroscope calibrator.
- Throws:
IllegalArgumentException- if any of the provided values does not have proper size or if provided quality scores length is smaller than 10.
-
create
public static RobustKnownBiasEasyGyroscopeCalibrator create(double[] qualityScores, List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.- Parameters:
qualityScores- quality scores corresponding to each provided sequence. The larger the score value the better the quality of the sequence.sequences- collection of sequences containing timestamped body kinematics measurements.initialBias- initial gyroscope bias to be used to find a solution. This must have length 3 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.method- robust estimator method.- Returns:
- a robust gyroscope calibrator.
- Throws:
IllegalArgumentException- if any of the provided values does not have proper size or if provided quality scores length is smaller than 10.
-
create
public static RobustKnownBiasEasyGyroscopeCalibrator create(double[] qualityScores, List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, double[] accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.- Parameters:
qualityScores- quality scores corresponding to each provided sequence. The larger the score value the better the quality of the sequence.sequences- collection of sequences containing timestamped body kinematics measurements.initialBias- initial gyroscope bias to be used to find a solution. This must have length 3 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.accelerometerBias- known accelerometer bias. This must have length 3 and is expressed in meters per squared second (m/s^2).accelerometerMa- known accelerometer scale factors and cross coupling matrix. Must be 3x3.method- robust estimator method.- Returns:
- a robust gyroscope calibrator.
- Throws:
IllegalArgumentException- if any of the provided values does not have proper size or if provided quality scores length is smaller than 10.
-
create
public static RobustKnownBiasEasyGyroscopeCalibrator create(double[] qualityScores, List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.algebra.Matrix accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.- Parameters:
qualityScores- quality scores corresponding to each provided sequence. The larger the score value the better the quality of the sequence.sequences- collection of sequences containing timestamped body kinematics measurements.initialBias- initial gyroscope bias to be used to find a solution. This must be 3x1 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.accelerometerBias- known accelerometer bias. This must be 3x1 and is expressed in meters per squared second (m/s^2).accelerometerMa- known accelerometer scale factors and cross coupling matrix. Must be 3x3.method- robust estimator method.- Returns:
- a robust gyroscope calibrator.
- Throws:
IllegalArgumentException- if any of the provided values does not have proper size or if provided quality scores length is smaller than 10.
-
create
public static RobustKnownBiasEasyGyroscopeCalibrator create(double[] qualityScores, List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.- Parameters:
qualityScores- quality scores corresponding to each provided sequence. The larger the score value the better the quality of the sequence.sequences- collection of sequences containing timestamped body kinematics measurements.commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.estimateGDependentCrossBiases- true if G-dependent cross biases will be estimated, false otherwise.initialBias- initial gyroscope bias to be used to find a solution. This must be 3x1 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.method- robust estimator method.- Returns:
- a robust gyroscope calibrator.
- Throws:
IllegalArgumentException- if any of the provided values does not have proper size or if provided quality scores length is smaller than 10.
-
create
public static RobustKnownBiasEasyGyroscopeCalibrator create(double[] qualityScores, List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.- Parameters:
qualityScores- quality scores corresponding to each provided sequence. The larger the score value the better the quality of the sequence.sequences- collection of sequences containing timestamped body kinematics measurements.commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.estimateGDependentCrossBiases- true if G-dependent cross biases will be estimated, false otherwise.initialBias- initial gyroscope bias to be used to find a solution. This must have length 3 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.method- robust estimator method.- Returns:
- a robust gyroscope calibrator.
- Throws:
IllegalArgumentException- if any of the provided values does not have proper size or if provided quality scores length is smaller than 10.
-
create
public static RobustKnownBiasEasyGyroscopeCalibrator create(double[] qualityScores, List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, double[] accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.- Parameters:
qualityScores- quality scores corresponding to each provided sequence. The larger the score value the better the quality of the sequence.sequences- collection of sequences containing timestamped body kinematics measurements.commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.estimateGDependentCrossBiases- true if G-dependent cross biases will be estimated, false otherwise.initialBias- initial gyroscope bias to be used to find a solution. This must have length 3 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.accelerometerBias- known accelerometer bias. This must have length 3 and is expressed in meters per squared second (m/s^2).accelerometerMa- known accelerometer scale factors and cross coupling matrix. Must be 3x3.method- robust estimator method.- Returns:
- a robust gyroscope calibrator.
- Throws:
IllegalArgumentException- if any of the provided values does not have proper size or if provided quality scores length is smaller than 10.
-
create
public static RobustKnownBiasEasyGyroscopeCalibrator create(double[] qualityScores, List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.algebra.Matrix accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa, com.irurueta.numerical.robust.RobustEstimatorMethod method) Creates a robust gyroscope calibrator.- Parameters:
qualityScores- quality scores corresponding to each provided sequence. The larger the score value the better the quality of the sequence.sequences- collection of sequences containing timestamped body kinematics measurements.commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.estimateGDependentCrossBiases- true if G-dependent cross biases will be estimated, false otherwise.initialBias- initial gyroscope bias to be used to find a solution. This must be 3x1 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.accelerometerBias- known accelerometer bias. This must have length 3 and is expressed in meters per squared second (m/s^2).accelerometerMa- known accelerometer scale factors and cross coupling matrix. Must be 3x3.method- robust estimator method.- Returns:
- a robust gyroscope calibrator.
- Throws:
IllegalArgumentException- if any of the provided values does not have proper size or if provided quality scores length is smaller than 10.
-
create
Creates a robust gyroscope calibrator using default robust method.- Returns:
- a robust gyroscope calibrator.
-
create
public static RobustKnownBiasEasyGyroscopeCalibrator create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg) Creates a robust gyroscope calibrator using default robust method.- Parameters:
sequences- collection of sequences containing timestamped body kinematics measurements.initialBias- initial gyroscope bias to be used to find a solution. This must be 3x1 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.- Returns:
- a robust gyroscope calibrator.
- Throws:
IllegalArgumentException- if any of the provided values does not have proper size.
-
create
public static RobustKnownBiasEasyGyroscopeCalibrator create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg) Creates a robust gyroscope calibrator using default robust method.- Parameters:
sequences- collection of sequences containing timestamped body kinematics measurements.initialBias- initial gyroscope bias to be used to find a solution. This must have length 3 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.- Returns:
- a robust gyroscope calibrator.
- Throws:
IllegalArgumentException- if any of the provided values does not have proper size.
-
create
public static RobustKnownBiasEasyGyroscopeCalibrator create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, double[] accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa) Creates a robust gyroscope calibrator using default robust method.- Parameters:
sequences- collection of sequences containing timestamped body kinematics measurements.initialBias- initial gyroscope bias to be used to find a solution. This must have length 3 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.accelerometerBias- known accelerometer bias. This must have length 3 and is expressed in meters per squared second (m/s^2).accelerometerMa- known accelerometer scale factors and cross coupling matrix. Must be 3x3.- Returns:
- a robust gyroscope calibrator.
- Throws:
IllegalArgumentException- if any of the provided values does not have proper size.
-
create
public static RobustKnownBiasEasyGyroscopeCalibrator create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.algebra.Matrix accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa) Creates a robust gyroscope calibrator using default robust method.- Parameters:
sequences- collection of sequences containing timestamped body kinematics measurements.initialBias- initial gyroscope bias to be used to find a solution. This must be 3x1 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.accelerometerBias- known accelerometer bias. This must be 3x1 and is expressed in meters per squared second (m/s^2).accelerometerMa- known accelerometer scale factors and cross coupling matrix. Must be 3x3.- Returns:
- a robust gyroscope calibrator.
- Throws:
IllegalArgumentException- if any of the provided values does not have proper size.
-
create
public static RobustKnownBiasEasyGyroscopeCalibrator create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg) Creates a robust gyroscope calibrator using default robust method.- Parameters:
sequences- collection of sequences containing timestamped body kinematics measurements.commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.estimateGDependentCrossBiases- true if G-dependent cross biases will be estimated, false otherwise.initialBias- initial gyroscope bias to be used to find a solution. This must be 3x1 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.- Returns:
- a robust gyroscope calibrator.
- Throws:
IllegalArgumentException- if any of the provided values does not have proper size.
-
create
public static RobustKnownBiasEasyGyroscopeCalibrator create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg) Creates a robust gyroscope calibrator using default robust method.- Parameters:
sequences- collection of sequences containing timestamped body kinematics measurements.commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.estimateGDependentCrossBiases- true if G-dependent cross biases will be estimated, false otherwise.initialBias- initial gyroscope bias to be used to find a solution. This must have length 3 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.- Returns:
- a robust gyroscope calibrator.
- Throws:
IllegalArgumentException- if any of the provided values does not have proper size.
-
create
public static RobustKnownBiasEasyGyroscopeCalibrator create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, double[] initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, double[] accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa) Creates a robust gyroscope calibrator using default robust method.- Parameters:
sequences- collection of sequences containing timestamped body kinematics measurements.commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.estimateGDependentCrossBiases- true if G-dependent cross biases will be estimated, false otherwise.initialBias- initial gyroscope bias to be used to find a solution. This must have length 3 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.accelerometerBias- known accelerometer bias. This must have length 3 and is expressed in meters per squared second (m/s^2).accelerometerMa- known accelerometer scale factors and cross coupling matrix. Must be 3x3.- Returns:
- a robust gyroscope calibrator.
- Throws:
IllegalArgumentException- if any of the provided values does not have proper size.
-
create
public static RobustKnownBiasEasyGyroscopeCalibrator create(List<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> sequences, boolean commonAxisUsed, boolean estimateGDependentCrossBiases, com.irurueta.algebra.Matrix initialBias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, com.irurueta.algebra.Matrix accelerometerBias, com.irurueta.algebra.Matrix accelerometerMa) Creates a robust gyroscope calibrator using default robust method.- Parameters:
sequences- collection of sequences containing timestamped body kinematics measurements.commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.estimateGDependentCrossBiases- true if G-dependent cross biases will be estimated, false otherwise.initialBias- initial gyroscope bias to be used to find a solution. This must be 3x1 and is expressed in radians per second (rad/s).initialMg- initial gyroscope scale factors and cross coupling errors matrix. Must be 3x3.initialGg- initial gyroscope G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer. Must be 3x3.accelerometerBias- known accelerometer bias. This must have length 3 and is expressed in meters per squared second (m/s^2).accelerometerMa- known accelerometer scale factors and cross coupling matrix. Must be 3x3.- Returns:
- a robust gyroscope calibrator.
- Throws:
IllegalArgumentException- if any of the provided values does not have proper size.
-
setupAccelerationFixer
protected void setupAccelerationFixer() throws com.irurueta.algebra.AlgebraExceptionConfigures acceleration fixer- Throws:
com.irurueta.algebra.AlgebraException- if provided accelerometer parameters are numerically unstable.
-
computePreliminarySolutions
protected void computePreliminarySolutions(int[] samplesIndices, List<RobustKnownBiasEasyGyroscopeCalibrator.PreliminaryResult> solutions) Computes a preliminary solution for a subset of samples picked by a robust estimator.- Parameters:
samplesIndices- indices of samples picked by the robust estimator.solutions- list where estimated preliminary solution will be stored.
-
convertAcceleration
private static double convertAcceleration(com.irurueta.units.Acceleration acceleration) Converts acceleration instance to meters per squared second.- Parameters:
acceleration- acceleration instance to be converted.- Returns:
- converted value.
-
convertAngularSpeed
private static double convertAngularSpeed(double value, com.irurueta.units.AngularSpeedUnit unit) Converts angular speed instance to radians per second (rad/s).- Parameters:
value- angular speed value.unit- unit of angular speed value.- Returns:
- converted value.
-
convertAngularSpeed
private static double convertAngularSpeed(com.irurueta.units.AngularSpeed angularSpeed) Converts angular speed instance to radians per second (rad/s).- Parameters:
angularSpeed- angular speed instance to be converted.- Returns:
- converted value.
-