Go to the documentation of this file.
34 const Values& linearizationPoint,
Key lastKey,
40 const Ordering lastKeyAsOrdering{lastKey};
46 const T& current = linearizationPoint.
at<
T>(lastKey);
53 assert(marginal->nrFrontals() == 1);
54 assert(marginal->nrParents() == 0);
55 *newPrior = std::make_shared<JacobianFactor>(
56 marginal->keys().front(),
57 marginal->getA(marginal->begin()),
58 marginal->getb() - marginal->getA(marginal->begin()) *
result[lastKey],
59 marginal->get_model());
65 template <
class VALUE>
83 const auto keys = motionFactor.
keys();
89 linearFactorGraph.
push_back(priorFactor_);
99 x_ = solve_(linearFactorGraph, linearizationPoint,
keys[1], &priorFactor_);
105 template<
class VALUE>
108 const auto keys = measurementFactor.
keys();
114 linearFactorGraph.
push_back(priorFactor_);
117 Values linearizationPoint;
123 x_ = solve_(linearFactorGraph, linearizationPoint,
keys[0], &priorFactor_);
Linear Factor Graph where all factors are Gaussians.
ExtendedKalmanFilter(Key key_initial, T x_initial, noiseModel::Gaussian::shared_ptr P_initial)
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
std::shared_ptr< BayesNetType > marginalMultifrontalBayesNet(const Ordering &variables, const Eliminate &function=EliminationTraitsType::DefaultEliminate, OptionalVariableIndex variableIndex={}) const
Chordal Bayes Net, the result of eliminating a factor graph.
std::shared_ptr< Gaussian > shared_ptr
std::shared_ptr< GaussianFactor > linearize(const Values &x) const override
const ValueType at(Key j) const
T update(const NoiseModelFactor &measurementFactor)
JacobianFactor::shared_ptr priorFactor_
static shared_ptr Create(size_t dim)
static T solve_(const GaussianFactorGraph &linearFactorGraph, const Values &linearizationPoints, Key x, JacobianFactor::shared_ptr *newPrior)
T predict(const NoiseModelFactor &motionFactor)
Class to perform generic Kalman Filtering using nonlinear factor graphs.
Non-linear factor base classes.
IsDerived< DERIVEDFACTOR > push_back(std::shared_ptr< DERIVEDFACTOR > factor)
Add a factor directly using a shared_ptr.
const KeyVector & keys() const
Access the factor's involved variable keys.
void insert(Key j, const Value &val)
std::shared_ptr< This > shared_ptr
shared_ptr to this class
std::shared_ptr< This > shared_ptr
shared_ptr to this class
std::uint64_t Key
Integer nonlinear key type.
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:11:32