10#include <gtsam/geometry/OrientedPlane3.h>
37 Key poseKey,
Key landmarkKey)
41 void print(
const std::string& s =
"OrientedPlane3Factor",
42 const KeyFormatter& keyFormatter = DefaultKeyFormatter)
const override;
47 boost::optional<Matrix&> H1 = boost::none,
48 boost::optional<Matrix&> H2 = boost::none)
const override;
69 void print(
const std::string& s =
"OrientedPlane3DirectionPrior",
70 const KeyFormatter& keyFormatter = DefaultKeyFormatter)
const override;
76 boost::optional<Matrix&> H = boost::none)
const override;
Non-linear factor base classes.
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
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
Represents an infinite plane in 3D, which is composed of a planar normal and its perpendicular distan...
Definition: OrientedPlane3.h:36
This is the base class for all factor types.
Definition: Factor.h:56
Nonlinear factor base class.
Definition: NonlinearFactor.h:43
const SharedNoiseModel & noiseModel() const
access to the noise model
Definition: NonlinearFactor.h:211
A convenient base class for creating your own NoiseModelFactor with 1 variable.
Definition: NonlinearFactor.h:285
A convenient base class for creating your own NoiseModelFactor with 2 variables.
Definition: NonlinearFactor.h:369
Factor to measure a planar landmark from a given pose.
Definition: OrientedPlane3Factor.h:18
OrientedPlane3Factor(const Vector4 &z, const SharedGaussian &noiseModel, Key poseKey, Key landmarkKey)
Constructor with measured plane (a,b,c,d) coefficients.
Definition: OrientedPlane3Factor.h:36
void print(const std::string &s="OrientedPlane3Factor", const KeyFormatter &keyFormatter=DefaultKeyFormatter) const override
print
Definition: OrientedPlane3Factor.cpp:15
Vector evaluateError(const Pose3 &pose, const OrientedPlane3 &plane, boost::optional< Matrix & > H1=boost::none, boost::optional< Matrix & > H2=boost::none) const override
evaluateError
Definition: OrientedPlane3Factor.cpp:25
OrientedPlane3Factor()
Constructor.
Definition: OrientedPlane3Factor.h:25
Definition: OrientedPlane3Factor.h:52
OrientedPlane3DirectionPrior(Key key, const Vector4 &z, const SharedGaussian &noiseModel)
Constructor with measured plane coefficients (a,b,c,d), noise model, landmark symbol.
Definition: OrientedPlane3Factor.h:64
bool equals(const NonlinearFactor &expected, double tol=1e-9) const override
equals
Definition: OrientedPlane3Factor.cpp:58
NoiseModelFactor1< OrientedPlane3 > Base
measured plane parameters
Definition: OrientedPlane3Factor.h:55
OrientedPlane3DirectionPrior()
Constructor.
Definition: OrientedPlane3Factor.h:60
Vector evaluateError(const OrientedPlane3 &plane, boost::optional< Matrix & > H=boost::none) const override
Override this method to finish implementing a unary factor.
Definition: OrientedPlane3Factor.cpp:66
void print(const std::string &s="OrientedPlane3DirectionPrior", const KeyFormatter &keyFormatter=DefaultKeyFormatter) const override
print
Definition: OrientedPlane3Factor.cpp:49