Go to the documentation of this file.
61 typedef typename std::shared_ptr<GaussMarkov1stOrderFactor>
shared_ptr;
78 std::cout <<
s <<
"GaussMarkov1stOrderFactor("
79 << keyFormatter(this->
key1()) <<
","
80 << keyFormatter(this->
key2()) <<
")\n";
101 for(
int i=0;
i<
tau_.size();
i++){
108 if(H1) *H1 = -1 *
alpha.asDiagonal();
109 if(H2) *H2 = Matrix::Identity(
v2.size(),
v2.size());
116 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
118 friend class boost::serialization::access;
119 template<
class ARCHIVE>
120 void serialize(ARCHIVE & ar,
const unsigned int ) {
121 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(
Base);
122 ar & BOOST_SERIALIZATION_NVP(
dt_);
123 ar & BOOST_SERIALIZATION_NVP(
tau_);
141 public Testable<GaussMarkov1stOrderFactor<VALUE> > {
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Concept check for values that can be used in unit tests.
virtual Vector evaluateError(const ValueTypes &... x, OptionalMatrixTypeT< ValueTypes >... H) const=0
SharedGaussian calcDiscreteNoiseModel(const SharedGaussian &model, double delta_t)
const EIGEN_DEVICE_FUNC ExpReturnType exp() const
SharedNoiseModel noiseModel_
std::shared_ptr< Gaussian > shared_ptr
GaussMarkov1stOrderFactor< VALUE > This
KeyFormatter DefaultKeyFormatter
Assign default key formatter.
void print(const std::string &s, const KeyFormatter &keyFormatter=DefaultKeyFormatter) const override
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
std::shared_ptr< GaussMarkov1stOrderFactor > shared_ptr
static shared_ptr SqrtInformation(const Matrix &R, bool smart=true)
bool equals(const NonlinearFactor &f, double tol=1e-9) const override
noiseModel::Gaussian::shared_ptr SharedGaussian
bool equals(const NonlinearFactor &expected, double tol=1e-9) const override
noiseModel::Diagonal::shared_ptr model
GaussMarkov1stOrderFactor(const Key &key1, const Key &key2, double delta_t, Vector tau, const SharedGaussian &model)
NoiseModelFactorN< VALUE, VALUE > Base
Non-linear factor base classes.
Vector evaluateError(const VALUE &p1, const VALUE &p2, OptionalMatrixType H1, OptionalMatrixType H2) const override
Base class and basic functions for Lie types.
GaussMarkov1stOrderFactor()
~GaussMarkov1stOrderFactor() override
Matrix * OptionalMatrixType
A factor with a quadratic error function - a Gaussian.
std::uint64_t Key
Integer nonlinear key type.
Jet< T, N > sqrt(const Jet< T, N > &f)
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:11:34