26 typedef boost::shared_ptr<VelocityConstraint3 >
shared_ptr;
40 boost::optional<Matrix&> H1 = boost::none,
41 boost::optional<Matrix&> H2 = boost::none,
42 boost::optional<Matrix&> H3 = boost::none)
const override {
44 if (H1) *H1 = Matrix::Identity(p,p);
45 if (H2) *H2 = -Matrix::Identity(p,p);
46 if (H3) *H3 = Matrix::Identity(p,p)*
dt_;
47 return (
Vector(1) << x1+v*dt_-x2).finished();
54 template<
class ARCHIVE>
56 ar & boost::serialization::make_nvp(
"NoiseModelFactor3",
57 boost::serialization::base_object<Base>(*
this));
Pose3 x2(Rot3::Ypr(0.0, 0.0, 0.0), l2)
const SharedNoiseModel & noiseModel() const
access to the noise model
Vector evaluateError(const double &x1, const double &x2, const double &v, boost::optional< Matrix & > H1=boost::none, boost::optional< Matrix & > H2=boost::none, boost::optional< Matrix & > H3=boost::none) const override
NoiseModelFactor3< double, double, double > Base
boost::shared_ptr< VelocityConstraint3 > shared_ptr
boost::shared_ptr< This > shared_ptr
~VelocityConstraint3() override
friend class boost::serialization::access
Non-linear factor base classes.
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.
void serialize(ARCHIVE &ar, const unsigned int)