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 
20 #pragma once
21 
24 
25 #include <unordered_map>
26 
27 namespace gtsam {
28 
29 class DiscreteFactor;
30 class Ordering;
31 
32 using SharedFactor = std::shared_ptr<Factor>;
33 
38 class GTSAM_EXPORT HybridFactorGraph : public FactorGraph<Factor> {
39  public:
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>
61 
65 
67  std::set<DiscreteKey> discreteKeys() const;
68 
70  KeySet discreteKeySet() const;
71 
73  std::unordered_map<Key, DiscreteKey> discreteKeyMap() const;
74 
76  const KeySet continuousKeySet() const;
77 
79 };
80 
81 } // namespace gtsam
gtsam::HybridFactorGraph
Definition: HybridFactorGraph.h:38
gtsam::HybridFactorGraph::HybridFactorGraph
HybridFactorGraph(const FactorGraph< DERIVEDFACTOR > &graph)
Definition: HybridFactorGraph.h:60
gtsam::FastSet
Definition: FastSet.h:51
gtsam::KeyVector
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
Definition: Key.h:92
DiscreteFactor
Discrete values for.
gtsam::FactorGraph
Definition: BayesTree.h:34
HybridFactor.h
Values
std::vector< float > Values
Definition: sparse_setter.cpp:45
gtsam
traits
Definition: chartTesting.h:28
FactorGraph.h
Factor Graph Base Class.
gtsam::Values
Definition: Values.h:65
gtsam::HybridFactorGraph::shared_ptr
std::shared_ptr< This > shared_ptr
shared_ptr to This
Definition: HybridFactorGraph.h:42
graph
NonlinearFactorGraph graph
Definition: doc/Code/OdometryExample.cpp:2
gtsam::SharedFactor
std::shared_ptr< Factor > SharedFactor
Definition: HybridFactorGraph.h:32
gtsam::HybridFactorGraph::Indices
KeyVector Indices
Definition: HybridFactorGraph.h:45


gtsam
Author(s):
autogenerated on Thu Jun 13 2024 03:02:34