21#include <gtsam/config.h>
23#ifdef GTSAM_ALLOW_DEPRECATED_SINCE_V43
34class EqualityFactorGraph:
public FactorGraph<LinearEquality> {
36 typedef std::shared_ptr<EqualityFactorGraph> shared_ptr;
39 template <
class... Args>
void add(Args &&... args) {
40 emplace_shared<LinearEquality>(std::forward<Args>(args)...);
44 double error(
const VectorValues& x)
const {
45 double total_error = 0.;
46 for (
const sharedFactor& factor : *
this) {
48 total_error += factor->error(x);
56 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 Group.h:37
A helper that implements the traits interface for GTSAM types.
Definition Testable.h:152
A factor graph is a bipartite graph with factor nodes connected to variable nodes.
Definition FactorGraph.h:58