26 using namespace gtsam;
32 double temp = 15.04 - 0.00649 * meters;
33 return 101.29 *
std::pow(((temp + 273.1) / 288.08), 5.256);
58 Matrix expectedH = numericalDerivative21<Vector, Pose3, double>(
62 Matrix expectedH2 = numericalDerivative22<Vector, Pose3, double>(
91 Pose3 T(Rot3::RzRyRx(0.5, 1., 1.),
Point3(20., 30., 1.));
95 Matrix expectedH = numericalDerivative21<Vector, Pose3, double>(
99 Matrix expectedH2 = numericalDerivative22<Vector, Pose3, double>(
const gtsam::Symbol key('X', 0)
Concept check for values that can be used in unit tests.
static int runAllTests(TestResult &result)
TEST(BarometricFactor, Constructor)
noiseModel::Diagonal::shared_ptr model
EIGEN_DONT_INLINE Scalar zero()
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
Some functions to compute numerical derivatives.
#define EXPECT(condition)
Eigen::Triplet< double > T
Array< double, 1, 3 > e(1./3., 0.5, 2.)
double metersToBaro(const double &meters)
Vector evaluateError(const Pose3 &p, const double &b, OptionalMatrixType H, OptionalMatrixType H2) const override
vector of errors
Header file for Barometric factor.
Jet< T, N > pow(const Jet< T, N > &f, double g)
The matrix class, also used for vectors and row-vectors.
Eigen::Matrix< double, Eigen::Dynamic, 1 > Vector
std::uint64_t Key
Integer nonlinear key type.
noiseModel::Base::shared_ptr SharedNoiseModel
const Symbol key2('v', 2)