ExpressionFactorGraph.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 
23 
24 namespace gtsam {
25 
30 
31 public:
32 
35 
42  template<typename T>
43  void addExpressionFactor(const Expression<T>& h, const T& z,
44  const SharedNoiseModel& R) {
45  using F = ExpressionFactor<T>;
46  push_back(boost::allocate_shared<F>(Eigen::aligned_allocator<F>(), R, z, h));
47  }
48 
50 };
51 
52 }
Factor Graph consisting of non-linear factors.
Rot2 R(Rot2::fromAngle(0.1))
IsDerived< DERIVEDFACTOR > push_back(boost::shared_ptr< DERIVEDFACTOR > factor)
Add a factor directly using a shared_ptr.
Definition: FactorGraph.h:166
Signature::Row F
Definition: Signature.cpp:53
STL compatible allocator to use with types requiring a non standrad alignment.
Definition: Memory.h:721
traits
Definition: chartTesting.h:28
const double h
void addExpressionFactor(const Expression< T > &h, const T &z, const SharedNoiseModel &R)
noiseModel::Base::shared_ptr SharedNoiseModel
Definition: NoiseModel.h:734


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:42:03