gtsam
Loading...
Searching...
No Matches
HybridFactorGraph.h
Go to the documentation of this file.
1/* ----------------------------------------------------------------------------
2
3 * GTSAM Copyright 2010, Georgia Tech Research Corporation,
4 * Atlanta, Georgia 30332-0415
5 * All Rights Reserved
6 * Authors: Frank Dellaert, et al. (see THANKS for the full author list)
7
8 * See LICENSE for the license information
9
10 * -------------------------------------------------------------------------- */
11
19
20#pragma once
21
24
25#include <unordered_map>
26
27namespace gtsam {
28
29class DiscreteFactor;
30class Ordering;
31
32using SharedFactor = std::shared_ptr<Factor>;
33
38class GTSAM_EXPORT HybridFactorGraph : public FactorGraph<Factor> {
39 public:
40 using Base = FactorGraph<Factor>;
42 using shared_ptr = std::shared_ptr<This>;
43
45 using Indices = KeyVector;
46
47 public:
50
52 HybridFactorGraph() = default;
53
59 template <class DERIVEDFACTOR>
60 HybridFactorGraph(const FactorGraph<DERIVEDFACTOR>& graph) : Base(graph) {}
61
63 template <class CONTAINER>
64 explicit HybridFactorGraph(const CONTAINER& factors) : Base(factors) {}
65
69
71 std::set<DiscreteKey> discreteKeys() const;
72
74 KeySet discreteKeySet() const;
75
77 const KeySet continuousKeySet() const;
78
80};
81
82} // namespace gtsam
Factor Graph Base Class.
Global functions in a separate testing namespace.
Definition chartTesting.h:28
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
Definition Key.h:91
Base class for discrete probabilistic factors The most general one is the derived DecisionTreeFactor.
Definition DiscreteFactor.h:41
HybridFactorGraph(const CONTAINER &factors)
Construct from container of factors (shared_ptr or plain objects).
Definition HybridFactorGraph.h:64
HybridFactorGraph(const FactorGraph< DERIVEDFACTOR > &graph)
Implicit copy/downcast constructor to override explicit template container constructor.
Definition HybridFactorGraph.h:60
HybridFactorGraph This
this class
Definition HybridFactorGraph.h:41
gtsam::Values Values
backwards compatibility
Definition HybridFactorGraph.h:44
std::shared_ptr< This > shared_ptr
shared_ptr to This
Definition HybridFactorGraph.h:42
HybridFactorGraph()=default
Default constructor.
FactorGraph()
Definition FactorGraph.h:103
Definition Ordering.h:33
A non-templated config holding any types of Manifold-group elements.
Definition Values.h:65