template class Eigen::Map<sophus::RxSo3<TScalar> const, kOptions>¶
Overview¶
Specialization of Eigen::Map for RxSo3 const
; derived from RxSo3Base. More…
#include <rxso3.h> template <class TScalar, int kOptions> class Map<sophus::RxSo3<TScalar> const, kOptions>: public sophus::RxSo3Base { public: // typedefs using Base = sophus::RxSo3Base<Map<sophus::RxSo3<TScalar> const, kOptions>> ; using Scalar = TScalar ; using Transformation = typename Base::Transformation ; using Point = typename Base::Point ; using HomogeneousPoint = typename Base::HomogeneousPoint ; using Tangent = typename Base::Tangent ; using Adjoint = typename Base::Adjoint ; // construction Map(Scalar const* coeffs); // methods SOPHUS_FUNC Map<Eigen::Quaternion<Scalar> const, kOptions> const& quaternion() const; protected: // fields Map<Eigen::Quaternion<Scalar> const, kOptions> quaternion_; };
Inherited Members¶
public: // typedefs using Scalar = typename Eigen::internal::traits<TDerived>::Scalar ; using QuaternionType = typename Eigen::internal::traits<TDerived>::QuaternionType ; using QuaternionTemporaryType = Eigen::Quaternion<Scalar, kOptions> ; using Transformation = Eigen::Matrix<Scalar, kMatrixDim, kMatrixDim> ; using Point = Eigen::Vector3<Scalar> ; using HomogeneousPoint = Eigen::Vector4<Scalar> ; using Line = Eigen::ParametrizedLine<Scalar, 3> ; using Hyperplane = Eigen::Hyperplane<Scalar, 3> ; using Tangent = Eigen::Vector<Scalar, kDoF> ; using Adjoint = Eigen::Matrix<Scalar, kDoF, kDoF> ; using ReturnScalar = typename Eigen::ScalarBinaryOpTraits<Scalar, typename TOtherDerived::Scalar>::ReturnType ; using RxSo3Product = RxSo3<ReturnScalar<TOtherDerived>> ; using PointProduct = Eigen::Vector3<ReturnScalar<TPointDerived>> ; using HomogeneousPointProduct = Eigen::Vector4<ReturnScalar<THPointDerived>> ; // structs struct TangentAndTheta; // fields static constexpr int kOptions = Eigen::internal::traits<TDerived>::kOptions; static constexpr int kDoF = 4; static constexpr int kNumParameters = 4; static constexpr int kMatrixDim = 3; static constexpr int kPointDim = 3; // methods SOPHUS_FUNC Adjoint adj() const; template <class TNewScalarType> SOPHUS_FUNC RxSo3<TNewScalarType> cast() const; SOPHUS_FUNC Scalar* data(); SOPHUS_FUNC Scalar const* data() const; SOPHUS_FUNC RxSo3<Scalar> inverse() const; SOPHUS_FUNC Tangent log() const; SOPHUS_FUNC TangentAndTheta logAndTheta() const; SOPHUS_FUNC Transformation matrix() const; template <class TOtherDerived> SOPHUS_FUNC RxSo3Base<TDerived>& operator=(RxSo3Base<TOtherDerived> const& other); template <class TOtherDerived> SOPHUS_FUNC RxSo3Product<TOtherDerived> operator*(RxSo3Base<TOtherDerived> const& other) const; template < typename TPointDerived, typename = typename std::enable_if<IsFixedSizeVector<TPointDerived, 3>::value>::type > SOPHUS_FUNC PointProduct<TPointDerived> operator*(Eigen::MatrixBase<TPointDerived> const& p) const; template < typename THPointDerived, typename = typename std::enable_if<IsFixedSizeVector<THPointDerived, 4>::value>::type > SOPHUS_FUNC HomogeneousPointProduct<THPointDerived> operator*(Eigen::MatrixBase<THPointDerived> const& p) const; SOPHUS_FUNC Line operator*(Line const& l) const; SOPHUS_FUNC Hyperplane operator*(Hyperplane const& p) const; template < typename TOtherDerived, typename = typename std::enable_if<std::is_same<Scalar, ReturnScalar<TOtherDerived>>::value>::type > SOPHUS_FUNC RxSo3Base<TDerived>& operator*=(RxSo3Base<TOtherDerived> const& other); SOPHUS_FUNC Eigen::Vector<Scalar, kNumParameters> params() const; SOPHUS_FUNC void setQuaternion(Eigen::Quaternion<Scalar> const& quat); SOPHUS_FUNC QuaternionType const& quaternion() const; SOPHUS_FUNC Transformation rotationMatrix() const; SOPHUS_FUNC Scalar scale() const; SOPHUS_FUNC void setRotationMatrix(Transformation const& r); SOPHUS_FUNC void setScale(Scalar const& scale); SOPHUS_FUNC void setScaledRotationMatrix(Transformation const& s_r); SOPHUS_FUNC void setSO3(So3<Scalar> const& so3); SOPHUS_FUNC So3<Scalar> so3() const; SOPHUS_FUNC Eigen::Matrix<Scalar, kNumParameters, kDoF> dxThisMulExpXAt0() const; SOPHUS_FUNC Eigen::Matrix<Scalar, kDoF, kNumParameters> dxLogThisInvTimesXAtThis() const;
Detailed Documentation¶
Specialization of Eigen::Map for RxSo3 const
; derived from RxSo3Base.
Allows us to wrap RxSo3 objects around POD array (e.g. external c style quaternion).
Methods¶
SOPHUS_FUNC Map<Eigen::Quaternion<Scalar> const, kOptions> const& quaternion() const
Accessor of quaternion.