27 using namespace gtsam;
51 Pose3 body_P_sensor(Rot3::RzRyRx(-M_PI_2, 0.0, -M_PI_2),
Point3(0.25, -0.10, 1.0));
67 Pose3 measurement2(Rot3::RzRyRx(0.20, -0.30, 0.45),
Point3(-5.0, 8.0, -11.0));
79 Pose3 body_P_sensor(Rot3::RzRyRx(-M_PI_2, 0.0, -M_PI_2),
Point3(0.25, -0.10, 1.0));
86 Pose3 body_P_sensor2(Rot3::RzRyRx(-M_PI_2, 0.0, -M_PI_2),
Point3(0.30, -0.10, 1.0));
101 #if defined(GTSAM_ROT3_EXPMAP) || defined(GTSAM_USE_QUATERNIONS) 102 expectedError << -0.182948257976108,
105 #if defined(GTSAM_POSE3_EXPMAP) 115 expectedError << -0.184137861505414,
139 Pose3 body_P_sensor(Rot3::RzRyRx(-M_PI_2, 0.0, -M_PI_2),
Point3(0.25, -0.10, 1.0));
144 #if defined(GTSAM_ROT3_EXPMAP) || defined(GTSAM_USE_QUATERNIONS) 145 expectedError << -0.0224998729281528,
148 #if defined(GTSAM_POSE3_EXPMAP) 158 expectedError << -0.022712885347328,
204 Pose3 body_P_sensor(Rot3::RzRyRx(-M_PI_2, 0.0, -M_PI_2),
Point3(0.25, -0.10, 1.0));
208 Pose3 pose(Rot3::RzRyRx(-0.303202977317447, -0.143253159173011, 0.494633847678171),
209 Point3(-4.74767676, 7.67044942, -11.00985));
Provides additional testing facilities for common data structures.
static int runAllTests(TestResult &result)
noiseModel::Diagonal::shared_ptr model
Some functions to compute numerical derivatives.
TEST(PosePriorFactor, Constructor)
JacobianFactor factor3(keyY, A32, keyZ, A33, b3, noiseModel::Isotropic::Sigma(2, sigma3))
PosePriorFactor< Pose3 > TestPosePriorFactor
Vector evaluateError(const POSE &p, boost::optional< Matrix & > H=boost::none) const override
static const Pose3 pose(Rot3(Vector3(1,-1,-1).asDiagonal()), Point3(0, 0, 0.5))
Array< double, 1, 3 > e(1./3., 0.5, 2.)
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
bool assert_inequal(const Matrix &A, const Matrix &B, double tol)
JacobianFactor factor2(keyX, A21, keyY, A22, b2, noiseModel::Isotropic::Sigma(2, sigma2))
std::uint64_t Key
Integer nonlinear key type.
noiseModel::Base::shared_ptr SharedNoiseModel
JacobianFactor factor1(keyX, A11, b1, noiseModel::Isotropic::Sigma(2, sigma1))