10 #include <boost/assign/list_of.hpp> 17 DummyFactor::DummyFactor(
const Key&
key1,
size_t dim1,
const Key&
key2,
size_t dim2)
20 dims_.push_back(dim1);
21 dims_.push_back(dim2);
30 std::cout << s <<
" DummyFactor dim = " <<
rowDim_ <<
", keys = { ";
31 for(
Key key: this->
keys()) { std::cout << keyFormatter(
key) <<
" "; }
32 std::cout <<
"}" << std::endl;
42 boost::shared_ptr<GaussianFactor>
46 return boost::shared_ptr<JacobianFactor>();
49 std::vector<std::pair<Key, Matrix> > terms(this->
size());
50 for(
size_t j=0;
j<this->
size(); ++
j) {
51 terms[
j].first =
keys()[
j];
bool equals(const This &other, double tol=1e-9) const
check equality
noiseModel::Diagonal::shared_ptr model
virtual bool active(const Values &) const
static shared_ptr Create(size_t dim)
void print(const std::string &s="", const KeyFormatter &keyFormatter=DefaultKeyFormatter) const override
const Symbol key1('v', 1)
size_t rowDim_
choose dimension for the rows
std::vector< size_t > dims_
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
boost::shared_ptr< GaussianFactor > linearize(const Values &c) const override
boost::shared_ptr< Diagonal > shared_ptr
boost::shared_ptr< This > shared_ptr
shared_ptr to this class
const KeyVector & keys() const
Access the factor's involved variable keys.
const Symbol key2('v', 2)
bool equals(const NonlinearFactor &f, double tol=1e-9) const override
std::uint64_t Key
Integer nonlinear key type.