42 using shared_ptr =
typename boost::shared_ptr<BinaryMeasurement>;
72 std::cout << s <<
"BinaryMeasurement(" << keyFormatter(this->
key1()) <<
"," 73 << keyFormatter(this->
key2()) <<
")\n";
75 this->noiseModel_->print(
" noise model: ");
const SharedNoiseModel & noiseModel() const
BOOST_CONCEPT_ASSERT((IsTestable< T >))
bool equals(const This &other, double tol=1e-9) const
check equality
const T & measured() 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
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
BinaryMeasurement(Key key1, Key key2, const T &measured, const SharedNoiseModel &model=nullptr)
T measured_
The measurement.
boost::shared_ptr< Factor > shared_ptr
A shared_ptr to this class.
bool equals(const BinaryMeasurement &expected, double tol=1e-9) const
virtual ~BinaryMeasurement()
Destructor.
SharedNoiseModel noiseModel_
Noise model.
std::uint64_t Key
Integer nonlinear key type.
void Print(const CONTAINER &keys, const string &s, const KeyFormatter &keyFormatter)
noiseModel::Base::shared_ptr SharedNoiseModel
The base class for all factors.