39 #ifndef INCLUDE_OKVIS_OPENGV_FRAMERELATIVEADAPTER_HPP_
40 #define INCLUDE_OKVIS_OPENGV_FRAMERELATIVEADAPTER_HPP_
44 #include <opengv/types.hpp>
45 #include <opengv/relative_pose/CentralRelativeAdapter.hpp>
57 namespace relative_pose {
62 using RelativeAdapterBase::_t12;
63 using RelativeAdapterBase::_R12;
66 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
82 uint64_t multiFrameIdA,
size_t camIdA,
83 uint64_t multiFrameIdB,
size_t camIdB);
110 virtual opengv::translation_t
getCamOffset1(
size_t index)
const;
126 virtual opengv::translation_t
getCamOffset2(
size_t index)
const;
virtual opengv::rotation_t getCamRotation2(size_t index) const
Retrieve the rotation from a camera of a correspondence in viewpoint 2 to the viewpoint origin...
Definition: FrameRelativeAdapter.cpp:284
The estimator class.
Definition: Estimator.hpp:77
Header file for the NCameraSystem class.
virtual opengv::bearingVector_t getBearingVector2(size_t index) const
Retrieve the bearing vector of a correspondence in viewpoint 2.
Definition: FrameRelativeAdapter.cpp:254
virtual opengv::translation_t getCamOffset1(size_t index) const
Retrieve the position of a camera of a correspondence in viewpoint 1 seen from the origin of the view...
Definition: FrameRelativeAdapter.cpp:260
opengv::bearingVectors_t bearingVectors1_
The bearing vectors of the correspondences in frame 1.
Definition: FrameRelativeAdapter.hpp:184
Adapter for relative pose RANSAC (2D2D)
Definition: FrameRelativeAdapter.hpp:60
size_t getMatchKeypointIdxB(size_t index)
Get the keypoint index in frame 2 of a correspondence.
Definition: FrameRelativeAdapter.hpp:169
A class that assembles multiple cameras into a system of (potentially different) cameras.
Definition: NCameraSystem.hpp:61
size_t getMatchKeypointIdxA(size_t index)
Get the keypoint index in frame 1 of a correspondence.
Definition: FrameRelativeAdapter.hpp:161
virtual ~FrameRelativeAdapter()
Definition: FrameRelativeAdapter.hpp:85
std::vector< double > sigmaAngles1_
The standard deviations of the bearing vectors of frame 1 in [rad].
Definition: FrameRelativeAdapter.hpp:192
#define OKVIS_DEFINE_EXCEPTION(exceptionName, exceptionParent)
Macro for defining an exception with a given parent.
Definition: assert_macros.hpp:52
This file contains some useful assert macros.
virtual size_t getNumberCorrespondences() const
Retrieve the number of correspondences.
Definition: FrameRelativeAdapter.cpp:292
virtual opengv::rotation_t getCamRotation1(size_t index) const
Retrieve the rotation from a camera of a correspondence in viewpoint 1 to the viewpoint origin...
Definition: FrameRelativeAdapter.cpp:268
double getSigmaAngle2(size_t index)
Obtain the angular standard deviation of the correspondence in frame 2 in [rad].
Definition: FrameRelativeAdapter.cpp:303
virtual opengv::translation_t getCamOffset2(size_t index) const
Retrieve the position of a camera of a correspondence in viewpoint 2 seen from the origin of the view...
Definition: FrameRelativeAdapter.cpp:276
std::vector< double > sigmaAngles2_
The standard deviations of the bearing vectors of frame 2' in [rad].
Definition: FrameRelativeAdapter.hpp:194
virtual double getWeight(size_t) const
Retrieve the weight of a correspondence. The weight is supposed to reflect the quality of a correspon...
Definition: FrameRelativeAdapter.hpp:178
Header file for the Estimator class. This does all the backend work.
opengv::bearingVectors_t bearingVectors2_
The bearing vectors of the correspondences in frame 2.
Definition: FrameRelativeAdapter.hpp:186
virtual opengv::bearingVector_t getBearingVector1(size_t index) const
Retrieve the bearing vector of a correspondence in viewpoint 1.
Definition: FrameRelativeAdapter.cpp:248
double getSigmaAngle1(size_t index)
Obtain the angular standard deviation of the correspondence in frame 1 in [rad].
Definition: FrameRelativeAdapter.cpp:297
EIGEN_MAKE_ALIGNED_OPERATOR_NEW FrameRelativeAdapter(const okvis::Estimator &estimator, const okvis::cameras::NCameraSystem &nCameraSystem, uint64_t multiFrameIdA, size_t camIdA, uint64_t multiFrameIdB, size_t camIdB)
Constructor.
Definition: FrameRelativeAdapter.cpp:52
std::vector< Match > Matches
Definition: FrameTypedefs.hpp:134
okvis::Matches matches_
The matching keypoints of both frames.
Definition: FrameRelativeAdapter.hpp:188