HybridNonlinearFactorGraph.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 #pragma once
20 
22 
23 namespace gtsam {
24 
25 class HybridGaussianFactorGraph;
26 
33 class GTSAM_EXPORT HybridNonlinearFactorGraph : public HybridFactorGraph {
34  protected:
35  public:
38  using shared_ptr = std::shared_ptr<This>;
39 
41  using Indices = KeyVector;
42 
45 
46  HybridNonlinearFactorGraph() = default;
47 
53  template <class DERIVEDFACTOR>
55  : Base(graph) {}
56 
60 
62  void print(
63  const std::string& s = "HybridNonlinearFactorGraph",
64  const KeyFormatter& keyFormatter = DefaultKeyFormatter) const override;
65 
69 
77  std::shared_ptr<HybridGaussianFactorGraph> linearize(
78  const Values& continuousValues) const;
80 };
81 
82 template <>
84  : public Testable<HybridNonlinearFactorGraph> {};
85 
86 } // namespace gtsam
void print(const Matrix &A, const string &s, ostream &stream)
Definition: Matrix.cpp:155
NonlinearFactorGraph graph
static const KeyFormatter DefaultKeyFormatter
Definition: Key.h:43
std::shared_ptr< This > shared_ptr
shared_ptr to This
RealScalar s
HybridNonlinearFactorGraph(const FactorGraph< DERIVEDFACTOR > &graph)
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
traits
Definition: chartTesting.h:28
std::vector< float > Values
Factor graph with utilities for hybrid factors.
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
Definition: Key.h:86


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:34:20