Go to the documentation of this file.
29 typedef std::shared_ptr<VelocityConstraint3 >
shared_ptr;
38 return std::static_pointer_cast<gtsam::NonlinearFactor>(
46 if (H1) *H1 = Matrix::Identity(
p,
p);
47 if (H2) *H2 = -Matrix::Identity(
p,
p);
48 if (H3) *H3 = Matrix::Identity(
p,
p)*
dt_;
54 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
56 friend class boost::serialization::access;
57 template<
class ARCHIVE>
58 void serialize(ARCHIVE & ar,
const unsigned int ) {
60 ar & boost::serialization::make_nvp(
"NoiseModelFactor3",
61 boost::serialization::base_object<Base>(*
this));
std::shared_ptr< This > shared_ptr
virtual Vector evaluateError(const ValueTypes &... x, OptionalMatrixTypeT< ValueTypes >... H) const=0
std::shared_ptr< VelocityConstraint3 > shared_ptr
VelocityConstraint3(Key key1, Key key2, Key velKey, double dt, double mu=1000.0)
TODO: comment.
Vector evaluateError(const double &x1, const double &x2, const double &v, OptionalMatrixType H1, OptionalMatrixType H2, OptionalMatrixType H3) const override
const SharedNoiseModel & noiseModel() const
access to the noise model
gtsam::NonlinearFactor::shared_ptr clone() const override
~VelocityConstraint3() override
Non-linear factor base classes.
NoiseModelFactorN< double, double, double > Base
Array< int, Dynamic, 1 > v
Matrix * OptionalMatrixType
std::uint64_t Key
Integer nonlinear key type.
Pose3 x2(Rot3::Ypr(0.0, 0.0, 0.0), l2)
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:18:24