32 typedef boost::shared_ptr<EqualityFactorGraph> shared_ptr;
35 template <
class... Args>
void add(Args &&... args) {
36 emplace_shared<LinearEquality>(std::forward<Args>(args)...);
41 double total_error = 0.;
44 total_error += factor->error(x);
52 EqualityFactorGraph> {
LinearEquality derived from Base with constrained noise model.
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
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
A factor graph is a bipartite graph with factor nodes connected to variable nodes.
Definition: FactorGraph.h:93
boost::shared_ptr< LinearEquality > sharedFactor
Shared pointer to a factor.
Definition: FactorGraph.h:97
This class represents a collection of vector-valued variables associated each with a unique integer i...
Definition: VectorValues.h:74
Collection of all Linear Equality constraints Ax=b of a Programming problem as a Factor Graph.
Definition: EqualityFactorGraph.h:30
double error(const VectorValues &x) const
Compute error of a guess.
Definition: EqualityFactorGraph.h:40
void add(Args &&... args)
Add a linear inequality, forwards arguments to LinearInequality.
Definition: EqualityFactorGraph.h:35