57 using namespace gtsam;
77 prior.
print(
"goal angle");
78 auto model = noiseModel::Isotropic::Sigma(1, 1 *
degree);
92 graph.
print(
"full graph");
112 initial.
print(
"initial estimate");
123 result.
print(
"final result");
virtual const Values & optimize()
A non-templated config holding any types of Manifold-group elements.
Factor Graph consisting of non-linear factors.
Point2 prior(const Point2 &x)
Prior on a single pose.
noiseModel::Diagonal::shared_ptr model
void insert(Key j, const Value &val)
NonlinearFactorGraph graph
void addPrior(Key key, const T &prior, const SharedNoiseModel &model=nullptr)
A nonlinear optimizer that uses the Levenberg-Marquardt trust-region scheme.
void print(const std::string &str="", const KeyFormatter &keyFormatter=DefaultKeyFormatter) const
void print(const std::string &str="NonlinearFactorGraph: ", const KeyFormatter &keyFormatter=DefaultKeyFormatter) const override
void print(const std::string &s="theta") const