Class KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
java.lang.Object
com.irurueta.navigation.inertial.calibration.gyroscope.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
- All Implemented Interfaces:
GyroscopeCalibrator,GyroscopeNonLinearCalibrator,KnownBiasAndFrameGyroscopeCalibrator<StandardDeviationFrameBodyKinematics,,KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener> KnownBiasGyroscopeCalibrator,UnorderedStandardDeviationFrameBodyKinematicsGyroscopeCalibrator
public class KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
extends Object
implements KnownBiasAndFrameGyroscopeCalibrator<StandardDeviationFrameBodyKinematics,KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener>, GyroscopeNonLinearCalibrator, UnorderedStandardDeviationFrameBodyKinematicsGyroscopeCalibrator
Estimates 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 uses an iterative approach to find a minimum least squared error solution.
To use this calibrator at least 6 measurements at different known frames must be provided. In other words, accelerometer and gyroscope (i.e. body kinematics) samples must be obtained at 6 different positions, orientations and velocities (although typically velocities are always zero).
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.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleKnown x coordinate of gyroscope bias expressed in radians per second (rad/s).private doubleKnown y coordinate of gyroscope bias expressed in radians per second (rad/s).private doubleKnown z coordinate of gyroscope bias expressed in radians per second (rad/s).private static final intNumber of unknowns when common z-axis is assumed for both the accelerometer and gyroscope.private booleanThis flag indicates whether z-axis is assumed to be common for accelerometer and gyroscope.static final booleanIndicates whether by default a common z-axis is assumed for both the accelerometer and gyroscope.private doubleEstimated chi square value.private intEstimated degrees of freedom of chi square value.private com.irurueta.algebra.MatrixEstimated covariance matrix for estimated position.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 final com.irurueta.numerical.fitting.LevenbergMarquardtMultiVariateFitterLevenberg-Marquardt fitter to find a non-linear solution.private static final intNumber of unknowns for the general case.private com.irurueta.algebra.MatrixInitial G-dependent cross biases introduced on the gyroscope by the specific forces sensed by the accelerometer.private doubleInitial x-y cross coupling error.private doubleInitial x-z cross coupling error.private doubleInitial y-x cross coupling error.private doubleInitial y-z cross coupling error.private doubleInitial z-x cross coupling error.private doubleInitial z-y cross coupling error.private doubleInitial x scaling factor.private doubleInitial y scaling factor.private doubleInitial z scaling factor.Listener to handle events raised by this calibrator.Contains a collections of body kinematics measurements taken at different frames (positions, orientations and velocities) and containing the standard deviations of accelerometer and gyroscope measurements.static final intRequired minimum number of measurements.private booleanIndicates whether calibrator is running. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, double[] bias) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, double[] bias, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, double biasX, double biasY, double biasZ) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, double biasX, double biasY, double biasZ, double initialSx, double initialSy, double initialSz) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, double biasX, double biasY, double biasZ, double initialSx, double initialSy, double initialSz, double initialMxy, double initialMxz, double initialMyx, double initialMyz, double initialMzx, double initialMzy) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, double biasX, double biasY, double biasZ, double initialSx, double initialSy, double initialSz, double initialMxy, double initialMxz, double initialMyx, double initialMyz, double initialMzx, double initialMzy, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, double biasX, double biasY, double biasZ, double initialSx, double initialSy, double initialSz, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, double biasX, double biasY, double biasZ, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, com.irurueta.algebra.Matrix bias) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, com.irurueta.algebra.Matrix bias, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ, double initialSx, double initialSy, double initialSz) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ, double initialSx, double initialSy, double initialSz, double initialMxy, double initialMxz, double initialMyx, double initialMyz, double initialMzx, double initialMzy) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ, double initialSx, double initialSy, double initialSz, double initialMxy, double initialMxz, double initialMyx, double initialMyz, double initialMzx, double initialMzy, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ, double initialSx, double initialSy, double initialSz, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(double[] bias) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(double[] bias, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(double biasX, double biasY, double biasZ) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(double biasX, double biasY, double biasZ, double initialSx, double initialSy, double initialSz) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(double biasX, double biasY, double biasZ, double initialSx, double initialSy, double initialSz, double initialMxy, double initialMxz, double initialMyx, double initialMyz, double initialMzx, double initialMzy) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(double biasX, double biasY, double biasZ, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(com.irurueta.algebra.Matrix bias) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(com.irurueta.algebra.Matrix bias, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ, double initialSx, double initialSy, double initialSz) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ, double initialSx, double initialSy, double initialSz, double initialMxy, double initialMxz, double initialMyx, double initialMyz, double initialMzx, double initialMzy) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ, double initialSx, double initialSy, double initialSz, double initialMxy, double initialMxz, double initialMyx, double initialMyz, double initialMzx, double initialMzy, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ, double initialSx, double initialSy, double initialSz, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, double[] bias) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, double[] bias, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, double biasX, double biasY, double biasZ) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, double biasX, double biasY, double biasZ, double initialSx, double initialSy, double initialSz) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, double biasX, double biasY, double biasZ, double initialSx, double initialSy, double initialSz, double initialMxy, double initialMxz, double initialMyx, double initialMyz, double initialMzx, double initialMzy) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, double biasX, double biasY, double biasZ, double initialSx, double initialSy, double initialSz, double initialMxy, double initialMxz, double initialMyx, double initialMyz, double initialMzx, double initialMzy, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, double biasX, double biasY, double biasZ, double initialSx, double initialSy, double initialSz, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, double biasX, double biasY, double biasZ, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, com.irurueta.algebra.Matrix bias) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, com.irurueta.algebra.Matrix bias, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ, double initialSx, double initialSy, double initialSz) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ, double initialSx, double initialSy, double initialSz, double initialMxy, double initialMxz, double initialMyx, double initialMyz, double initialMzx, double initialMzy) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ, double initialSx, double initialSy, double initialSz, double initialMxy, double initialMxz, double initialMyx, double initialMyz, double initialMzx, double initialMzy, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ, double initialSx, double initialSy, double initialSz, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, double[] bias) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, double[] bias, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, double biasX, double biasY, double biasZ) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, double biasX, double biasY, double biasZ, double initialSx, double initialSy, double initialSz) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, double biasX, double biasY, double biasZ, double initialSx, double initialSy, double initialSz, double initialMxy, double initialMxz, double initialMyx, double initialMyz, double initialMzx, double initialMzy) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, double biasX, double biasY, double biasZ, double initialSx, double initialSy, double initialSz, double initialMxy, double initialMxz, double initialMyx, double initialMyz, double initialMzx, double initialMzy, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, double biasX, double biasY, double biasZ, double initialSx, double initialSy, double initialSz, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, double biasX, double biasY, double biasZ, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, com.irurueta.algebra.Matrix bias) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, com.irurueta.algebra.Matrix bias, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ, double initialSx, double initialSy, double initialSz) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ, double initialSx, double initialSy, double initialSz, double initialMxy, double initialMxz, double initialMyx, double initialMyz, double initialMzx, double initialMzy) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ, double initialSx, double initialSy, double initialSz, double initialMxy, double initialMxz, double initialMyx, double initialMyz, double initialMzx, double initialMzy, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ, double initialSx, double initialSy, double initialSz, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor.KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ, KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener listener) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidEstimates gyroscope calibration parameters containing bias, scale factors, cross-coupling errors and g-dependant cross biases.private voidInternal method to perform calibration when common z-axis is assumed for both the accelerometer and gyroscope.private voidInternal method to perform general calibration.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).double[]getBias()Gets known gyroscope bias as an array.voidgetBias(double[] result) Gets known gyroscope bias as an array.com.irurueta.units.AngularSpeedGets known x coordinate of gyroscope bias.voidgetBiasAngularSpeedX(com.irurueta.units.AngularSpeed result) Gets known x coordinate of gyroscope bias.com.irurueta.units.AngularSpeedGets known y coordinate of gyroscope bias.voidgetBiasAngularSpeedY(com.irurueta.units.AngularSpeed result) Gets known y coordinate of gyroscope bias.com.irurueta.units.AngularSpeedGets known z coordinate of gyroscope bias.voidgetBiasAngularSpeedZ(com.irurueta.units.AngularSpeed result) Gets known z coordinate of gyroscope bias.com.irurueta.algebra.MatrixGets known gyroscope bias as a column matrix.voidgetBiasAsMatrix(com.irurueta.algebra.Matrix result) Gets known gyroscope bias as a column matrix.Gets known gyroscope bias.voidgetBiasAsTriad(AngularSpeedTriad result) Gets known gyroscope bias.doublegetBiasX()Gets known x coordinate of gyroscope bias expressed in radians per second (rad/s).doublegetBiasY()Gets known y coordinate of gyroscope bias expressed in radians per second (rad/s).doublegetBiasZ()Gets known z coordinate of gyroscope bias expressed in radians per second (rad/s).doubleGets estimated chi square value.intGets estimated chi square degrees of freedom.com.irurueta.algebra.MatrixGets estimated covariance matrix for estimated position.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 x-y cross-coupling error.Gets estimated x-z cross-coupling error.Gets estimated y-x cross-coupling error.Gets estimated y-z cross-coupling error.Gets estimated z-x cross-coupling error.Gets estimated 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 x-axis scale factor.Gets estimated y-axis scale factor.Gets estimated 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 scale factors and cross coupling errors matrix.voidgetInitialMg(com.irurueta.algebra.Matrix result) Gets initial scale factors and cross coupling errors matrix.doubleGets initial x-y cross coupling error.doubleGets initial x-z cross coupling error.doubleGets initial y-x cross coupling error.doubleGets initial y-z cross coupling error.doubleGets initial z-x cross coupling error.doubleGets initial z-y cross coupling error.doubleGets initial x scaling factor.doubleGets initial y scaling factor.doubleGets initial z scaling factor.Gets listener to handle events raised by this calibrator.Indicates the type of measurement or sequence used by this calibrator.Gets a collection of body kinematics measurements taken at different frames (positions, orientations and velocities).intGets minimum number of required measurements.booleanIndicates whether z-axis is assumed to be common for accelerometer and gyroscope.booleanIndicates whether this calibrator requires ordered measurements or sequences in a list or not.booleanIndicates whether this calibrator requires quality scores for each measurement/sequence or not.booleanisReady()Indicates whether calibrator is ready to start the calibration.booleanIndicates whether calibrator is currently running or not.voidsetBias(double[] bias) Sets known gyroscope bias as an array.voidsetBias(com.irurueta.algebra.Matrix bias) Sets known gyroscope bias as a column matrix.voidsetBias(AngularSpeedTriad bias) Sets known gyroscope bias.voidsetBiasCoordinates(double biasX, double biasY, double biasZ) Sets known gyroscope bias coordinates 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 gyroscope bias coordinates.voidsetBiasX(double biasX) Sets known x coordinate of gyroscope bias expressed in radians per second (rad/s).voidsetBiasX(com.irurueta.units.AngularSpeed biasX) Sets known x coordinate of gyroscope bias.voidsetBiasY(double biasY) Sets known y coordinate of gyroscope bias expressed in radians per second (rad/s).voidsetBiasY(com.irurueta.units.AngularSpeed biasY) Sets known y coordinate of gyroscope bias.voidsetBiasZ(double biasZ) Sets known z coordinate of gyroscope bias expressed in radians per second (rad/s).voidsetBiasZ(com.irurueta.units.AngularSpeed biasZ) Sets known z coordinate of gyroscope bias.voidsetCommonAxisUsed(boolean commonAxisUsed) Specifies whether z-axis is assumed to be common for accelerometer and gyroscope.voidsetInitialCrossCouplingErrors(double initialMxy, double initialMxz, double initialMyx, double initialMyz, double initialMzx, double initialMzy) Sets initial cross coupling errors.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 scale factors and cross coupling errors matrix.voidsetInitialMxy(double initialMxy) Sets initial x-y cross coupling error.voidsetInitialMxz(double initialMxz) Sets initial x-z cross coupling error.voidsetInitialMyx(double initialMyx) Sets initial y-x cross coupling error.voidsetInitialMyz(double initialMyz) Sets initial y-z cross coupling error.voidsetInitialMzx(double initialMzx) Sets initial z-x cross coupling error.voidsetInitialMzy(double initialMzy) Sets initial z-y cross coupling error.voidsetInitialScalingFactors(double initialSx, double initialSy, double initialSz) Sets initial scaling factors.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.voidsetInitialSx(double initialSx) Sets initial x scaling factor.voidsetInitialSy(double initialSy) Sets initial y scaling factor.voidsetInitialSz(double initialSz) Sets initial z scaling factor.private voidSets input data into Levenberg-Marquardt fitter.voidSets listener to handle events raised by this calibrator.voidsetMeasurements(Collection<? extends StandardDeviationFrameBodyKinematics> measurements) Sets a collection of body kinematics measurements taken at different frames (positions, orientations and velocities).
-
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:
-
MINIMUM_MEASUREMENTS
public static final int MINIMUM_MEASUREMENTSRequired minimum number of measurements.- See Also:
-
COMMON_Z_AXIS_UNKNOWNS
private static final int COMMON_Z_AXIS_UNKNOWNSNumber of unknowns when common z-axis is assumed for both the accelerometer and gyroscope.- See Also:
-
GENERAL_UNKNOWNS
private static final int GENERAL_UNKNOWNSNumber of unknowns for the general case.- See Also:
-
fitter
private final com.irurueta.numerical.fitting.LevenbergMarquardtMultiVariateFitter fitterLevenberg-Marquardt fitter to find a non-linear solution. -
initialSx
private double initialSxInitial x scaling factor. -
initialSy
private double initialSyInitial y scaling factor. -
initialSz
private double initialSzInitial z scaling factor. -
initialMxy
private double initialMxyInitial x-y cross coupling error. -
initialMxz
private double initialMxzInitial x-z cross coupling error. -
initialMyx
private double initialMyxInitial y-x cross coupling error. -
initialMyz
private double initialMyzInitial y-z cross coupling error. -
initialMzx
private double initialMzxInitial z-x cross coupling error. -
initialMzy
private double initialMzyInitial 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. -
measurements
Contains a collections of body kinematics measurements taken at different frames (positions, orientations and velocities) and containing the standard deviations of accelerometer and gyroscope measurements. If a single device IMU needs to be calibrated, typically all measurements are taken at the same position, with zero velocity and multiple orientations. However, if we just want to calibrate a given IMU model (e.g. obtain an average and less precise calibration for the IMU of a given phone model), we could take measurements collected throughout the planet at multiple positions while the phone remains static (e.g. while charging), hence each measurement position will change, velocity will remain zero and orientation will be typically constant at horizontal orientation while the phone remains on a flat surface. -
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 Ma matrix. -
listener
Listener to handle events raised by this calibrator. -
biasX
private double biasXKnown x coordinate of gyroscope bias expressed in radians per second (rad/s). -
biasY
private double biasYKnown y coordinate of gyroscope bias expressed in radians per second (rad/s). -
biasZ
private double biasZKnown z coordinate of gyroscope bias expressed in radians per second (rad/s). -
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 position. -
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
private boolean runningIndicates whether calibrator is running.
-
-
Constructor Details
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator()Constructor. -
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements) Constructor.- Parameters:
measurements- collection of body kinematics measurements with standard deviations taken at different frames (positions, orientations and velocities).
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed) Constructor.- Parameters:
commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed) Constructor.- Parameters:
measurements- collection of body kinematics measurements with standard deviations taken at different frames (positions, orientations and velocities).commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(double biasX, double biasY, double biasZ) Constructor.- Parameters:
biasX- known x coordinate of gyroscope bias expressed in radians per second (rad/s).biasY- known y coordinate of gyroscope bias expressed in radians per second (rad/s).biasZ- known z coordinate of gyroscope bias expressed in radians per second (rad/s).
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, double biasX, double biasY, double biasZ) Constructor.- Parameters:
measurements- collection of body kinematics measurements with standard deviations taken at different frames (positions, orientations and velocities).biasX- known x coordinate of gyroscope bias expressed in radians per second (rad/s).biasY- known y coordinate of gyroscope bias expressed in radians per second (rad/s).biasZ- known z coordinate of gyroscope bias expressed in radians per second (rad/s).
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, double biasX, double biasY, double biasZ) Constructor.- Parameters:
commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.biasX- known x coordinate of gyroscope bias expressed in radians per second (rad/s).biasY- known y coordinate of gyroscope bias expressed in radians per second (rad/s).biasZ- known z coordinate of gyroscope bias expressed in radians per second (rad/s).
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, double biasX, double biasY, double biasZ) Constructor.- Parameters:
measurements- collection of body kinematics measurements with standard deviations taken at different frames (positions, orientations and velocities).commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.biasX- known x coordinate of gyroscope bias expressed in radians per second (rad/s).biasY- known y coordinate of gyroscope bias expressed in radians per second (rad/s).biasZ- known z coordinate of gyroscope bias expressed in radians per second (rad/s).
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ) Constructor.- Parameters:
biasX- known x coordinate of gyroscope bias.biasY- known y coordinate of gyroscope bias.biasZ- known z coordinate of gyroscope bias.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ) Constructor.- Parameters:
measurements- collection of body kinematics measurements with standard deviations taken at different frames (positions, orientations and velocities).biasX- known x coordinate of gyroscope bias.biasY- known y coordinate of gyroscope bias.biasZ- known z coordinate of gyroscope bias.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ) Constructor.- Parameters:
commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.biasX- known x coordinate of gyroscope bias.biasY- known y coordinate of gyroscope bias.biasZ- known z coordinate of gyroscope bias.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ) Constructor.- Parameters:
measurements- collection of body kinematics measurements with standard deviations taken at different frames (positions, orientations and velocities).commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.biasX- known x coordinate of gyroscope bias.biasY- known y coordinate of gyroscope bias.biasZ- known z coordinate of gyroscope bias.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(double biasX, double biasY, double biasZ, double initialSx, double initialSy, double initialSz) Constructor.- Parameters:
biasX- known x coordinate of gyroscope bias expressed in radians per second (rad/s).biasY- known y coordinate of gyroscope bias expressed in radians per second (rad/s).biasZ- known z coordinate of gyroscope bias expressed in radians per second (rad/s).initialSx- initial x scaling factor.initialSy- initial y scaling factor.initialSz- initial z scaling factor.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, double biasX, double biasY, double biasZ, double initialSx, double initialSy, double initialSz) Constructor.- Parameters:
measurements- collection of body kinematics measurements with standard deviations taken at different frames (positions, orientations and velocities).biasX- known x coordinate of gyroscope bias expressed in radians per second (rad/s).biasY- known y coordinate of gyroscope bias expressed in radians per second (rad/s).biasZ- known z coordinate of gyroscope bias expressed in radians per second (rad/s).initialSx- initial x scaling factor.initialSy- initial y scaling factor.initialSz- initial z scaling factor.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, double biasX, double biasY, double biasZ, double initialSx, double initialSy, double initialSz) Constructor.- Parameters:
commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.biasX- known x coordinate of gyroscope bias expressed in radians per second (rad/s).biasY- known y coordinate of gyroscope bias expressed in radians per second (rad/s).biasZ- known z coordinate of gyroscope bias expressed in radians per second (rad/s).initialSx- initial x scaling factor.initialSy- initial y scaling factor.initialSz- initial z scaling factor.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, double biasX, double biasY, double biasZ, double initialSx, double initialSy, double initialSz) Constructor.- Parameters:
measurements- collection of body kinematics measurements with standard deviations taken at different frames (positions, orientations and velocities).commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.biasX- known x coordinate of gyroscope bias expressed in radians per second (rad/s).biasY- known y coordinate of gyroscope bias expressed in radians per second (rad/s).biasZ- known z coordinate of gyroscope bias expressed in radians per second (rad/s).initialSx- initial x scaling factor.initialSy- initial y scaling factor.initialSz- initial z scaling factor.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ, double initialSx, double initialSy, double initialSz) Constructor.- Parameters:
biasX- known x coordinate of gyroscope bias.biasY- known y coordinate of gyroscope bias.biasZ- known z coordinate of gyroscope bias.initialSx- initial x scaling factor.initialSy- initial y scaling factor.initialSz- initial z scaling factor.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ, double initialSx, double initialSy, double initialSz) Constructor.- Parameters:
measurements- collection of body kinematics measurements with standard deviations taken at different frames (positions, orientations and velocities).biasX- known x coordinate of gyroscope bias.biasY- known y coordinate of gyroscope bias.biasZ- known z coordinate of gyroscope bias.initialSx- initial x scaling factor.initialSy- initial y scaling factor.initialSz- initial z scaling factor.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ, double initialSx, double initialSy, double initialSz) Constructor.- Parameters:
commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.biasX- known x coordinate of gyroscope bias.biasY- known y coordinate of gyroscope bias.biasZ- known z coordinate of gyroscope bias.initialSx- initial x scaling factor.initialSy- initial y scaling factor.initialSz- initial z scaling factor.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ, double initialSx, double initialSy, double initialSz) Constructor.- Parameters:
measurements- collection of body kinematics measurements with standard deviations taken at different frames (positions, orientations and velocities).commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.biasX- known x coordinate of gyroscope bias.biasY- known y coordinate of gyroscope bias.biasZ- known z coordinate of gyroscope bias.initialSx- initial x scaling factor.initialSy- initial y scaling factor.initialSz- initial z scaling factor.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(double biasX, double biasY, double biasZ, double initialSx, double initialSy, double initialSz, double initialMxy, double initialMxz, double initialMyx, double initialMyz, double initialMzx, double initialMzy) Constructor.- Parameters:
biasX- known x coordinate of gyroscope bias expressed in radians per second (rad/s).biasY- known y coordinate of gyroscope bias expressed in radians per second (rad/s).biasZ- known z coordinate of gyroscope bias expressed in radians per second (rad/s).initialSx- initial x scaling factor.initialSy- initial y scaling factor.initialSz- initial z scaling factor.initialMxy- initial x-y cross coupling error.initialMxz- initial x-z cross coupling error.initialMyx- initial y-x cross coupling error.initialMyz- initial y-z cross coupling error.initialMzx- initial z-x cross coupling error.initialMzy- initial z-y cross coupling error.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, double biasX, double biasY, double biasZ, double initialSx, double initialSy, double initialSz, double initialMxy, double initialMxz, double initialMyx, double initialMyz, double initialMzx, double initialMzy) Constructor.- Parameters:
measurements- collection of body kinematics measurements with standard deviations taken at different frames (positions, orientations and velocities).biasX- known x coordinate of gyroscope bias expressed in radians per second (rad/s).biasY- known y coordinate of gyroscope bias expressed in radians per second (rad/s).biasZ- known z coordinate of gyroscope bias expressed in radians per second (rad/s).initialSx- initial x scaling factor.initialSy- initial y scaling factor.initialSz- initial z scaling factor.initialMxy- initial x-y cross coupling error.initialMxz- initial x-z cross coupling error.initialMyx- initial y-x cross coupling error.initialMyz- initial y-z cross coupling error.initialMzx- initial z-x cross coupling error.initialMzy- initial z-y cross coupling error.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, double biasX, double biasY, double biasZ, double initialSx, double initialSy, double initialSz, double initialMxy, double initialMxz, double initialMyx, double initialMyz, double initialMzx, double initialMzy) Constructor.- Parameters:
commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.biasX- known x coordinate of gyroscope bias expressed in radians per second (rad/s).biasY- known y coordinate of gyroscope bias expressed in radians per second (rad/s).biasZ- known z coordinate of gyroscope bias expressed in radians per second (rad/s).initialSx- initial x scaling factor.initialSy- initial y scaling factor.initialSz- initial z scaling factor.initialMxy- initial x-y cross coupling error.initialMxz- initial x-z cross coupling error.initialMyx- initial y-x cross coupling error.initialMyz- initial y-z cross coupling error.initialMzx- initial z-x cross coupling error.initialMzy- initial z-y cross coupling error.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, double biasX, double biasY, double biasZ, double initialSx, double initialSy, double initialSz, double initialMxy, double initialMxz, double initialMyx, double initialMyz, double initialMzx, double initialMzy) Constructor.- Parameters:
measurements- collection of body kinematics measurements with standard deviations taken at different frames (positions, orientations and velocities).commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.biasX- known x coordinate of gyroscope bias expressed in radians per second (rad/s).biasY- known y coordinate of gyroscope bias expressed in radians per second (rad/s).biasZ- known z coordinate of gyroscope bias expressed in radians per second (rad/s).initialSx- initial x scaling factor.initialSy- initial y scaling factor.initialSz- initial z scaling factor.initialMxy- initial x-y cross coupling error.initialMxz- initial x-z cross coupling error.initialMyx- initial y-x cross coupling error.initialMyz- initial y-z cross coupling error.initialMzx- initial z-x cross coupling error.initialMzy- initial z-y cross coupling error.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ, double initialSx, double initialSy, double initialSz, double initialMxy, double initialMxz, double initialMyx, double initialMyz, double initialMzx, double initialMzy) Constructor.- Parameters:
biasX- known x coordinate of gyroscope bias.biasY- known y coordinate of gyroscope bias.biasZ- known z coordinate of gyroscope bias.initialSx- initial x scaling factor.initialSy- initial y scaling factor.initialSz- initial z scaling factor.initialMxy- initial x-y cross coupling error.initialMxz- initial x-z cross coupling error.initialMyx- initial y-x cross coupling error.initialMyz- initial y-z cross coupling error.initialMzx- initial z-x cross coupling error.initialMzy- initial z-y cross coupling error.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ, double initialSx, double initialSy, double initialSz, double initialMxy, double initialMxz, double initialMyx, double initialMyz, double initialMzx, double initialMzy) Constructor.- Parameters:
measurements- collection of body kinematics measurements with standard deviations taken at different frames (positions, orientations and velocities).biasX- known x coordinate of gyroscope bias.biasY- known y coordinate of gyroscope bias.biasZ- known z coordinate of gyroscope bias.initialSx- initial x scaling factor.initialSy- initial y scaling factor.initialSz- initial z scaling factor.initialMxy- initial x-y cross coupling error.initialMxz- initial x-z cross coupling error.initialMyx- initial y-x cross coupling error.initialMyz- initial y-z cross coupling error.initialMzx- initial z-x cross coupling error.initialMzy- initial z-y cross coupling error.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ, double initialSx, double initialSy, double initialSz, double initialMxy, double initialMxz, double initialMyx, double initialMyz, double initialMzx, double initialMzy) Constructor.- Parameters:
commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.biasX- known x coordinate of gyroscope bias expressed in radians per second (rad/s).biasY- known y coordinate of gyroscope bias expressed in radians per second (rad/s).biasZ- known z coordinate of gyroscope bias expressed in radians per second (rad/s).initialSx- initial x scaling factor.initialSy- initial y scaling factor.initialSz- initial z scaling factor.initialMxy- initial x-y cross coupling error.initialMxz- initial x-z cross coupling error.initialMyx- initial y-x cross coupling error.initialMyz- initial y-z cross coupling error.initialMzx- initial z-x cross coupling error.initialMzy- initial z-y cross coupling error.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, com.irurueta.units.AngularSpeed biasX, com.irurueta.units.AngularSpeed biasY, com.irurueta.units.AngularSpeed biasZ, double initialSx, double initialSy, double initialSz, double initialMxy, double initialMxz, double initialMyx, double initialMyz, double initialMzx, double initialMzy) Constructor.- Parameters:
measurements- collection of body kinematics measurements with standard deviations taken at different frames (positions, orientations and velocities).commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.biasX- known x coordinate of gyroscope bias expressed in radians per second (rad/s).biasY- known y coordinate of gyroscope bias expressed in radians per second (rad/s).biasZ- known z coordinate of gyroscope bias expressed in radians per second (rad/s).initialSx- initial x scaling factor.initialSy- initial y scaling factor.initialSz- initial z scaling factor.initialMxy- initial x-y cross coupling error.initialMxz- initial x-z cross coupling error.initialMyx- initial y-x cross coupling error.initialMyz- initial y-z cross coupling error.initialMzx- initial z-x cross coupling error.initialMzy- initial z-y cross coupling error.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(double[] bias) Constructor.- Parameters:
bias- known gyroscope bias expressed in radians per second (rad/s). This must have length 3.- Throws:
IllegalArgumentException- if provided bias array does not have length 3.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, double[] bias) Constructor.- Parameters:
measurements- collection of body kinematics measurements with standard deviations taken at different frames (positions, orientations and velocities).bias- known gyroscope bias expressed in radians per second (rad/s). This must have length 3.- Throws:
IllegalArgumentException- if provided bias array does not have length 3.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, double[] bias) Constructor.- Parameters:
commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.bias- known gyroscope bias expressed in radians per second (rad/s). This must have length 3.- Throws:
IllegalArgumentException- if provided bias array does not have length 3.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, double[] bias) Constructor.- Parameters:
measurements- collection of body kinematics measurements with standard deviations taken at different frames (positions, orientations and velocities).commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.bias- known gyroscope bias expressed in radians per second (rad/s). This must have length 3.- Throws:
IllegalArgumentException- if provided bias array does not have length 3.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(com.irurueta.algebra.Matrix bias) Constructor.- Parameters:
bias- known bias expressed in radians per second (rad/s). This must be 3x1.- Throws:
IllegalArgumentException- if provided bias matrix is not 3x1.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, com.irurueta.algebra.Matrix bias) Constructor.- Parameters:
measurements- collection of body kinematics measurements with standard deviations taken at different frames (positions, orientations and velocities).bias- known bias expressed in radians per second (rad/s). This must be 3x1.- Throws:
IllegalArgumentException- if provided bias matrix is not 3x1.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, com.irurueta.algebra.Matrix bias) Constructor.- Parameters:
commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.bias- known bias expressed in radians per second (rad/s). This must be 3x1.- Throws:
IllegalArgumentException- if provided bias matrix is not 3x1.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, com.irurueta.algebra.Matrix bias) Constructor.- Parameters:
measurements- collection of body kinematics measurements with standard deviations taken at different frames (positions, orientations and velocities).commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.bias- known bias expressed in radians per second (rad/s). This must be 3x1.- Throws:
IllegalArgumentException- if provided bias matrix is not 3x1.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg) Constructor.- Parameters:
bias- known bias expressed in radians per second (rad/s). This must be 3x1.initialMg- initial scale factors and cross coupling errors matrix.- Throws:
IllegalArgumentException- if either provided bias matrix is not 3x1 or scaling and coupling error matrix is not 3x3.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg) Constructor.- Parameters:
measurements- collection of body kinematics measurements with standard deviations taken at different frames (positions, orientations and velocities).bias- known bias expressed in radians per second (rad/s). This must be 3x1.initialMg- initial scale factors and cross coupling errors matrix.- Throws:
IllegalArgumentException- if either provided bias matrix is not 3x1 or scaling and coupling error matrix is not 3x3.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg) Constructor.- Parameters:
commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.bias- known bias expressed in radians per second (rad/s). This must be 3x1.initialMg- initial scale factors and cross coupling errors matrix.- Throws:
IllegalArgumentException- if either provided bias matrix is not 3x1 or scaling and coupling error matrix is not 3x3.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg) Constructor.- Parameters:
measurements- collection of body kinematics measurements with standard deviations taken at different frames (positions, orientations and velocities).commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.bias- known bias expressed in radians per second (rad/s). This must be 3x1.initialMg- initial scale factors and cross coupling errors matrix.- Throws:
IllegalArgumentException- if either provided bias matrix is not 3x1 or scaling and coupling error matrix is not 3x3.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg) Constructor.- Parameters:
bias- known bias expressed in radians per second (rad/s). This must be 3x1.initialMg- initial scale factors and cross coupling errors matrix.initialGg- initial G-dependent cross biases.- Throws:
IllegalArgumentException- if either provided bias matrix is not 3x1, scaling and coupling error matrix is not 3x3 or g-dependant cross biases is not 3x3.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg) Constructor.- Parameters:
measurements- collection of body kinematics measurements with standard deviations taken at different frames (positions, orientations and velocities).bias- known bias expressed in radians per second (rad/s). This must be 3x1.initialMg- initial scale factors and cross coupling errors matrix.initialGg- initial G-dependent cross biases.- Throws:
IllegalArgumentException- if either provided bias matrix is not 3x1, scaling and coupling error matrix is not 3x3 or g-dependant cross biases is not 3x3.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(boolean commonAxisUsed, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg) Constructor.- Parameters:
commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.bias- known bias expressed in radians per second (rad/s). This must be 3x1.initialMg- initial scale factors and cross coupling errors matrix.initialGg- initial G-dependent cross biases.- Throws:
IllegalArgumentException- if either provided bias matrix is not 3x1, scaling and coupling error matrix is not 3x3 or g-dependant cross biases is not 3x3.
-
KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator
public KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibrator(Collection<StandardDeviationFrameBodyKinematics> measurements, boolean commonAxisUsed, com.irurueta.algebra.Matrix bias, com.irurueta.algebra.Matrix initialMg, com.irurueta.algebra.Matrix initialGg) Constructor.- Parameters:
measurements- collection of body kinematics measurements with standard deviations taken at different frames (positions, orientations and velocities).commonAxisUsed- indicates whether z-axis is assumed to be common for accelerometer and gyroscope.bias- known bias expressed in radians per second (rad/s). This must be 3x1.initialMg- initial scale factors and cross coupling errors matrix.initialGg- initial G-dependent cross biases.- Throws:
IllegalArgumentException- if either provided bias matrix is not 3x1, scaling and coupling error matrix is not 3x3 or g-dependant cross biases is not 3x3.
-
-
Method Details
-
getInitialSx
public double getInitialSx()Gets initial x scaling factor.- Specified by:
getInitialSxin interfaceGyroscopeNonLinearCalibrator- Returns:
- initial x scaling factor.
-
setInitialSx
public void setInitialSx(double initialSx) throws com.irurueta.navigation.LockedException Sets initial x scaling factor.- Specified by:
setInitialSxin interfaceGyroscopeNonLinearCalibrator- Parameters:
initialSx- initial x scaling factor.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getInitialSy
public double getInitialSy()Gets initial y scaling factor.- Specified by:
getInitialSyin interfaceGyroscopeNonLinearCalibrator- Returns:
- initial y scaling factor.
-
setInitialSy
public void setInitialSy(double initialSy) throws com.irurueta.navigation.LockedException Sets initial y scaling factor.- Specified by:
setInitialSyin interfaceGyroscopeNonLinearCalibrator- Parameters:
initialSy- initial y scaling factor.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getInitialSz
public double getInitialSz()Gets initial z scaling factor.- Specified by:
getInitialSzin interfaceGyroscopeNonLinearCalibrator- Returns:
- initial z scaling factor.
-
setInitialSz
public void setInitialSz(double initialSz) throws com.irurueta.navigation.LockedException Sets initial z scaling factor.- Specified by:
setInitialSzin interfaceGyroscopeNonLinearCalibrator- Parameters:
initialSz- initial z scaling factor.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getInitialMxy
public double getInitialMxy()Gets initial x-y cross coupling error.- Specified by:
getInitialMxyin interfaceGyroscopeNonLinearCalibrator- Returns:
- initial x-y cross coupling error.
-
setInitialMxy
public void setInitialMxy(double initialMxy) throws com.irurueta.navigation.LockedException Sets initial x-y cross coupling error.- Specified by:
setInitialMxyin interfaceGyroscopeNonLinearCalibrator- Parameters:
initialMxy- initial x-y cross coupling error.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getInitialMxz
public double getInitialMxz()Gets initial x-z cross coupling error.- Specified by:
getInitialMxzin interfaceGyroscopeNonLinearCalibrator- Returns:
- initial x-z cross coupling error.
-
setInitialMxz
public void setInitialMxz(double initialMxz) throws com.irurueta.navigation.LockedException Sets initial x-z cross coupling error.- Specified by:
setInitialMxzin interfaceGyroscopeNonLinearCalibrator- Parameters:
initialMxz- initial x-z cross coupling error.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getInitialMyx
public double getInitialMyx()Gets initial y-x cross coupling error.- Specified by:
getInitialMyxin interfaceGyroscopeNonLinearCalibrator- Returns:
- initial y-x cross coupling error.
-
setInitialMyx
public void setInitialMyx(double initialMyx) throws com.irurueta.navigation.LockedException Sets initial y-x cross coupling error.- Specified by:
setInitialMyxin interfaceGyroscopeNonLinearCalibrator- Parameters:
initialMyx- initial y-x cross coupling error.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getInitialMyz
public double getInitialMyz()Gets initial y-z cross coupling error.- Specified by:
getInitialMyzin interfaceGyroscopeNonLinearCalibrator- Returns:
- initial y-z cross coupling error.
-
setInitialMyz
public void setInitialMyz(double initialMyz) throws com.irurueta.navigation.LockedException Sets initial y-z cross coupling error.- Specified by:
setInitialMyzin interfaceGyroscopeNonLinearCalibrator- Parameters:
initialMyz- initial y-z cross coupling error.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getInitialMzx
public double getInitialMzx()Gets initial z-x cross coupling error.- Specified by:
getInitialMzxin interfaceGyroscopeNonLinearCalibrator- Returns:
- initial z-x cross coupling error.
-
setInitialMzx
public void setInitialMzx(double initialMzx) throws com.irurueta.navigation.LockedException Sets initial z-x cross coupling error.- Specified by:
setInitialMzxin interfaceGyroscopeNonLinearCalibrator- Parameters:
initialMzx- initial z-x cross coupling error.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getInitialMzy
public double getInitialMzy()Gets initial z-y cross coupling error.- Specified by:
getInitialMzyin interfaceGyroscopeNonLinearCalibrator- Returns:
- initial z-y cross coupling error.
-
setInitialMzy
public void setInitialMzy(double initialMzy) throws com.irurueta.navigation.LockedException Sets initial z-y cross coupling error.- Specified by:
setInitialMzyin interfaceGyroscopeNonLinearCalibrator- Parameters:
initialMzy- initial z-y cross coupling error.- 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.- Specified by:
setInitialScalingFactorsin interfaceGyroscopeNonLinearCalibrator- Parameters:
initialSx- initial x scaling factor.initialSy- initial y scaling factor.initialSz- initial z scaling factor.- 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.- Specified by:
setInitialCrossCouplingErrorsin interfaceGyroscopeNonLinearCalibrator- Parameters:
initialMxy- initial x-y cross coupling error.initialMxz- initial x-z cross coupling error.initialMyx- initial y-x cross coupling error.initialMyz- initial y-z cross coupling error.initialMzx- initial z-x cross coupling error.initialMzy- initial z-y cross coupling error.- 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.- Specified by:
setInitialScalingFactorsAndCrossCouplingErrorsin interfaceGyroscopeNonLinearCalibrator- Parameters:
initialSx- initial x scaling factor.initialSy- initial y scaling factor.initialSz- initial z scaling factor.initialMxy- initial x-y cross coupling error.initialMxz- initial x-z cross coupling error.initialMyx- initial y-x cross coupling error.initialMyz- initial y-z cross coupling error.initialMzx- initial z-x cross coupling error.initialMzy- initial z-y cross coupling error.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getInitialMg
public com.irurueta.algebra.Matrix getInitialMg()Gets initial scale factors and cross coupling errors matrix.- Specified by:
getInitialMgin interfaceGyroscopeNonLinearCalibrator- Returns:
- initial scale factors and cross coupling errors matrix.
-
getInitialMg
public void getInitialMg(com.irurueta.algebra.Matrix result) Gets initial 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 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.
-
getMeasurements
Gets a collection of body kinematics measurements taken at different frames (positions, orientations and velocities). If a single device IMU needs to be calibrated, typically all measurements are taken at the same position, with zero velocity and multiple orientations. However, if we just want to calibrate a given IMU model (e.g. obtain an average and less precise calibration for the IMU of a given phone model), we could take measurements collected throughout the planet at multiple positions while the phone remains static (e.g. while charging), hence each measurement position will change, velocity will remain zero and orientation will be typically constant at horizontal orientation while the phone remains on a flat surface.- Specified by:
getMeasurementsin interfaceKnownBiasAndFrameGyroscopeCalibrator<StandardDeviationFrameBodyKinematics,KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener> - Specified by:
getMeasurementsin interfaceUnorderedStandardDeviationFrameBodyKinematicsGyroscopeCalibrator- Returns:
- a collection of body kinematics measurements taken at different frames (positions, orientations and velocities).
-
setMeasurements
public void setMeasurements(Collection<? extends StandardDeviationFrameBodyKinematics> measurements) throws com.irurueta.navigation.LockedException Sets a collection of body kinematics measurements taken at different frames (positions, orientations and velocities). If a single device IMU needs to be calibrated, typically all measurements are taken at the same position, with zero velocity and multiple orientations. However, if we just want to calibrate the a given IMU model (e.g. obtain an average and less precise calibration for the IMU of a given phone model), we could take measurements collected throughout the planet at multiple positions while the phone remains static (e.g. while charging), hence each measurement position will change, velocity will remain zero and orientation will be typically constant at horizontal orientation while the phone remains on a flat surface.- Specified by:
setMeasurementsin interfaceKnownBiasAndFrameGyroscopeCalibrator<StandardDeviationFrameBodyKinematics,KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener> - Specified by:
setMeasurementsin interfaceUnorderedStandardDeviationFrameBodyKinematicsGyroscopeCalibrator- Parameters:
measurements- collection of body kinematics measurements taken at different frames (positions, orientations and velocities).- 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.
-
isQualityScoresRequired
public boolean isQualityScoresRequired()Indicates whether this calibrator requires quality scores for each measurement/sequence or not.- Specified by:
isQualityScoresRequiredin interfaceGyroscopeCalibrator- Returns:
- true if quality scores are required, 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 Mg 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 Mg 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.
-
getListener
Gets listener to handle events raised by this calibrator.- Specified by:
getListenerin interfaceKnownBiasAndFrameGyroscopeCalibrator<StandardDeviationFrameBodyKinematics,KnownBiasAndFrameGyroscopeNonLinearLeastSquaresCalibratorListener> - Returns:
- listener to handle events raised by this calibrator.
-
getBiasX
public double getBiasX()Gets known x coordinate of gyroscope bias expressed in radians per second (rad/s).- Specified by:
getBiasXin interfaceKnownBiasGyroscopeCalibrator- Returns:
- x coordinate of gyroscope bias.
-
setBiasX
public void setBiasX(double biasX) throws com.irurueta.navigation.LockedException Sets known x coordinate of gyroscope bias expressed in radians per second (rad/s).- Specified by:
setBiasXin interfaceKnownBiasGyroscopeCalibrator- Parameters:
biasX- x coordinate of gyroscope bias.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getBiasY
public double getBiasY()Gets known y coordinate of gyroscope bias expressed in radians per second (rad/s).- Specified by:
getBiasYin interfaceKnownBiasGyroscopeCalibrator- Returns:
- y coordinate of gyroscope bias.
-
setBiasY
public void setBiasY(double biasY) throws com.irurueta.navigation.LockedException Sets known y coordinate of gyroscope bias expressed in radians per second (rad/s).- Specified by:
setBiasYin interfaceKnownBiasGyroscopeCalibrator- Parameters:
biasY- y coordinate of gyroscope bias.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getBiasZ
public double getBiasZ()Gets known z coordinate of gyroscope bias expressed in radians per second (rad/s).- Specified by:
getBiasZin interfaceKnownBiasGyroscopeCalibrator- Returns:
- z coordinate of gyroscope bias.
-
setBiasZ
public void setBiasZ(double biasZ) throws com.irurueta.navigation.LockedException Sets known z coordinate of gyroscope bias 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 known x coordinate of gyroscope bias.- Specified by:
getBiasAngularSpeedXin interfaceKnownBiasGyroscopeCalibrator- Returns:
- x coordinate of gyroscope bias.
-
getBiasAngularSpeedX
public void getBiasAngularSpeedX(com.irurueta.units.AngularSpeed result) Gets known x coordinate of gyroscope 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 known x coordinate of gyroscope bias.- Specified by:
setBiasXin interfaceKnownBiasGyroscopeCalibrator- Parameters:
biasX- x coordinate of gyroscope bias.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getBiasAngularSpeedY
public com.irurueta.units.AngularSpeed getBiasAngularSpeedY()Gets known y coordinate of gyroscope bias.- Specified by:
getBiasAngularSpeedYin interfaceKnownBiasGyroscopeCalibrator- Returns:
- y coordinate of gyroscope bias.
-
getBiasAngularSpeedY
public void getBiasAngularSpeedY(com.irurueta.units.AngularSpeed result) Gets known y coordinate of gyroscope 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 known y coordinate of gyroscope bias.- Specified by:
setBiasYin interfaceKnownBiasGyroscopeCalibrator- Parameters:
biasY- y coordinate of gyroscope bias.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getBiasAngularSpeedZ
public com.irurueta.units.AngularSpeed getBiasAngularSpeedZ()Gets known z coordinate of gyroscope bias.- Specified by:
getBiasAngularSpeedZin interfaceKnownBiasGyroscopeCalibrator- Returns:
- z coordinate of gyroscope bias.
-
getBiasAngularSpeedZ
public void getBiasAngularSpeedZ(com.irurueta.units.AngularSpeed result) Gets known z coordinate of gyroscope 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 known z coordinate of gyroscope bias.- Specified by:
setBiasZin interfaceKnownBiasGyroscopeCalibrator- Parameters:
biasZ- z coordinate of gyroscope 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 gyroscope bias coordinates expressed in radians per second (rad/s).- Specified by:
setBiasCoordinatesin interfaceKnownBiasGyroscopeCalibrator- Parameters:
biasX- x coordinate of gyroscope bias.biasY- y coordinate of gyroscope bias.biasZ- z coordinate of gyroscope 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 gyroscope bias coordinates.- Specified by:
setBiasCoordinatesin interfaceKnownBiasGyroscopeCalibrator- Parameters:
biasX- x coordinate of gyroscope bias.biasY- y coordinate of gyroscope bias.biasZ- z coordinate of gyroscope bias.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.
-
getBiasAsTriad
Gets known gyroscope bias.- Returns:
- known gyroscope bias.
-
getBias
public double[] getBias()Gets known gyroscope bias as an array. Array values are expressed in radians per second (rad/s).- Specified by:
getBiasin interfaceKnownBiasGyroscopeCalibrator- Returns:
- array containing coordinate of known bias.
-
getBias
public void getBias(double[] result) Gets known gyroscope 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 known gyroscope bias as an array. Array values are expressed in radians per second (rad/s).- Specified by:
setBiasin interfaceKnownBiasGyroscopeCalibrator- Parameters:
bias- known gyroscope 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 known gyroscope bias as a column matrix.- Specified by:
getBiasAsMatrixin interfaceKnownBiasGyroscopeCalibrator- Returns:
- known gyroscope bias as a column matrix.
-
getBiasAsMatrix
public void getBiasAsMatrix(com.irurueta.algebra.Matrix result) Gets known gyroscope 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 bias) throws com.irurueta.navigation.LockedException Sets known gyroscope bias as a column matrix.- Specified by:
setBiasin interfaceKnownBiasGyroscopeCalibrator- Parameters:
bias- gyroscope bias to be set.- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.IllegalArgumentException- if provided matrix is not 3x1.
-
getMinimumRequiredMeasurementsOrSequences
public int getMinimumRequiredMeasurementsOrSequences()Gets minimum number of required measurements.- Specified by:
getMinimumRequiredMeasurementsOrSequencesin interfaceGyroscopeCalibrator- Returns:
- minimum number of required measurements.
-
isReady
public boolean isReady()Indicates whether calibrator is ready to start the calibration.- 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.
-
calibrate
public void calibrate() throws com.irurueta.navigation.LockedException, com.irurueta.navigation.NotReadyException, CalibrationExceptionEstimates gyroscope calibration parameters containing bias, scale factors, cross-coupling errors and g-dependant cross biases.- Specified by:
calibratein interfaceGyroscopeCalibrator- Throws:
com.irurueta.navigation.LockedException- if calibrator is currently running.com.irurueta.navigation.NotReadyException- if calibrator is not ready.CalibrationException- if calibration fails for numerical reasons.
-
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.
-
getEstimatedSx
Gets estimated x-axis scale factor.- Specified by:
getEstimatedSxin interfaceGyroscopeCalibrator- Returns:
- estimated x-axis scale factor or null if not available.
-
getEstimatedSy
Gets estimated y-axis scale factor.- Specified by:
getEstimatedSyin interfaceGyroscopeCalibrator- Returns:
- estimated y-axis scale factor or null if not available.
-
getEstimatedSz
Gets estimated z-axis scale factor.- Specified by:
getEstimatedSzin interfaceGyroscopeCalibrator- Returns:
- estimated z-axis scale factor or null if not available.
-
getEstimatedMxy
Gets estimated x-y cross-coupling error.- Specified by:
getEstimatedMxyin interfaceGyroscopeCalibrator- Returns:
- estimated x-y cross-coupling error or null if not available.
-
getEstimatedMxz
Gets estimated x-z cross-coupling error.- Specified by:
getEstimatedMxzin interfaceGyroscopeCalibrator- Returns:
- estimated x-z cross-coupling error or null if not available.
-
getEstimatedMyx
Gets estimated y-x cross-coupling error.- Specified by:
getEstimatedMyxin interfaceGyroscopeCalibrator- Returns:
- estimated y-x cross-coupling error or null if not available.
-
getEstimatedMyz
Gets estimated y-z cross-coupling error.- Specified by:
getEstimatedMyzin interfaceGyroscopeCalibrator- Returns:
- estimated y-z cross-coupling error or null if not available.
-
getEstimatedMzx
Gets estimated z-x cross-coupling error.- Specified by:
getEstimatedMzxin interfaceGyroscopeCalibrator- Returns:
- estimated z-x cross-coupling error or null if not available.
-
getEstimatedMzy
Gets estimated z-y cross-coupling error.- Specified by:
getEstimatedMzyin interfaceGyroscopeCalibrator- Returns:
- estimated 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.- Specified by:
getEstimatedGgin interfaceGyroscopeCalibrator- Returns:
- a 3x3 matrix containing g-dependent cross biases.
-
getEstimatedCovariance
public com.irurueta.algebra.Matrix getEstimatedCovariance()Gets estimated covariance matrix for estimated position. 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 position.
-
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.
-
calibrateCommonAxis
private void calibrateCommonAxis() throws com.irurueta.algebra.AlgebraException, com.irurueta.numerical.fitting.FittingException, com.irurueta.numerical.NotReadyExceptionInternal method to perform calibration when common z-axis is assumed for both the accelerometer and gyroscope.- Throws:
com.irurueta.algebra.AlgebraException- if there are numerical errors.com.irurueta.numerical.fitting.FittingException- if no convergence to solution is found.com.irurueta.numerical.NotReadyException- if fitter is not ready.
-
calibrateGeneral
private void calibrateGeneral() throws com.irurueta.algebra.AlgebraException, com.irurueta.numerical.fitting.FittingException, com.irurueta.numerical.NotReadyExceptionInternal method to perform general calibration.- Throws:
com.irurueta.algebra.AlgebraException- if there are numerical errors.com.irurueta.numerical.fitting.FittingException- if no convergence to solution is found.com.irurueta.numerical.NotReadyException- if fitter is not ready.
-
setInputData
private void setInputData() throws com.irurueta.algebra.WrongSizeExceptionSets input data into Levenberg-Marquardt fitter.- Throws:
com.irurueta.algebra.WrongSizeException- never happens.
-
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.
-