46 virtual gtsam::NonlinearFactor::shared_ptr
clone()
const {
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;
55 inline double measured()
const {
return measured_; }
61 void print(
const std::string& s=
"",
const KeyFormatter& keyFormatter = DefaultKeyFormatter)
const;
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_);
This is the base class for all factor types.
Definition: Factor.h:54
A convenient base class for creating your own NoiseModelFactor with 2 variables.
Definition: NonlinearFactor.h:345
void print(const Matrix &A, const string &s, ostream &stream)
print without optional string, must specify cout yourself
Definition: Matrix.cpp:141
Binary factor for a relative elevation.
Definition: RelativeElevationFactor.h:28
std::uint64_t Key
Integer nonlinear key type.
Definition: types.h:57
Template to create a binary predicate.
Definition: Testable.h:110
double measured() const
return the measured
Definition: RelativeElevationFactor.h:55
virtual gtsam::NonlinearFactor::shared_ptr clone() const
Definition: RelativeElevationFactor.h:46
boost::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Definition: Key.h:33
Nonlinear factor base class.
Definition: NonlinearFactor.h:50
Non-linear factor base classes.
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
noiseModel::Base::shared_ptr SharedNoiseModel
Note, deliberately not in noiseModel namespace.
Definition: NoiseModel.h:1072
Symbols for exporting classes and methods from DLLs.