26 using namespace gtsam;
32 TEST(Utilities, ExtractPoint2) {
45 TEST(Utilities, ExtractPoint3) {
58 TEST(Utilities, ExtractVector) {
67 (
Matrix(3, 4) << 1, 2, 3, 4, 6, 7, 8, 9, 13, 14, 15, 16).finished();
Matrix extractVectors(const Values &values, char c)
Concept check for values that can be used in unit tests.
static int runAllTests(TestResult &result)
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
Rot2 R(Rot2::fromAngle(0.1))
void update(Key j, const Value &val)
Rot3 is a 3D rotation represented as a rotation matrix if the preprocessor symbol GTSAM_USE_QUATERNIO...
Matrix extractPoint2(const Values &values)
Extract all Point2 values into a single matrix [x y].
#define THROWS_EXCEPTION(condition)
#define EXPECT(condition)
std::vector< float > Values
#define EXPECT_LONGS_EQUAL(expected, actual)
void insert(Key j, const Value &val)
TEST(SmartFactorBase, Pinhole)
Matrix extractPoint3(const Values &values)
Extract all Point3 values into a single matrix [x y z].