Go to the documentation of this file.
28 using namespace gtsam;
30 int main(
const int argc,
const char *argv[]) {
43 auto priorModel = noiseModel::Diagonal::Variances(
Vector3(1
e-6, 1
e-6, 1
e-8));
47 std::cout <<
"Computing LAGO estimate" << std::endl;
49 std::cout <<
"done!" << std::endl;
52 estimateLago.
print(
"estimateLago");
55 std::cout <<
"Writing results to file: " <<
outputFile << std::endl;
60 std::cout <<
"done! " << std::endl;
Array< double, 1, 3 > e(1./3., 0.5, 2.)
GraphAndValues readG2o(const std::string &g2oFile, const bool is3D, KernelFunctionType kernelFunctionType)
This function parses a g2o file and stores the measurements into a NonlinearFactorGraph and the initi...
utility functions for loading datasets
void addPrior(Key key, const T &prior, const SharedNoiseModel &model=nullptr)
void print(const std::string &str="", const KeyFormatter &keyFormatter=DefaultKeyFormatter) const
Initialize Pose2 in a factor graph using LAGO (Linear Approximation for Graph Optimization)....
GTSAM_EXPORT std::string findExampleDataFile(const std::string &name)
NonlinearFactorGraph graph
int main(const int argc, const char *argv[])
Values initialize(const NonlinearFactorGraph &graph, bool useOdometricPath)
std::shared_ptr< This > shared_ptr
void print(const std::string &str="NonlinearFactorGraph: ", const KeyFormatter &keyFormatter=DefaultKeyFormatter) const override
void writeG2o(const NonlinearFactorGraph &graph, const Values &estimate, const std::string &filename)
This function writes a g2o file from NonlinearFactorGraph and a Values structure.
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:03:36