42 using shared_ptr =
typename std::shared_ptr<BinaryMeasurement>;
69 std::cout << s <<
"BinaryMeasurement(" << keyFormatter(this->
key1()) <<
"," 70 << keyFormatter(this->
key2()) <<
")\n";
72 this->noiseModel_->print(
" noise model: ");
const SharedNoiseModel & noiseModel() const
Concept check for values that can be used in unit tests.
noiseModel::Diagonal::shared_ptr model
KeyVector keys_
The keys involved in this factor.
static const KeyFormatter DefaultKeyFormatter
void print(const std::string &s, const KeyFormatter &keyFormatter=DefaultKeyFormatter) const override
print
GTSAM_CONCEPT_ASSERT(IsTestable< T >)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
std::shared_ptr< Factor > shared_ptr
A shared_ptr to this class.
BinaryMeasurement(Key key1, Key key2, const T &measured, const SharedNoiseModel &model=nullptr)
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
T measured_
The measurement.
const T & measured() const
SharedNoiseModel noiseModel_
Noise model.
std::uint64_t Key
Integer nonlinear key type.
void Print(const CONTAINER &keys, const string &s, const KeyFormatter &keyFormatter)
bool equals(const BinaryMeasurement &expected, double tol=1e-9) const
noiseModel::Base::shared_ptr SharedNoiseModel
The base class for all factors.
bool equals(const This &other, double tol=1e-9) const
check equality