38 using This = HybridNonlinearFactorGraph;
47 HybridNonlinearFactorGraph() =
default;
54 template <
class DERIVEDFACTOR>
64 const std::string& s =
"HybridNonlinearFactorGraph",
70 const std::string& str =
"HybridNonlinearFactorGraph: ",
74 [](
const Factor*, double, size_t) {
return true; }})
const;
87 std::shared_ptr<HybridGaussianFactorGraph> linearize(
88 const Values& continuousValues)
const;
104 AlgebraicDecisionTree<Key> errorTree(
const Values& values)
const;
116 AlgebraicDecisionTree<Key> discretePosterior(
117 const Values& continuousValues)
const;
120 HybridNonlinearFactorGraph restrict(
121 const DiscreteValues& assignment)
const;
128 :
public Testable<HybridNonlinearFactorGraph> {};
Factor graph with utilities for hybrid factors.
Predicate used to filter factor-graph error output.
Global functions in a separate testing namespace.
Definition chartTesting.h:28
KeyFormatter DefaultKeyFormatter
Assign default key formatter.
Definition Key.cpp:30
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
Definition Key.h:91
void print(const Matrix &A, const string &s, ostream &stream)
print without optional string, must specify cout yourself
Definition Matrix.cpp:143
std::function< bool(const Factor *, double, std::size_t)> FactorErrorPredicate
Predicate used to select factor errors for graph diagnostics.
Definition FactorErrorPredicate.h:27
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 Group.h:37
A helper that implements the traits interface for GTSAM types.
Definition Testable.h:152
HybridFactorGraph()=default
Default constructor.
Definition HybridGaussianFactorGraph.h:107
Definition HybridNonlinearFactorGraph.h:34
std::shared_ptr< This > shared_ptr
shared_ptr to This
Definition HybridNonlinearFactorGraph.h:39
gtsam::Values Values
backwards compatibility
Definition HybridNonlinearFactorGraph.h:41
HybridNonlinearFactorGraph(const FactorGraph< DERIVEDFACTOR > &graph)
Implicit copy/downcast constructor to override explicit template container constructor.
Definition HybridNonlinearFactorGraph.h:55
HybridNonlinearFactorGraph This
this class
Definition HybridNonlinearFactorGraph.h:38
HybridValues represents a collection of DiscreteValues and VectorValues.
Definition HybridValues.h:37
A factor graph is a bipartite graph with factor nodes connected to variable nodes.
Definition FactorGraph.h:58
A non-templated config holding any types of Manifold-group elements.
Definition Values.h:65