Go to the documentation of this file.
28 using namespace gtsam;
39 Point3 nM(22653.29982, -1956.83010, 44202.47862);
41 double scale = 255.0 / 50000.0;
51 double s(
scale* nM.norm());
75 ([&
f] (
const Rot2& theta) {
return f.evaluateError(theta); }, theta), H1, 1
e-7));
87 ([&
f2] (
const Point3& scaled) {
return f2.evaluateError(scaled,
bias); }, scaled), H1, 1
e-7));
95 ([&
f3] (
double s) {
return f3.evaluateError(
s,dir,
bias); },
s), H1, 1
e-7));
97 ([&
f3] (
const Unit3& dir) {
return f3.evaluateError(
s,dir,
bias); }, dir), H2, 1
e-7));
static int runAllTests(TestResult &result)
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
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Concept check for values that can be used in unit tests.
#define EXPECT(condition)
Namespace for GeographicLib.
static const Eigen::MatrixBase< Vector3 >::ConstantReturnType Z_3x1
const Vector3 bias(1, 2, 3)
double f2(const Vector2 &x)
TEST(MagFactor, unrotate)
Some functions to compute numerical derivatives.
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 scale
Rot3 is a 3D rotation represented as a rotation matrix if the preprocessor symbol GTSAM_USE_QUATERNIO...
noiseModel::Base::shared_ptr SharedNoiseModel
double yaw(OptionalJacobian< 1, 3 > H={}) const
noiseModel::Diagonal::shared_ptr model
Rot3 inverse() const
inverse of a rotation
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
double f3(double x1, double x2)
Header for GeographicLib::LocalCartesian class.
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
P unrotate(const T &r, const P &pt)
Represents a 3D point on a unit sphere.
Factors involving magnetometers.
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:07:54