PinholeSet.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 
18 #pragma once
19 
22 
23 namespace gtsam {
24 
28 template<class CAMERA>
29 class PinholeSet: public CameraSet<CAMERA> {
30 
31 private:
34 
35 protected:
36 
37 public:
38 
40  virtual ~PinholeSet() {
41  }
42 
45 
47  void print(const std::string& s = "") const override {
48  Base::print(s);
49  }
50 
52  bool equals(const PinholeSet& p, double tol = 1e-9) const {
53  return Base::equals(p, tol); // TODO all flags
54  }
55 
57 
60  const typename CAMERA::MeasurementVector& measured,
61  const TriangulationParameters& params) const {
62  return gtsam::triangulateSafe(*this, measured, params);
63  }
64 
65 private:
66 
67 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
68  friend class boost::serialization::access;
70  template<class ARCHIVE>
71  void serialize(ARCHIVE & ar, const unsigned int version) {
72  ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base);
73  }
74 #endif
75 };
76 
77 template<class CAMERA>
78 struct traits<PinholeSet<CAMERA> > : public Testable<PinholeSet<CAMERA> > {
79 };
80 
81 template<class CAMERA>
82 struct traits<const PinholeSet<CAMERA> > : public Testable<PinholeSet<CAMERA> > {
83 };
84 
85 } // \ namespace gtsam
gtsam::PinholeSet::triangulateSafe
TriangulationResult triangulateSafe(const typename CAMERA::MeasurementVector &measured, const TriangulationParameters &params) const
triangulateSafe
Definition: PinholeSet.h:59
CameraSet.h
Base class to create smart factors on poses or cameras.
s
RealScalar s
Definition: level1_cplx_impl.h:126
e
Array< double, 1, 3 > e(1./3., 0.5, 2.)
measured
Point2 measured(-17, 30)
vanilla::params
static const SmartProjectionParams params
Definition: smartFactorScenarios.h:69
triangulation.h
Functions for triangulation.
gtsam::CameraSet
A set of cameras, all with their own calibration.
Definition: CameraSet.h:37
gtsam::CameraSet::print
virtual void print(const std::string &s="") const
Definition: CameraSet.h:86
gtsam::TriangulationParameters
Definition: triangulation.h:562
gtsam::PinholeSet::Base
CameraSet< CAMERA > Base
Definition: PinholeSet.h:32
gtsam::triangulateSafe
TriangulationResult triangulateSafe(const CameraSet< CAMERA > &cameras, const typename CAMERA::MeasurementVector &measured, const TriangulationParameters &params)
triangulateSafe: extensive checking of the outcome
Definition: triangulation.h:702
conf.version
version
Definition: gtsam/3rdparty/GeographicLib/python/doc/conf.py:67
gtsam::CameraSet::equals
bool equals(const CameraSet &p, double tol=1e-9) const
equals
Definition: CameraSet.h:92
gtsam::PinholeSet::This
PinholeSet< CAMERA > This
Definition: PinholeSet.h:33
gtsam::PinholeSet::print
void print(const std::string &s="") const override
print
Definition: PinholeSet.h:47
gtsam
traits
Definition: SFMdata.h:40
gtsam::Testable
Definition: Testable.h:152
gtsam::traits
Definition: Group.h:36
p
float * p
Definition: Tutorial_Map_using.cpp:9
gtsam::tol
const G double tol
Definition: Group.h:79
gtsam::TriangulationResult
Definition: triangulation.h:642
gtsam::PinholeSet::equals
bool equals(const PinholeSet &p, double tol=1e-9) const
equals
Definition: PinholeSet.h:52
Base
Definition: test_virtual_functions.cpp:156
gtsam::PinholeSet
Definition: PinholeSet.h:29
gtsam::PinholeSet::~PinholeSet
virtual ~PinholeSet()
Definition: PinholeSet.h:40


gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:12:43