12#include <gtsam_unstable/dllexport.h>
46 gtsam::NonlinearFactor::shared_ptr
clone()
const override {
47 return boost::static_pointer_cast<gtsam::NonlinearFactor>(
48 gtsam::NonlinearFactor::shared_ptr(
new This(*
this))); }
51 Vector evaluateError(
const Pose3& pose,
const Point3& point,
52 boost::optional<Matrix&> H1 = boost::none, boost::optional<Matrix&> H2 = boost::none)
const override;
55 inline double measured()
const {
return measured_; }
61 void print(
const std::string& s=
"",
const KeyFormatter& keyFormatter = DefaultKeyFormatter)
const override;
66 friend class boost::serialization::access;
67 template<
class ARCHIVE>
68 void serialize(ARCHIVE & ar,
const unsigned int ) {
69 ar & boost::serialization::make_nvp(
"NoiseModelFactor2",
70 boost::serialization::base_object<Base>(*
this));
71 ar & BOOST_SERIALIZATION_NVP(measured_);
Non-linear factor base classes.
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
std::string serialize(const T &input)
serializes to a string
Definition: serialization.h:112
void print(const Matrix &A, const string &s, ostream &stream)
print without optional string, must specify cout yourself
Definition: Matrix.cpp:155
Vector3 Point3
As of GTSAM 4, in order to make GTSAM more lean, it is now possible to just typedef Point3 to Vector3...
Definition: Point3.h:35
noiseModel::Base::shared_ptr SharedNoiseModel
Note, deliberately not in noiseModel namespace.
Definition: NoiseModel.h:736
std::uint64_t Key
Integer nonlinear key type.
Definition: types.h:69
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Definition: Key.h:35
Template to create a binary predicate.
Definition: Testable.h:111
This is the base class for all factor types.
Definition: Factor.h:56
Nonlinear factor base class.
Definition: NonlinearFactor.h:43
A convenient base class for creating your own NoiseModelFactor with 2 variables.
Definition: NonlinearFactor.h:369
Binary factor for a relative elevation.
Definition: RelativeElevationFactor.h:28
double measured() const
return the measured
Definition: RelativeElevationFactor.h:55
gtsam::NonlinearFactor::shared_ptr clone() const override
Definition: RelativeElevationFactor.h:46