42 using NoiseModelFactor1<Rot2>::evaluateError;
57 measured_(measured), nM_(scale * direction), bias_(bias) {
83 return (hx - measured_);
101 using NoiseModelFactor1<Rot3>::evaluateError;
109 measured_(measured), nM_(scale * direction), bias_(bias) {
124 return (hx - measured_);
141 using NoiseModelFactor2<Point3, Point3>::evaluateError;
148 measured_(measured), bRn_(nRb.
inverse()) {
168 return (hx - measured_);
185 using NoiseModelFactor3<double, Unit3, Point3>::evaluateError;
192 measured_(measured), bRn_(nRb.
inverse()) {
218 *H2 = scale * H * (*H2);
222 return (hx - measured_);
const Point3 nM_
Local magnetic field (mag output units)
static Point3 unrotate(const Rot2 &R, const Point3 &p, OptionalMatrixType HR=OptionalNone)
noiseModel::Diagonal::shared_ptr model
Vector evaluateError(const double &scale, const Unit3 &direction, const Point3 &bias, OptionalMatrixType H1, OptionalMatrixType H2, OptionalMatrixType H3) const override
vector of errors
MagFactor2(Key key1, Key key2, const Point3 &measured, const Rot3 &nRb, const SharedNoiseModel &model)
Vector evaluateError(const Point3 &nM, const Point3 &bias, OptionalMatrixType H1, OptionalMatrixType H2) const override
vector of errors
const Point3 measured_
The measured magnetometer values.
Rot2 R(Rot2::fromAngle(0.1))
const Point3 measured_
The measured magnetometer values.
const Point3 measured_
The measured magnetometer values.
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy y set format x g set format y g set format x2 g set format y2 g set format z g set angles radians set nogrid set key title set key left top Right noreverse box linetype linewidth samplen spacing width set nolabel set noarrow set nologscale set logscale x set set pointsize set encoding default set nopolar set noparametric set set set set surface set nocontour set clabel set mapping cartesian set nohidden3d set cntrparam order set cntrparam linear set cntrparam levels auto set cntrparam points set size set set xzeroaxis lt lw set x2zeroaxis lt lw set yzeroaxis lt lw set y2zeroaxis lt lw set tics in set ticslevel set tics set mxtics default set mytics default set mx2tics default set my2tics default set xtics border mirror norotate autofreq set ytics border mirror norotate autofreq set ztics border nomirror norotate autofreq set nox2tics set noy2tics set timestamp bottom norotate set rrange [*:*] noreverse nowriteback set trange [*:*] noreverse nowriteback set urange [*:*] noreverse nowriteback set vrange [*:*] noreverse nowriteback set xlabel matrix size set x2label set timefmt d m y n H
const Rot3 bRn_
The assumed known rotation from nav to body.
const Rot3 bRn_
The assumed known rotation from nav to body.
Rot3 is a 3D rotation represented as a rotation matrix if the preprocessor symbol GTSAM_USE_QUATERNIO...
EIGEN_DEVICE_FUNC const InverseReturnType inverse() const
Represents a 3D point on a unit sphere.
Matrix * OptionalMatrixType
static Rot3 Yaw(double t)
Positive yaw is to right (as in aircraft heading). See ypr.
Point3 unrotate(const Point3 &p, OptionalJacobian< 3, 3 > H1={}, OptionalJacobian< 3, 3 > H2={}) const
rotate point from world to rotated frame
Vector evaluateError(const Rot2 &nRb, OptionalMatrixType H) const override
vector of errors
EIGEN_DEVICE_FUNC const Scalar & q
Vector evaluateError(const Rot3 &nRb, OptionalMatrixType H) const override
vector of errors
const Point3 nM_
Local magnetic field (mag output units)
MagFactor1(Key key, const Point3 &measured, double scale, const Unit3 &direction, const Point3 &bias, const SharedNoiseModel &model)
NonlinearFactor::shared_ptr clone() const override
const Point3 measured_
The measured magnetometer values.
NonlinearFactor::shared_ptr clone() const override
Non-linear factor base classes.
NonlinearFactor::shared_ptr clone() const override
static double scale(double x, double a, double b, double t1, double t2)
Scale x from [a, b] to [t1, t2].
std::shared_ptr< This > shared_ptr
Point3 point3(OptionalJacobian< 3, 2 > H={}) const
Return unit-norm Point3.
Point3 rotate(const Point3 &p, OptionalJacobian< 3, 3 > H1={}, OptionalJacobian< 3, 3 > H2={}) const
std::uint64_t Key
Integer nonlinear key type.
NonlinearFactor::shared_ptr clone() const override
MagFactor3(Key key1, Key key2, Key key3, const Point3 &measured, const Rot3 &nRb, const SharedNoiseModel &model)
noiseModel::Base::shared_ptr SharedNoiseModel
3D rotation represented as a rotation matrix or quaternion
MagFactor(Key key, const Point3 &measured, double scale, const Unit3 &direction, const Point3 &bias, const SharedNoiseModel &model)