30 using namespace gtsam;
37 Values() : nrPoses_(0), nrPoints_(0) {}
83 template<
class VALUE = Pose2>
104 template<
class VALUE = Pose2>
111 using NoiseModelFactor2<VALUE, VALUE>::evaluateError;
const gtsam::Symbol key('X', 0)
Unary factor encoding a soft prior on a vector.
Pose2 pose(Key i) const
get a pose
A non-templated config holding any types of Manifold-group elements.
Factor Graph consisting of non-linear factors.
void insertPoint(Key j, const Point2 &p)
insert a landmark
noiseModel::Diagonal::shared_ptr model
Pose2 measured_
measurement
Pose3 x2(Rot3::Ypr(0.0, 0.0, 0.0), l2)
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
TangentVector localCoordinates(const Class &g) const
localCoordinates as required by manifold concept: finds tangent vector between *this and g ...
GenericPosePrior(const Pose2 &measured, const SharedNoiseModel &model, Key key)
Create generic pose prior.
Graph specialization for syntactic sugar use with matlab.
Matrix * OptionalMatrixType
int nrPoints() const
nr of landmarks
Point2 point(Key j) const
get a landmark
Pose2 odo(const Pose2 &x1, const Pose2 &x2)
odometry between two poses
~GenericOdometry() override
int nrPoses() const
nr of poses
Pose2 measured_
Between measurement for odometry factor.
gtsam::NonlinearFactor::shared_ptr clone() const override
void insertPose(Key i, const Pose2 &p)
insert a pose
Non-linear factor base classes.
Class between(const Class &g) const
std::shared_ptr< This > shared_ptr
GenericOdometry(const Pose2 &measured, const SharedNoiseModel &model, Key i1, Key i2)
GenericOdometry< Pose2 > Odometry
void insert(Key j, const Value &val)
Special class for optional Jacobian arguments.
Vector evaluateError(const Pose2 &x, OptionalMatrixType H=OptionalNone) const
Evaluate error and optionally derivative.
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
GenericOdometry< VALUE > This
Vector evaluateError(const VALUE &x1, const VALUE &x2, OptionalMatrixType H1, OptionalMatrixType H2) const override
Evaluate error and optionally derivative.
std::uint64_t Key
Integer nonlinear key type.
noiseModel::Base::shared_ptr SharedNoiseModel
Pose2 prior(const Pose2 &x)
Prior on a single pose.