29 #include <boost/make_shared.hpp> 30 #include <boost/assign/list_of.hpp> 50 return boost::make_shared<GaussianDensity>(*posterior);
60 factorGraph +=
p, newFactor;
63 return solve(factorGraph);
73 return solve(factorGraph);
82 return solve(factorGraph);
87 cout <<
"KalmanFilter " << s <<
", dim = " << n_ << endl;
98 boost::make_shared<JacobianFactor>(k, -F, k + 1, I_, B * u, model));
107 assert(F.rows() ==
n);
108 assert(B.rows() ==
n);
109 assert(B.cols() == u.size());
110 assert(Q.rows() ==
n);
111 assert(Q.cols() ==
n);
119 Matrix G12 = -Ft *
M, G11 = -G12 *
F, G22 =
M;
121 double f =
dot(b, g2);
124 boost::make_shared<HessianFactor>(k, k + 1, G11, G12, g1, G22, g2, f));
133 return fuse(p, boost::make_shared<JacobianFactor>(k, A0, k + 1, A1, b, model));
143 return fuse(p, boost::make_shared<JacobianFactor>(k, H, z, model));
153 double f =
dot(z, M * z);
154 return fuse(p, boost::make_shared<HessianFactor>(k, G, g, f));
void print(const Matrix &A, const string &s, ostream &stream)
def step(data, isam, result, truth, currPoseIndex)
Matrix< RealScalar, Dynamic, Dynamic > M
Concept check for values that can be used in unit tests.
JacobiRotation< float > G
noiseModel::Diagonal::shared_ptr model
static enum @843 ordering
GaussianDensity::shared_ptr State
boost::shared_ptr< This > shared_ptr
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
ptrdiff_t DenseIndex
The index type for Eigen objects.
void g(const string &key, int i)
Scalar EIGEN_BLAS_FUNC() dot(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy)
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
Contains the HessianFactor class, a general quadratic factor.
boost::shared_ptr< This > shared_ptr
shared_ptr to this class
internal::DoglegState State
noiseModel::Diagonal::shared_ptr SharedDiagonal
Simple linear Kalman filter. Implemented using factor graphs, i.e., does Cholesky-based SRIF...
The quaternion class used to represent 3D orientations and rotations.
detail::initimpl::constructor< Args... > init()
Binds an existing constructor taking arguments Args...
Pose3 g1(Rot3(), Point3(100.0, 0.0, 300.0))
A Gaussian factor using the canonical parameters (information form)
boost::shared_ptr< BayesNetType > eliminateSequential(OptionalOrderingType orderingType=boost::none, const Eliminate &function=EliminationTraitsType::DefaultEliminate, OptionalVariableIndex variableIndex=boost::none) const
Chordal Bayes Net, the result of eliminating a factor graph.
boost::shared_ptr< This > shared_ptr
shared_ptr to this class
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
Pose3 g2(g1.expmap(h *V1_g1))
std::uint64_t Key
Integer nonlinear key type.