37 typedef boost::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();
bool equals(const InequalityFactorGraph &other, double tol=1e-9) const
double error(const VectorValues &x) const
static const KeyFormatter DefaultKeyFormatter
bool equals(const This &fg, double tol=1e-9) const
FactorGraph< LinearInequality > Base
boost::shared_ptr< LinearInequality > sharedFactor
Shared pointer to a factor.
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.)
void print(const std::string &str="", const KeyFormatter &keyFormatter=DefaultKeyFormatter) const override
virtual void print(const std::string &s="FactorGraph", const KeyFormatter &formatter=DefaultKeyFormatter) const
print out graph
void add(Args &&...args)
Add a linear inequality, forwards arguments to LinearInequality.
boost::shared_ptr< InequalityFactorGraph > shared_ptr
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.