11 using namespace gtsam;
16 TEST( testVelocityConstraint3, evaluateError) {
18 const double tol = 1
e-5;
19 const double dt = 1.0;
20 double x1(1.0),
x2(2.0),
v(1.0);
static int runAllTests(TestResult &result)
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
Pose3 x2(Rot3::Ypr(0.0, 0.0, 0.0), l2)
Vector evaluateError(const double &x1, const double &x2, const double &v, OptionalMatrixType H1, OptionalMatrixType H2, OptionalMatrixType H3) const override
#define EXPECT(condition)
Array< int, Dynamic, 1 > v
Array< double, 1, 3 > e(1./3., 0.5, 2.)
TEST(SmartFactorBase, Pinhole)
A simple 3-way factor constraining double poses and velocity.