20 #include <boost/make_shared.hpp> 57 return boost::make_shared<ParticleFactor<X> >();
71 using namespace gtsam;
83 TEST( particleFactor, eliminate) {
105 State x_initial(0.0, 0.0);
142 State expected0(0.0, 0.0);
143 Matrix P00 = 0.01 * I_2x2;
145 State expected1(1.0, 0.0);
149 State expected2(2.0, 0.0);
150 Matrix P12 = I11.inverse() +
Q;
153 State expected3(3.0, 0.0);
154 Matrix P23 = I22.inverse() +
Q;
161 State x_initial(0.0, 0.0);
State predict(const State &p, const Matrix &F, const Matrix &B, const Vector &u, const SharedDiagonal &modelQ) const
static int runAllTests(TestResult &result)
State update(const State &p, const Matrix &H, const Vector &z, const SharedDiagonal &model) const
GaussianDensity::shared_ptr State
Rot2 R(Rot2::fromAngle(0.1))
State(double x, double y)
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
Matrix< SCALARB, Dynamic, Dynamic > B
State predictQ(const State &p, const Matrix &F, const Matrix &B, const Vector &u, const Matrix &Q) const
EIGEN_DEVICE_FUNC Quaternion< Scalar > inverse() const
ParticleFactor< X >::shared_ptr State
#define EXPECT(condition)
State init(const Vector &x0, const SharedDiagonal &P0) const
#define LONGS_EQUAL(expected, actual)
noiseModel::Diagonal::shared_ptr SharedDiagonal
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
Simple linear Kalman filter. Implemented using factor graphs, i.e., does Cholesky-based SRIF...
ParticleFactor This
Typedef to this class.
The quaternion class used to represent 3D orientations and rotations.
State init(const Vector &x0, const SharedDiagonal &P0)
TEST(LPInitSolver, InfiniteLoopSingleVar)
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
static Key step(const State &p)
boost::shared_ptr< This > shared_ptr
shared_ptr to this class
static shared_ptr Sigma(size_t dim, double sigma, bool smart=true)