58 virtual void print(
const std::string& s,
const KeyFormatter& keyFormatter = DefaultKeyFormatter)
const {
59 std::cout << s <<
"BiasedGPSFactor(" 60 << keyFormatter(this->
key1()) <<
"," 61 << keyFormatter(this->key2()) <<
")\n" 62 <<
" measured: " << measured_.transpose() << std::endl;
63 this->noiseModel_->print(
" noise model: ");
68 const This *e = dynamic_cast<const This*> (&expected);
76 boost::optional<Matrix&> H1 = boost::none, boost::optional<Matrix&> H2 =
83 (*H2) << Matrix3::Identity();
97 template<
class ARCHIVE>
98 void serialize(ARCHIVE & ar,
const unsigned int ) {
99 ar & boost::serialization::make_nvp(
"NoiseModelFactor2",
100 boost::serialization::base_object<Base>(*
this));
101 ar & BOOST_SERIALIZATION_NVP(measured_);
This is the base class for all factor types.
Definition: Factor.h:54
Matrix3 matrix() const
return 3*3 rotation matrix
Definition: Rot3M.cpp:180
A convenient base class for creating your own NoiseModelFactor with 2 variables.
Definition: NonlinearFactor.h:345
Vector evaluateError(const Pose3 &pose, const Point3 &bias, boost::optional< Matrix & > H1=boost::none, boost::optional< Matrix & > H2=boost::none) const
implement functions needed to derive from Factor
Definition: BiasedGPSFactor.h:75
boost::shared_ptr< BiasedGPSFactor > shared_ptr
The measurement.
Definition: BiasedGPSFactor.h:42
const Point3 & translation(OptionalJacobian< 3, 6 > H=boost::none) const
get translation
Definition: Pose3.cpp:265
std::uint64_t Key
Integer nonlinear key type.
Definition: types.h:57
BiasedGPSFactor()
default constructor - only use for serialization
Definition: BiasedGPSFactor.h:45
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
Key key1() const
methods to retrieve both keys
Definition: NonlinearFactor.h:377
BiasedGPSFactor(Key posekey, Key biaskey, const Point3 measured, const SharedNoiseModel &model)
Constructor.
Definition: BiasedGPSFactor.h:48
A manifold defines a space in which there is a notion of a linear tangent space that can be centered ...
Definition: concepts.h:30
Non-linear factor base classes.
virtual bool equals(const NonlinearFactor &expected, double tol=1e-9) const
equals
Definition: BiasedGPSFactor.h:67
const Rot3 & rotation(OptionalJacobian< 3, 6 > H=boost::none) const
get rotation
Definition: Pose3.cpp:272
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
const Point3 measured() const
return the measured
Definition: BiasedGPSFactor.h:89
noiseModel::Base::shared_ptr SharedNoiseModel
Note, deliberately not in noiseModel namespace.
Definition: NoiseModel.h:1072
friend class boost::serialization::access
Serialization function.
Definition: BiasedGPSFactor.h:96
virtual void print(const std::string &s, const KeyFormatter &keyFormatter=DefaultKeyFormatter) const
implement functions needed for Testable
Definition: BiasedGPSFactor.h:58
virtual bool equals(const NonlinearFactor &f, double tol=1e-9) const
Check if two factors are equal.
Definition: NonlinearFactor.cpp:71
Definition: BiasedGPSFactor.h:30