37 typedef std::shared_ptr<InequalityFactorGraph>
shared_ptr;
41 const std::string&
str =
"",
52 template <
class... Args>
void add(Args &&...
args) {
53 emplace_shared<LinearInequality>(std::forward<Args>(
args)...);
62 if (factor->error(x) > 1
e-7)
63 return std::numeric_limits<double>::infinity();
void add(Args &&... args)
Add a linear inequality, forwards arguments to LinearInequality.
bool equals(const This &fg, double tol=1e-9) const
Check equality up to tolerance.
bool equals(const InequalityFactorGraph &other, double tol=1e-9) const
static const KeyFormatter DefaultKeyFormatter
virtual void print(const std::string &s="FactorGraph", const KeyFormatter &formatter=DefaultKeyFormatter) const
Print out graph to std::cout, with optional key formatter.
FactorGraph< LinearInequality > Base
std::shared_ptr< InequalityFactorGraph > shared_ptr
double error(const VectorValues &x) const
Array< double, 1, 3 > e(1./3., 0.5, 2.)
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
void print(const std::string &str="", const KeyFormatter &keyFormatter=DefaultKeyFormatter) const override
std::shared_ptr< LinearInequality > sharedFactor
Shared pointer to a factor.
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
LinearInequality derived from Base with constrained noise model.