37 typedef boost::shared_ptr<InequalityFactorGraph> shared_ptr;
41 const std::string& str =
"",
42 const KeyFormatter& keyFormatter = DefaultKeyFormatter)
const override {
52 template <
class... Args>
void add(Args &&... args) {
62 if (factor->error(x) > 1e-7)
63 return std::numeric_limits<double>::infinity();
LinearInequality derived from Base with constrained noise model.
Global functions in a separate testing namespace.
Definition chartTesting.h:28
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Definition Key.h:35
A manifold defines a space in which there is a notion of a linear tangent space that can be centered ...
Definition concepts.h:30
A helper that implements the traits interface for GTSAM types.
Definition Testable.h:151
virtual void print(const std::string &s="FactorGraph", const KeyFormatter &formatter=DefaultKeyFormatter) const
FactorGraph()
Definition FactorGraph.h:142
IsDerived< DERIVEDFACTOR > emplace_shared(Args &&... args)
Definition FactorGraph.h:192
bool equals(const This &fg, double tol=1e-9) const
boost::shared_ptr< LinearInequality > sharedFactor
Definition FactorGraph.h:101
VectorValues represents a collection of vector-valued variables associated each with a unique integer...
Definition VectorValues.h:74
Collection of all Linear Inequality constraints Ax-b <= 0 of a Programming problem as a Factor Graph.
Definition InequalityFactorGraph.h:32
void add(Args &&... args)
Add a linear inequality, forwards arguments to LinearInequality.
Definition InequalityFactorGraph.h:52
double error(const VectorValues &x) const
Compute error of a guess.
Definition InequalityFactorGraph.h:59
bool equals(const InequalityFactorGraph &other, double tol=1e-9) const
equals
Definition InequalityFactorGraph.h:47
void print(const std::string &str="", const KeyFormatter &keyFormatter=DefaultKeyFormatter) const override
print
Definition InequalityFactorGraph.h:40