33 using namespace gtsam;
34 using namespace symbol_shorthand;
51 using namespace gtsam;
52 using namespace symbol_shorthand;
68 using namespace gtsam;
74 const auto weights = std::vector<double>(
g.size(), 1.0);
78 EXPECT(mstEdgeIndices[0] == 0);
79 EXPECT(mstEdgeIndices[1] == 1);
80 EXPECT(mstEdgeIndices[2] == 2);
85 using namespace gtsam;
91 const auto weights = std::vector<double>(
g.size(), 1.0);
95 EXPECT(mstEdgeIndices[0] == 0);
96 EXPECT(mstEdgeIndices[1] == 1);
97 EXPECT(mstEdgeIndices[2] == 2);
Provides additional testing facilities for common data structures.
IsDerived< DERIVEDFACTOR > emplace_shared(Args &&... args)
Emplace a shared pointer to factor of given type.
static int runAllTests(TestResult &result)
Factor Graph consisting of non-linear factors.
noiseModel::Diagonal::shared_ptr model
gtsam::GaussianFactorGraph makeTestGaussianFactorGraph()
gtsam::NonlinearFactorGraph makeTestNonlinearFactorGraph()
std::vector< size_t > kruskal(const FactorGraph< FACTOR > &fg, const std::vector< double > &weights)
Rot3 is a 3D rotation represented as a rotation matrix if the preprocessor symbol GTSAM_USE_QUATERNIO...
void g(const string &key, int i)
#define EXPECT(condition)
Linear Factor Graph where all factors are Gaussians.
noiseModel::Diagonal::shared_ptr SharedDiagonal
static shared_ptr Sigmas(const Vector &sigmas, bool smart=true)
TEST(SmartFactorBase, Pinhole)
3D rotation represented as a rotation matrix or quaternion