18 using namespace gtsam;
23 TEST( testDummyFactor, basics ) {
26 size_t dim1 = 3, dim2 = 3;
39 c.insert(key1,
Point3(1.0, 2.0, 3.0));
47 CHECK(actLinearization);
50 key1, Matrix::Zero(3,3),
key2, Matrix::Zero(3,3),
Z_3x1, model3));
Provides additional testing facilities for common data structures.
static const Eigen::MatrixBase< Vector3 >::ConstantReturnType Z_3x1
static int runAllTests(TestResult &result)
#define DOUBLES_EQUAL(expected, actual, threshold)
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
double error(const Values &c) const override
static shared_ptr Create(size_t dim)
const Symbol key1('v', 1)
#define EXPECT(condition)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
const SharedNoiseModel model3
const std::vector< size_t > & dims() const
std::shared_ptr< This > shared_ptr
shared_ptr to this class
#define LONGS_EQUAL(expected, actual)
#define EXPECT_LONGS_EQUAL(expected, actual)
const KeyVector & keys() const
Access the factor's involved variable keys.
TEST(SmartFactorBase, Pinhole)
std::shared_ptr< GaussianFactor > linearize(const Values &c) const override
std::shared_ptr< Diagonal > shared_ptr
std::uint64_t Key
Integer nonlinear key type.
const Symbol key2('v', 2)