40 typedef LinearContainerFactor
This;
77 GTSAM_EXPORT
double error(
const Values&
c)
const override;
80 GTSAM_EXPORT
size_t dim()
const override;
134 GTSAM_EXPORT boost::shared_ptr<JacobianFactor>
toJacobian()
const;
137 GTSAM_EXPORT boost::shared_ptr<HessianFactor>
toHessian()
const;
153 template<
class ARCHIVE>
155 ar & boost::serialization::make_nvp(
"NonlinearFactor",
156 boost::serialization::base_object<Base>(*
this));
157 ar & BOOST_SERIALIZATION_NVP(factor_);
158 ar & BOOST_SERIALIZATION_NVP(linearizationPoint_);
163 template<>
struct traits<LinearContainerFactor> :
public Testable<LinearContainerFactor> {};
Factor Graph consisting of non-linear factors.
LinearContainerFactor This
static const KeyFormatter DefaultKeyFormatter
GTSAM_EXPORT boost::shared_ptr< HessianFactor > toHessian() const
const GaussianFactor::shared_ptr & factor() const
GaussianFactor::shared_ptr factor_
GTSAM_EXPORT GaussianFactor::shared_ptr negateToGaussian() const
friend class boost::serialization::access
GTSAM_EXPORT bool isHessian() const
const boost::optional< Values > & linearizationPoint() const
boost::shared_ptr< This > shared_ptr
GTSAM_EXPORT boost::shared_ptr< JacobianFactor > toJacobian() const
GTSAM_EXPORT size_t dim() const override
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
boost::shared_ptr< This > shared_ptr
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
boost::shared_ptr< This > shared_ptr
shared_ptr to this class
GTSAM_EXPORT void print(const std::string &s="", const KeyFormatter &keyFormatter=gtsam::DefaultKeyFormatter) const override
GTSAM_EXPORT NonlinearFactor::shared_ptr negateToNonlinear() const
GTSAM_EXPORT bool equals(const NonlinearFactor &f, double tol=1e-9) const override
std::vector< float > Values
NonlinearFactor::shared_ptr clone() const override
GTSAM_EXPORT bool isJacobian() const
GTSAM_EXPORT void initializeLinearizationPoint(const Values &linearizationPoint)
boost::optional< Values > linearizationPoint_
A Gaussian factor using the canonical parameters (information form)
static GTSAM_EXPORT NonlinearFactorGraph ConvertLinearGraph(const GaussianFactorGraph &linear_graph, const Values &linearizationPoint=Values())
GTSAM_EXPORT GaussianFactor::shared_ptr linearize(const Values &c) const override
void serialize(ARCHIVE &ar, const unsigned int)
GTSAM_EXPORT double error(const Values &c) const override
bool hasLinearizationPoint() const