Go to the documentation of this file.
56 return std::static_pointer_cast<gtsam::NonlinearFactor>(
63 std::cout <<
s <<
"AntiFactor version of:" << std::endl;
103 return gaussianFactor->negate();
109 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
111 friend class boost::serialization::access;
112 template<
class ARCHIVE>
113 void serialize(ARCHIVE & ar,
const unsigned int ) {
114 ar & boost::serialization::make_nvp(
"AntiFactor",
115 boost::serialization::base_object<Base>(*
this));
116 ar & BOOST_SERIALIZATION_NVP(
factor_);
std::shared_ptr< This > shared_ptr
gtsam::NonlinearFactor::shared_ptr clone() const override
AntiFactor(NonlinearFactor::shared_ptr factor)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
std::shared_ptr< AntiFactor > shared_ptr
virtual bool equals(const NonlinearFactor &f, double tol=1e-9) const
bool active(const Values &c) const override
size_t dim() const override
KeyFormatter DefaultKeyFormatter
Assign default key formatter.
void print(const std::string &s, const KeyFormatter &keyFormatter=DefaultKeyFormatter) const override
double error(const Values &c) 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< This > shared_ptr
shared_ptr to this class
std::shared_ptr< GaussianFactor > linearize(const Values &c) const override
bool equals(const NonlinearFactor &expected, double tol=1e-9) const override
NonlinearFactor::shared_ptr sharedFactor
Non-linear factor base classes.
const KeyVector & keys() const
Access the factor's involved variable keys.
A factor with a quadratic error function - a Gaussian.
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:01:48