21 #include <gtsam/nonlinear/ExpressionFactor.h> 26 template <
typename A1,
typename A2>
35 template <
typename A1,
typename A2,
36 typename T =
typename Bearing<A1, A2>::result_type>
46 : Base(key1, key2, model, measured) {
58 void print(
const std::string& s =
"",
60 std::cout << s <<
"BearingFactor" << std::endl;
66 template <
typename A1,
typename A2,
typename T>
68 :
public Testable<BearingFactor<A1, A2, T> > {};
Expression class that supports automatic differentiation.
Definition: Expression.h:49
This is the base class for all factor types.
Definition: Factor.h:51
noiseModel::Base::shared_ptr SharedNoiseModel
Note, deliberately not in noiseModel namespace.
Definition: NoiseModel.h:1072
Definition: BearingRange.h:32
void print(const std::string &s="", const KeyFormatter &keyFormatter=DefaultKeyFormatter) const
print relies on Testable traits being defined for T
Definition: ExpressionFactor.h:64
void print(const std::string &s="", const KeyFormatter &kf=DefaultKeyFormatter) const
print
Definition: BearingFactor.h:58
A helper that implements the traits interface for GTSAM types.
Definition: Testable.h:150
Definition: BearingFactor.h:37
Binary specialization of ExpressionFactor meant as a base class for binary factors Enforces expressio...
Definition: ExpressionFactor.h:204
BearingFactor()
default constructor
Definition: BearingFactor.h:41
virtual Expression< T > expression(Key key1, Key key2) const
Recreate expression from given keys_ and measured_, used in load Needed to deserialize a derived fact...
Definition: BearingFactor.h:51
A manifold defines a space in which there is a notion of a linear tangent space that can be centered ...
Definition: concepts.h:30
const T & measured() const
return the measurement
Definition: ExpressionFactor.h:61
void initialize(const Expression< T > &expression)
Initialize with constructor arguments.
Definition: ExpressionFactor.h:151
BearingFactor(Key key1, Key key2, const T &measured, const SharedNoiseModel &model)
primary constructor
Definition: BearingFactor.h:44
std::uint64_t Key
Integer nonlinear key type.
Definition: types.h:57
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
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