Go to the documentation of this file.
56 using namespace gtsam;
76 using NoiseModelFactor1<Pose2>::evaluateError;
99 const Rot2&
R =
q.rotation();
101 return (
Vector(2) <<
q.x() - mx_,
q.y() - my_).finished();
108 return std::static_pointer_cast<gtsam::NonlinearFactor>(
117 int main(
int argc,
char** argv) {
131 noiseModel::Diagonal::Sigmas(
Vector2(0.1, 0.1));
143 initialEstimate.
print(
"\nInitial Estimate:\n");
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy y set format x g set format y g set format x2 g set format y2 g set format z g set angles radians set nogrid set key title set key left top Right noreverse box linetype linewidth samplen spacing width set nolabel set noarrow set nologscale set logscale x set set pointsize set encoding default set nopolar set noparametric set set set set surface set nocontour set clabel set mapping cartesian set nohidden3d set cntrparam order set cntrparam linear set cntrparam levels auto set cntrparam points set size set set xzeroaxis lt lw set x2zeroaxis lt lw set yzeroaxis lt lw set y2zeroaxis lt lw set tics in set ticslevel set tics set mxtics default set mytics default set mx2tics default set my2tics default set xtics border mirror norotate autofreq set ytics border mirror norotate autofreq set ztics border nomirror norotate autofreq set nox2tics set noy2tics set timestamp bottom norotate set rrange[*:*] noreverse nowriteback set trange[*:*] noreverse nowriteback set urange[*:*] noreverse nowriteback set vrange[*:*] noreverse nowriteback set xlabel matrix size set x2label set timefmt d m y n H
std::shared_ptr< This > shared_ptr
virtual const Values & optimize()
A nonlinear optimizer that uses the Levenberg-Marquardt trust-region scheme.
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
Matrix marginalCovariance(Key variable) const
EIGEN_DEVICE_FUNC const Scalar & q
Vector evaluateError(const Pose2 &q, OptionalMatrixType H) const override
noiseModel::Base::shared_ptr SharedNoiseModel
noiseModel::Diagonal::shared_ptr model
Non-linear factor base classes.
void print(const std::string &str="", const KeyFormatter &keyFormatter=DefaultKeyFormatter) const
A class for computing marginals in a NonlinearFactorGraph.
Factor Graph consisting of non-linear factors.
void insert(Key j, const Value &val)
Matrix * OptionalMatrixType
NonlinearFactorGraph graph
int main(int argc, char **argv)
Marginals marginals(graph, result)
std::uint64_t Key
Integer nonlinear key type.
std::shared_ptr< UnaryFactor > shared_ptr
shorthand for a smart pointer to a factor
UnaryFactor(Key j, double x, double y, const SharedNoiseModel &model)
Eigen::Matrix< double, Eigen::Dynamic, 1 > Vector
Rot2 R(Rot2::fromAngle(0.1))
A non-templated config holding any types of Manifold-group elements.
gtsam::NonlinearFactor::shared_ptr clone() const override
IsDerived< DERIVEDFACTOR > emplace_shared(Args &&... args)
Emplace a shared pointer to factor of given type.
void print(const std::string &str="NonlinearFactorGraph: ", const KeyFormatter &keyFormatter=DefaultKeyFormatter) const override
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:02:44