42 using Base::evaluateError;
45 typedef std::shared_ptr<EssentialMatrixConstraint>
shared_ptr;
60 Base(model, key1, key2), measuredE_(measuredE) {
75 void print(
const std::string&
s =
"",
94 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION 96 friend class boost::serialization::access;
97 template<
class ARCHIVE>
98 void serialize(ARCHIVE & ar,
const unsigned int ) {
101 & boost::serialization::make_nvp(
"NoiseModelFactor2",
102 boost::serialization::base_object<Base>(*
this));
103 ar & BOOST_SERIALIZATION_NVP(measuredE_);
void print(const Matrix &A, const string &s, ostream &stream)
std::string serialize(const T &input)
serializes to a string
noiseModel::Diagonal::shared_ptr model
EssentialMatrixConstraint(Key key1, Key key2, const EssentialMatrix &measuredE, const SharedNoiseModel &model)
std::shared_ptr< EssentialMatrixConstraint > shared_ptr
EssentialMatrixConstraint()
static const KeyFormatter DefaultKeyFormatter
Matrix * OptionalMatrixType
const Symbol key1('v', 1)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
const EssentialMatrix & measured() const
EssentialMatrixConstraint This
Non-linear factor base classes.
std::shared_ptr< This > shared_ptr
#define GTSAM_MAKE_ALIGNED_OPERATOR_NEW
gtsam::NonlinearFactor::shared_ptr clone() const override
EssentialMatrix measuredE_
std::uint64_t Key
Integer nonlinear key type.
NoiseModelFactorN< Pose3, Pose3 > Base
~EssentialMatrixConstraint() override
noiseModel::Base::shared_ptr SharedNoiseModel
const Symbol key2('v', 2)