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)
double error(const Values &c) const override
static shared_ptr Create(size_t dim)
const Symbol key1('v', 1)
#define EXPECT(condition)
const std::vector< size_t > & dims() const
Array< double, 1, 3 > e(1./3., 0.5, 2.)
const SharedNoiseModel model3
boost::shared_ptr< GaussianFactor > linearize(const Values &c) const override
boost::shared_ptr< Diagonal > shared_ptr
boost::shared_ptr< This > shared_ptr
shared_ptr to this class
#define LONGS_EQUAL(expected, actual)
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
#define EXPECT_LONGS_EQUAL(expected, actual)
const KeyVector & keys() const
Access the factor's involved variable keys.
const Symbol key2('v', 2)
TEST(LPInitSolver, InfiniteLoopSingleVar)
std::uint64_t Key
Integer nonlinear key type.