28 using namespace gtsam;
39 Point3 nM(22653.29982, -1956.83010, 44202.47862);
51 double s(
scale * nM.norm());
76 (boost::bind(&MagFactor::evaluateError, &f, _1, none), theta), H1, 1
e-7));
82 (boost::bind(&MagFactor1::evaluateError, &f1, _1, none), nRb), H1, 1
e-7));
88 (boost::bind(&MagFactor2::evaluateError, &f2, _1,
bias, none, none), scaled),
91 (boost::bind(&MagFactor2::evaluateError, &f2, scaled, _1, none, none),
bias),
98 (boost::bind(&MagFactor3::evaluateError, &f3, _1,
dir,
bias, none, none, none),
s),
101 (boost::bind(&MagFactor3::evaluateError, &f3,
s, _1,
bias, none, none, none),
dir),
104 (boost::bind(&MagFactor3::evaluateError, &f3,
s,
dir, _1, none, none, none),
bias),
double s(scale *nM.norm())
double yaw(OptionalJacobian< 1, 3 > H=boost::none) const
static const Eigen::MatrixBase< Vector3 >::ConstantReturnType Z_3x1
Concept check for values that can be used in unit tests.
static int runAllTests(TestResult &result)
Header for GeographicLib::LocalCartesian class.
Vector evaluateError(const Rot3 &nRb, boost::optional< Matrix & > H=boost::none) const override
vector of errors
Vector evaluateError(const Rot2 &nRb, boost::optional< Matrix & > H=boost::none) const override
vector of errors
Vector evaluateError(const Point3 &nM, const Point3 &bias, boost::optional< Matrix & > H1=boost::none, boost::optional< Matrix & > H2=boost::none) const override
vector of errors
Some functions to compute numerical derivatives.
double f2(const Vector2 &x)
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
Rot3 inverse() const
inverse of a rotation
Point3 nM(22653.29982,-1956.83010, 44202.47862)
Represents a 3D point on a unit sphere.
Vector evaluateError(const double &scale, const Unit3 &direction, const Point3 &bias, boost::optional< Matrix & > H1=boost::none, boost::optional< Matrix & > H2=boost::none, boost::optional< Matrix & > H3=boost::none) const override
vector of errors
Factors involving magnetometers.
P unrotate(const T &r, const P &pt)
#define EXPECT(condition)
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
Namespace for GeographicLib.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
Point2 f1(const Point3 &p, OptionalJacobian< 2, 3 > H)
double f3(double x1, double x2)
TEST(MagFactor, unrotate)
noiseModel::Base::shared_ptr SharedNoiseModel