smooth
A C++ library for Lie theory
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
SO2Base< _Derived > Class Template Reference

Base class for SO2 Lie group types. More...

#include <so2.hpp>

Inheritance diagram for SO2Base< _Derived >:
Inheritance graph
[legend]

Public Member Functions

Scalar angle () const
 Angle representation, in \([-\pi,\pi]\) range.
 
Scalar angle_cw () const
 Angle representation in clockwise direction, in \([-2\pi,0]\) range.
 
Scalar angle_ccw () const
 Angle representation in clockwise direction, in \([0,2\pi]\) range.
 
Eigen::Vector2< Scalarunit_complex () const
 Unit complex number (U(1)) representation.
 
std::complex< Scalaru1 () const
 Unit complex number (U(1)) representation.
 
template<typename EigenDerived >
Eigen::Vector2< Scalaroperator* (const Eigen::MatrixBase< EigenDerived > &v) const
 Rotation action on 2D vector.
 
template<typename EigenDerived >
Eigen::Matrix< Scalar, 2, 1 > dr_action (const Eigen::MatrixBase< EigenDerived > &v) const
 Jacobian of rotation action w.r.t. group.
 
SO3< Scalarlift_so3 () const
 Lift to SO3.
 
- Public Member Functions inherited from LieGroupBase< _Derived >
autocoeffs () const
 Access underlying storages.
 
const autocoeffs () const
 Const access underlying storages.
 
autodata () const
 Access raw pointer.
 
const autodata () const
 Const access raw pointer.
 
_Derivedoperator= (const LieGroupBase< OtherDerived > &o) noexcept
 
Eigen::Index dof () const noexcept
 Dynamic size (degrees of freedom).
 
void setIdentity () noexcept
 Set to group identity element.
 
void setRandom () noexcept
 Set to a random element.
 
Matrix matrix () const noexcept
 Return as matrix Lie group element in \( \mathbb{R}^{\mathtt{dim} \times \mathtt{dim}} \).
 
bool isApprox (const LieGroupBase< OtherDerived > &o, const Scalar &eps=Eigen::NumTraits< Scalar >::dummy_precision()) const noexcept
 Check if (approximately) equal to other element o.
 
CastT< NewScalarcast () const noexcept
 Cast to different scalar type.
 
PlainObject operator* (const LieGroupBase< OtherDerived > &o) const noexcept
 Group binary composition operation.
 
_Derivedoperator*= (const LieGroupBase< OtherDerived > &o) noexcept
 Inplace group binary composition operation.
 
PlainObject inverse () const noexcept
 Group inverse operation.
 
Tangent log () const noexcept
 Lie group logarithm.
 
TangentMap Ad () const noexcept
 Lie group adjoint.
 
PlainObject operator+ (const Eigen::MatrixBase< TangentDerived > &a) const noexcept
 Right-plus.
 
_Derivedoperator+= (const Eigen::MatrixBase< TangentDerived > &a) noexcept
 Inplace right-plus: \( \mathbf{x} \leftarrow \mathbf{x} \circ \exp(\mathbf{a}) \).
 
Tangent operator- (const LieGroupBase< OtherDerived > &xo) const noexcept
 Right-minus.
 

Public Attributes

 SMOOTH_INHERIT_TYPEDEFS
 

Additional Inherited Members

- Public Types inherited from LieGroupBase< _Derived >
using Scalar = typename traits::Scalar
 Scalar type.
 
using Matrix = Eigen::Matrix< Scalar, Dim, Dim >
 Lie group matrix type.
 
using Tangent = Eigen::Matrix< Scalar, Dof, 1 >
 Lie group parameterized tangent type.
 
using TangentMap = Eigen::Matrix< Scalar, Dof, Dof >
 Matrix representing map between tangent elements.
 
using Hessian = Eigen::Matrix< Scalar, Dof, Dof *Dof >
 Plain return type with different scalar.
 
using CastT = typename traits::template PlainObject< NewScalar >
 Plain return type with different scalar.
 
using PlainObject = CastT< Scalar >
 Plain return type.
 
- Static Public Member Functions inherited from LieGroupBase< _Derived >
static PlainObject Identity () noexcept
 Construct the identity element.
 
static PlainObject Random () noexcept
 Construct a random element.
 
static PlainObject exp (const Eigen::MatrixBase< TangentDerived > &a) noexcept
 Lie group exponential map.
 
static Matrix hat (const Eigen::MatrixBase< TangentDerived > &a) noexcept
 Lie algebra hat map.
 
static Tangent vee (const Eigen::MatrixBase< MatrixDerived > &A) noexcept
 Lie alebra vee map.
 
static TangentMap ad (const Eigen::MatrixBase< TangentDerived > &a) noexcept
 Lie algebra adjoint.
 
static Tangent lie_bracket (const Eigen::MatrixBase< TangentDerived1 > &a, const Eigen::MatrixBase< TangentDerived2 > &b) noexcept
 Lie algebra bracket.
 
static TangentMap dr_exp (const Eigen::MatrixBase< TangentDerived > &a) noexcept
 Right jacobian of the exponential map.
 
static TangentMap dr_expinv (const Eigen::MatrixBase< TangentDerived > &a) noexcept
 Inverse of right jacobian of the exponential map.
 
static TangentMap dl_exp (const Eigen::MatrixBase< TangentDerived > &a) noexcept
 Left jacobian of the exponential map.
 
static TangentMap dl_expinv (const Eigen::MatrixBase< TangentDerived > &a) noexcept
 Inverse of left jacobian of the exponential map.
 
static Hessian d2r_exp (const Eigen::MatrixBase< TangentDerived > &a) noexcept
 Right Hessian of the exponential map.
 
static Hessian d2r_expinv (const Eigen::MatrixBase< TangentDerived > &a) noexcept
 Right Hessian of the log map.
 
static Hessian d2l_exp (const Eigen::MatrixBase< TangentDerived > &a) noexcept
 Left Hessian of the exponential map.
 
static Hessian d2l_expinv (const Eigen::MatrixBase< TangentDerived > &a) noexcept
 Left Hessian of the log map.
 
- Static Public Attributes inherited from LieGroupBase< _Derived >
static constexpr int RepSize
 Number of scalars in internal representation.
 
static constexpr int Dof
 Degrees of freedom of manifold (equal to tangent space dimension).
 
static constexpr int Dim
 Side of Lie group matrix representation.
 
static constexpr bool IsCommutative
 Commutativity of group. A commutative group has a zero Lie bracket.
 
- Protected Types inherited from LieGroupBase< _Derived >
using traits = liebase_info< _Derived >
 CRTP traits.
 
using Impl = typename traits::Impl
 Group-specific Lie group implementation.
 
- Static Protected Attributes inherited from LieGroupBase< _Derived >
static constexpr bool is_mutable
 True if underlying storage supports modification.
 

Detailed Description

template<typename _Derived>
class SO2Base< _Derived >

Base class for SO2 Lie group types.

Internally represented as \(\mathbb{U}(1)\) (unit complex numbers).

Memory layout

Constraints

Lie group matrix form

\[ \mathbf{X} = \begin{bmatrix} q_w & -q_z \\ q_z & q_w \end{bmatrix} \in \mathbb{R}^{2 \times 2} \]

Lie algebra matrix form

\[ \mathbf{a}^\wedge = \begin{bmatrix} 0 & -\omega_z \\ \omega_z & 0 \\ \end{bmatrix} \in \mathbb{R}^{2 \times 2} \]

Definition at line 61 of file so2.hpp.

Member Function Documentation

◆ angle()

template<typename _Derived >
Scalar SO2Base< _Derived >::angle ( ) const
inline

Angle representation, in \([-\pi,\pi]\) range.

Definition at line 74 of file so2.hpp.

◆ angle_ccw()

template<typename _Derived >
Scalar SO2Base< _Derived >::angle_ccw ( ) const
inline

Angle representation in clockwise direction, in \([0,2\pi]\) range.

Definition at line 95 of file so2.hpp.

◆ angle_cw()

template<typename _Derived >
Scalar SO2Base< _Derived >::angle_cw ( ) const
inline

Angle representation in clockwise direction, in \([-2\pi,0]\) range.

Definition at line 79 of file so2.hpp.

◆ dr_action()

template<typename _Derived >
template<typename EigenDerived >
Eigen::Matrix< Scalar, 2, 1 > SO2Base< _Derived >::dr_action ( const Eigen::MatrixBase< EigenDerived > &  v) const
inline

Jacobian of rotation action w.r.t. group.

\[ \mathrm{d}^r (X v)_X \]

Definition at line 143 of file so2.hpp.

◆ lift_so3()

template<typename _Derived >
SO3< Scalar > SO2Base< _Derived >::lift_so3 ( ) const
inline

Lift to SO3.

Rotation of SO2 is embedded in SO3 as a rotation around the z axis.

Note
SO3 header must be included.

Definition at line 155 of file so2.hpp.

◆ operator*()

template<typename _Derived >
template<typename EigenDerived >
Eigen::Vector2< Scalar > SO2Base< _Derived >::operator* ( const Eigen::MatrixBase< EigenDerived > &  v) const
inline

Rotation action on 2D vector.

Definition at line 130 of file so2.hpp.

◆ u1()

template<typename _Derived >
std::complex< Scalar > SO2Base< _Derived >::u1 ( ) const
inline

Unit complex number (U(1)) representation.

Definition at line 120 of file so2.hpp.

◆ unit_complex()

template<typename _Derived >
Eigen::Vector2< Scalar > SO2Base< _Derived >::unit_complex ( ) const
inline

Unit complex number (U(1)) representation.

Definition at line 111 of file so2.hpp.

Member Data Documentation

◆ SMOOTH_INHERIT_TYPEDEFS

template<typename _Derived >
SO2Base< _Derived >::SMOOTH_INHERIT_TYPEDEFS

Definition at line 69 of file so2.hpp.


The documentation for this class was generated from the following file: