29 using namespace gtsam;
88 Pose3 body_P_sensor2(Rot3::RzRyRx(-M_PI_2, 0.0, -M_PI_2),
Point3(0.30, -0.10, 1.0));
103 #if defined(GTSAM_ROT3_EXPMAP) || defined(GTSAM_USE_QUATERNIONS) 104 expectedError << -0.182948257976108,
107 #if defined(GTSAM_POSE3_EXPMAP) 117 expectedError << -0.184137861505414,
146 #if defined(GTSAM_ROT3_EXPMAP) || defined(GTSAM_USE_QUATERNIONS) 147 expectedError << -0.0224998729281528,
150 #if defined(GTSAM_POSE3_EXPMAP) 160 expectedError << -0.022712885347328,
190 Matrix expectedH1 = numericalDerivative11<Vector, Pose3>(
211 Pose3 pose(Rot3::RzRyRx(-0.303202977317447, -0.143253159173011, 0.494633847678171),
212 Point3(-4.74767676, 7.67044942, -11.00985));
215 Matrix expectedH1 = numericalDerivative11<Vector, Pose3>(
Provides additional testing facilities for common data structures.
static int runAllTests(TestResult &result)
noiseModel::Diagonal::shared_ptr model
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
static Pose3 body_P_sensor(Rot3::RzRyRx(-M_PI_2, 0.0, -M_PI_2), Point3(0.25, -0.10, 1.0))
Some functions to compute numerical derivatives.
static Point2 measurement2(200.0, 220.0)
TEST(PosePriorFactor, Constructor)
PosePriorFactor< Pose3 > TestPosePriorFactor
static Point2 measurement(323.0, 240.0)
bool assert_inequal(const Matrix &A, const Matrix &B, double tol)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Vector evaluateError(const POSE &p, OptionalMatrixType H) const override
static const Pose3 pose(Rot3(Vector3(1, -1, -1).asDiagonal()), Point3(0, 0, 0.5))
std::uint64_t Key
Integer nonlinear key type.
noiseModel::Base::shared_ptr SharedNoiseModel