Go to the documentation of this file.
51 typedef typename std::shared_ptr<PoseBetweenFactor>
shared_ptr;
66 return std::static_pointer_cast<gtsam::NonlinearFactor>(
73 std::cout <<
s <<
"BetweenFactor("
74 << keyFormatter(this->
key1()) <<
","
75 << keyFormatter(this->
key2()) <<
")\n";
76 measured_.print(
" measured: ");
77 if(this->body_P_sensor_)
78 this->body_P_sensor_->print(
" sensor pose in body frame: ");
87 && this->measured_.equals(
e->measured_,
tol)
109 POSE hx =
p1.between(
p2, H1, H2);
122 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
124 friend class boost::serialization::access;
125 template<
class ARCHIVE>
126 void serialize(ARCHIVE & ar,
const unsigned int ) {
127 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(
Base);
std::shared_ptr< This > shared_ptr
#define GTSAM_CONCEPT_POSE_TYPE(T)
NoiseModelFactorN< POSE, POSE > Base
Concept-checking macros for geometric objects Each macro instantiates a concept check structure,...
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Concept check for values that can be used in unit tests.
virtual Vector evaluateError(const ValueTypes &... x, OptionalMatrixTypeT< ValueTypes >... H) const=0
~PoseBetweenFactor() override
SharedNoiseModel noiseModel_
static Pose3 body_P_sensor(Rot3::RzRyRx(-M_PI_2, 0.0, -M_PI_2), Point3(0.25, -0.10, 1.0))
KeyFormatter DefaultKeyFormatter
Assign default key formatter.
const POSE & measured() const
bool equals(const NonlinearFactor &expected, double tol=1e-9) const override
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
PoseBetweenFactor< POSE > This
bool equals(const NonlinearFactor &f, double tol=1e-9) const override
std::optional< POSE > body_P_sensor_
The pose of the sensor in the body frame.
noiseModel::Base::shared_ptr SharedNoiseModel
noiseModel::Diagonal::shared_ptr model
Non-linear factor base classes.
#define GTSAM_CONCEPT_TESTABLE_TYPE(T)
Matrix * OptionalMatrixType
void print(const std::string &s, const KeyFormatter &keyFormatter=DefaultKeyFormatter) const override
gtsam::NonlinearFactor::shared_ptr clone() const override
std::uint64_t Key
Integer nonlinear key type.
PoseBetweenFactor(Key key1, Key key2, const POSE &measured, const SharedNoiseModel &model, std::optional< POSE > body_P_sensor={})
Vector evaluateError(const POSE &p1, const POSE &p2, OptionalMatrixType H1, OptionalMatrixType H2) const override
std::shared_ptr< PoseBetweenFactor > shared_ptr
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:03:36