27 using namespace gtsam;
43 double delta_t = 0.10;
59 double delta_t = 0.10;
75 Vector alpha_v1(tau.size());
76 for(
int i=0;
i<tau.size();
i++){
80 Vector Err2( v2 - alpha_v1 );
91 double delta_t = 0.10;
102 Matrix computed_H1, computed_H2;
103 factor.
evaluateError(v1_upd, v2_upd, computed_H1, computed_H2);
106 Matrix numerical_H1, numerical_H2;
107 numerical_H1 = numericalDerivative21<Vector3, Vector3, Vector3>(
109 numerical_H2 = numericalDerivative22<Vector3, Vector3, Vector3>(
static int runAllTests(TestResult &result)
A non-templated config holding any types of Manifold-group elements.
EIGEN_DEVICE_FUNC const ExpReturnType exp() const
noiseModel::Diagonal::shared_ptr model
void insert(Key j, const Value &val)
Some functions to compute numerical derivatives.
Pose3 x2(Rot3::Ypr(0.0, 0.0, 0.0), l2)
Vector evaluateError(const VALUE &p1, const VALUE &p2, boost::optional< Matrix & > H1=boost::none, boost::optional< Matrix & > H2=boost::none) const override
GaussMarkov1stOrderFactor< LieVector > GaussMarkovFactor
Factors.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
LieVector predictionError(const LieVector &v1, const LieVector &v2, const GaussMarkovFactor factor)
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
TEST(GaussMarkovFactor, equals)
JacobianFactor factor2(keyX, A21, keyY, A22, b2, noiseModel::Isotropic::Sigma(2, sigma2))
std::uint64_t Key
Integer nonlinear key type.
noiseModel::Gaussian::shared_ptr SharedGaussian
JacobianFactor factor1(keyX, A11, b1, noiseModel::Isotropic::Sigma(2, sigma1))