37#ifndef OPENGV_RELATIVE_POSE_RELATIVEADAPTERBASE_HPP_
38#define OPENGV_RELATIVE_POSE_RELATIVEADAPTERBASE_HPP_
52namespace relative_pose
66 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
72 _t12(Eigen::Vector3d::Zero()),
73 _R12(Eigen::Matrix3d::Identity()) {};
80 _t12(Eigen::Vector3d::Zero()),
Definition RelativeAdapterBase.hpp:64
RelativeAdapterBase(const translation_t &t12, const rotation_t &R12)
Constructor.
Definition RelativeAdapterBase.hpp:89
virtual opengv::translation_t getCamOffset1(size_t index) const =0
Retrieve the position of a camera of a correspondence in viewpoint 1 seen from the origin of the view...
RelativeAdapterBase(const rotation_t &R12)
Constructor.
Definition RelativeAdapterBase.hpp:79
virtual opengv::translation_t getCamOffset2(size_t index) const =0
Retrieve the position of a camera of a correspondence in viewpoint 2 seen from the origin of the view...
virtual opengv::rotation_t getCamRotation2(size_t index) const =0
Retrieve the rotation from a camera of a correspondence in viewpoint 2 to the viewpoint origin.
opengv::rotation_t getR12() const
Retrieve the prior or known value for the relative rotation.
Definition RelativeAdapterBase.hpp:173
virtual ~RelativeAdapterBase()
Destructor.
Definition RelativeAdapterBase.hpp:95
virtual opengv::rotation_t getCamRotation1(size_t index) const =0
Retrieve the rotation from a camera of a correspondence in viewpoint 1 to the viewpoint origin.
opengv::translation_t _t12
Definition RelativeAdapterBase.hpp:184
virtual double getWeight(size_t index) const =0
Retrieve the weight of a correspondence. The weight is supposed to reflect the quality of a correspon...
virtual opengv::bearingVector_t getBearingVector2(size_t index) const =0
Retrieve the bearing vector of a correspondence in viewpoint 2.
EIGEN_MAKE_ALIGNED_OPERATOR_NEW RelativeAdapterBase()
Constructor.
Definition RelativeAdapterBase.hpp:71
virtual size_t getNumberCorrespondences() const =0
Retrieve the number of correspondences.
opengv::translation_t gett12() const
Retrieve the prior or known value for the relative position.
Definition RelativeAdapterBase.hpp:163
void setR12(const opengv::rotation_t &R12)
Set the prior or known value for the relative rotation.
Definition RelativeAdapterBase.hpp:178
opengv::rotation_t _R12
Definition RelativeAdapterBase.hpp:188
virtual opengv::bearingVector_t getBearingVector1(size_t index) const =0
Retrieve the bearing vector of a correspondence in viewpoint 1.
void sett12(const opengv::translation_t &t12)
Set the prior or known value for the relative position.
Definition RelativeAdapterBase.hpp:168
The namespace of this library.
Definition AbsoluteAdapterBase.hpp:48
Eigen::Matrix3d rotation_t
Definition types.hpp:71
Eigen::Vector3d translation_t
Definition types.hpp:63
Eigen::Vector3d bearingVector_t
Definition types.hpp:55
A collection of variables used in geometric vision for the computation of calibrated absolute and rel...