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");
const gtsam::Symbol key('X', 0)
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
NonlinearFactorGraph graph
void addPrior(Key key, const T &prior, const SharedNoiseModel &model=nullptr)
void print(const std::string &str="", const KeyFormatter &keyFormatter=DefaultKeyFormatter) const
A nonlinear optimizer that uses the Levenberg-Marquardt trust-region scheme.
void print(const std::string &str="NonlinearFactorGraph: ", const KeyFormatter &keyFormatter=DefaultKeyFormatter) const override
void insert(Key j, const Value &val)
void print(const std::string &s="theta") const