29 typedef std::shared_ptr<VelocityConstraint3 >
shared_ptr;
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_;
49 return (
Vector(1) << x1+v*dt_-x2).finished();
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::string serialize(const T &input)
serializes to a string
virtual Vector evaluateError(const ValueTypes &... x, OptionalMatrixTypeT< ValueTypes >... H) const=0
Pose3 x2(Rot3::Ypr(0.0, 0.0, 0.0), l2)
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
Matrix * OptionalMatrixType
std::shared_ptr< VelocityConstraint3 > shared_ptr
Array< int, Dynamic, 1 > v
~VelocityConstraint3() override
NoiseModelFactorN< double, double, double > Base
Non-linear factor base classes.
std::shared_ptr< This > shared_ptr
gtsam::NonlinearFactor::shared_ptr clone() const override
std::uint64_t Key
Integer nonlinear key type.
VelocityConstraint3(Key key1, Key key2, Key velKey, double dt, double mu=1000.0)
TODO: comment.