56 return std::make_shared<ParticleFactor<X> >();
70 using namespace gtsam;
82 TEST( particleFactor, eliminate) {
104 State x_initial(0.0, 0.0);
141 State expected0(0.0, 0.0);
142 Matrix P00 = 0.01 * I_2x2;
144 State expected1(1.0, 0.0);
148 State expected2(2.0, 0.0);
149 Matrix P12 = I11.inverse() +
Q;
152 State expected3(3.0, 0.0);
153 Matrix P23 = I22.inverse() +
Q;
160 State x_initial(0.0, 0.0);
Matrix< SCALARB, Dynamic, Dynamic, opt_B > B
State predictQ(const State &p, const Matrix &F, const Matrix &B, const Vector &u, const Matrix &Q) const
static int runAllTests(TestResult &result)
GaussianDensity::shared_ptr State
std::shared_ptr< This > shared_ptr
shared_ptr to this class
State predict(const State &p, const Matrix &F, const Matrix &B, const Vector &u, const SharedDiagonal &modelQ) const
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
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
State update(const State &p, const Matrix &H, const Vector &z, const SharedDiagonal &model) const
ParticleFactor< X >::shared_ptr State
#define EXPECT(condition)
EIGEN_DEVICE_FUNC Quaternion< Scalar > inverse() const
#define LONGS_EQUAL(expected, actual)
noiseModel::Diagonal::shared_ptr SharedDiagonal
Simple linear Kalman filter. Implemented using factor graphs, i.e., does Cholesky-based SRIF...
State init(const Vector &x0, const SharedDiagonal &P0) const
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(SmartFactorBase, Pinhole)
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)
static shared_ptr Sigma(size_t dim, double sigma, bool smart=true)