48 typedef std::shared_ptr<BiasedGPSFactor> shared_ptr;
56 Base(model, posekey, biaskey), measured_(
measured) {
65 std::cout << s <<
"BiasedGPSFactor("
66 << keyFormatter(this->
key<1>()) <<
","
67 << keyFormatter(this->
key<2>()) <<
")\n"
68 <<
" measured: " << measured_.transpose() << std::endl;
69 this->noiseModel_->print(
" noise model: ");
74 const This *e =
dynamic_cast<const This*
> (&expected);
101#if GTSAM_ENABLE_BOOST_SERIALIZATION
103 friend class boost::serialization::access;
104 template<
class ARCHIVE>
105 void serialize(ARCHIVE & ar,
const unsigned int ) {
107 ar & boost::serialization::make_nvp(
"NoiseModelFactor2",
108 boost::serialization::base_object<Base>(*
this));
109 ar & BOOST_SERIALIZATION_NVP(measured_);
Macros for Matrix constants to avoid excessive template instantiation.
3D Pose manifold SO(3) x R^3 and group SE(3)
Base class for noise model factors with N variables.
Non-linear factor base classes.
Global functions in a separate testing namespace.
Definition chartTesting.h:28
KeyFormatter DefaultKeyFormatter
Assign default key formatter.
Definition Key.cpp:30
Matrix * OptionalMatrixType
This typedef will be used everywhere boost::optional<Matrix&> reference was used previously.
Definition NonlinearFactor.h:57
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:38
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
noiseModel::Base::shared_ptr SharedNoiseModel
Aliases.
Definition NoiseModel.h:846
std::uint64_t Key
Integer nonlinear key type.
Definition types.h:43
A manifold defines a space in which there is a notion of a linear tangent space that can be centered ...
Definition Group.h:37
const Rot3 & rotation(ComponentJacobian H={}) const
Rotation component.
Definition ExtendedPose3-inl.h:76
A 3D pose (R,t) : (Rot3,Point3).
Definition Pose3.h:42
const Point3 & translation(OptionalJacobian< 3, 6 > Hself={}) const
get translation
Definition Pose3.cpp:158
Matrix3 matrix() const
return 3*3 rotation matrix
Definition Rot3M.cpp:261
bool equals(const This &other, double tol=1e-9) const
check equality
Definition Factor.cpp:42
NoiseModelFactorT()
Definition NoiseModelFactorN.h:257
virtual Vector3 evaluateError(const ValueTypes &... x, OptionalMatrixTypeT< ValueTypes >... H) const=0
Key key() const
Definition NoiseModelFactorN.h:307
Nonlinear factor base class.
Definition NonlinearFactor.h:70
A class to model GPS measurements, including a bias term which models common-mode errors and that can...
Definition BiasedGPSFactor.h:33
BiasedGPSFactor()
default constructor - only use for serialization
Definition BiasedGPSFactor.h:51
Vector3 evaluateError(const Pose3 &pose, const Point3 &bias, OptionalMatrixType H1, OptionalMatrixType H2) const override
implement functions needed to derive from Factor
Definition BiasedGPSFactor.h:81
bool equals(const NonlinearFactor &expected, double tol=1e-9) const override
equals
Definition BiasedGPSFactor.h:73
const Point3 measured() const
return the measured
Definition BiasedGPSFactor.h:95
BiasedGPSFactor(Key posekey, Key biaskey, const Point3 measured, const SharedNoiseModel &model)
Constructor.
Definition BiasedGPSFactor.h:54
void print(const std::string &s, const KeyFormatter &keyFormatter=DefaultKeyFormatter) const override
implement functions needed for Testable
Definition BiasedGPSFactor.h:64