wuzp
Wrong Unit? Zero Points! Compile-time checks for units, coordinate systems and points vs. vectors.
Loading...
Searching...
No Matches
wuzp::ActiveProperRigidTransformationTemplate< CoordinateSystemT_, RotationT_, TranslationT_ > Class Template Reference

An active proper rigid transformation, which first rotates, then translates: x -> R x + t, in a Euclidean coordinate system (EuclideanCoordinateSystem), like its rotation. More...

#include <wuzp/trafo/ActiveProperRigidTransformationTemplate.hpp>

Inherits wuzp::ActiveTransformation< ActiveProperRigidTransformationTemplate< CoordinateSystemT_, RotationT_, TranslationT_ > >.

Public Types

using Rotation = RotationT_
using Translation = TranslationT_
using ValueT = typename Rotation::ValueT

Public Member Functions

 ActiveProperRigidTransformationTemplate ()=default
 ActiveProperRigidTransformationTemplate (Rotation rotation, Translation translation)
void setRotation (const Rotation &rotation)
const Rotation & getRotation () const
void setTranslation (const Translation &translation)
const Translation & getTranslation () const
ActiveProperRigidTransformationTemplate inverse () const
 The inverse transformation, (R^T, -R^T t), which only needs the transpose of the rotation (see internal::invertRigid()).
template<typename CoordinateSystemOtherT_, typename RotationOtherT_, typename TranslationOtherT_>
bool isApprox (const ActiveProperRigidTransformationTemplate< CoordinateSystemOtherT_, RotationOtherT_, TranslationOtherT_ > &other, const ValueT precision=Precision< ValueT >::value()) const
 Whether both transformations, which must be expressed in the same coordinate system, are approximately equal: their rotations and their translations are compared with their isApprox().
Public Member Functions inherited from wuzp::ActiveTransformation< ActiveProperRigidTransformationTemplate< CoordinateSystemT_, RotationT_, TranslationT_ > >
auto transform (ObjectT_ &&object) const
 The transformed object. A temporary is passed on as one, like with PassiveTransformation::transform().

Detailed Description

template<EuclideanCoordinateSystem CoordinateSystemT_, AnyRotation RotationT_, typename TranslationT_>
class wuzp::ActiveProperRigidTransformationTemplate< CoordinateSystemT_, RotationT_, TranslationT_ >

An active proper rigid transformation, which first rotates, then translates: x -> R x + t, in a Euclidean coordinate system (EuclideanCoordinateSystem), like its rotation.

The rotation R is a rotation, e.g. an ActiveSpatialRotation, which checks that it is orthogonal with determinant 1 (see ActiveSpatialRotation::isValid()): the inverse, (R^T, -R^T t), relies on it. ActiveProperRigidTransformation is the transformation of a rotation and a spatial translation. Its compositions with rotations are defined in ActiveSpatialRotation.hpp. The translation leaves vectors, covectors and tensors with two upper indices unchanged, so they are only rotated, e.g. a covector w into w R^T and a covariance S into R S R^T, and it rejects the other tensors, e.g. an inertia, which may depend on the origin (see ActiveTranslation).

Definition at line 26 of file ActiveProperRigidTransformationTemplate.hpp.

Member Typedef Documentation

◆ Rotation

template<EuclideanCoordinateSystem CoordinateSystemT_, AnyRotation RotationT_, typename TranslationT_>
using wuzp::ActiveProperRigidTransformationTemplate< CoordinateSystemT_, RotationT_, TranslationT_ >::Rotation = RotationT_

Definition at line 29 of file ActiveProperRigidTransformationTemplate.hpp.

◆ Translation

template<EuclideanCoordinateSystem CoordinateSystemT_, AnyRotation RotationT_, typename TranslationT_>
using wuzp::ActiveProperRigidTransformationTemplate< CoordinateSystemT_, RotationT_, TranslationT_ >::Translation = TranslationT_

Definition at line 30 of file ActiveProperRigidTransformationTemplate.hpp.

◆ ValueT

template<EuclideanCoordinateSystem CoordinateSystemT_, AnyRotation RotationT_, typename TranslationT_>
using wuzp::ActiveProperRigidTransformationTemplate< CoordinateSystemT_, RotationT_, TranslationT_ >::ValueT = typename Rotation::ValueT

Definition at line 31 of file ActiveProperRigidTransformationTemplate.hpp.

Constructor & Destructor Documentation

◆ ActiveProperRigidTransformationTemplate() [1/2]

template<EuclideanCoordinateSystem CoordinateSystemT_, AnyRotation RotationT_, typename TranslationT_>
wuzp::ActiveProperRigidTransformationTemplate< CoordinateSystemT_, RotationT_, TranslationT_ >::ActiveProperRigidTransformationTemplate ( )
default

◆ ActiveProperRigidTransformationTemplate() [2/2]

template<EuclideanCoordinateSystem CoordinateSystemT_, AnyRotation RotationT_, typename TranslationT_>
wuzp::ActiveProperRigidTransformationTemplate< CoordinateSystemT_, RotationT_, TranslationT_ >::ActiveProperRigidTransformationTemplate ( Rotation rotation,
Translation translation )
inline

Definition at line 34 of file ActiveProperRigidTransformationTemplate.hpp.

Member Function Documentation

◆ getRotation()

template<EuclideanCoordinateSystem CoordinateSystemT_, AnyRotation RotationT_, typename TranslationT_>
const Rotation & wuzp::ActiveProperRigidTransformationTemplate< CoordinateSystemT_, RotationT_, TranslationT_ >::getRotation ( ) const
inline

Definition at line 38 of file ActiveProperRigidTransformationTemplate.hpp.

◆ getTranslation()

template<EuclideanCoordinateSystem CoordinateSystemT_, AnyRotation RotationT_, typename TranslationT_>
const Translation & wuzp::ActiveProperRigidTransformationTemplate< CoordinateSystemT_, RotationT_, TranslationT_ >::getTranslation ( ) const
inline

Definition at line 41 of file ActiveProperRigidTransformationTemplate.hpp.

◆ inverse()

template<EuclideanCoordinateSystem CoordinateSystemT_, AnyRotation RotationT_, typename TranslationT_>
ActiveProperRigidTransformationTemplate wuzp::ActiveProperRigidTransformationTemplate< CoordinateSystemT_, RotationT_, TranslationT_ >::inverse ( ) const
inline

The inverse transformation, (R^T, -R^T t), which only needs the transpose of the rotation (see internal::invertRigid()).

Definition at line 44 of file ActiveProperRigidTransformationTemplate.hpp.

◆ isApprox()

template<EuclideanCoordinateSystem CoordinateSystemT_, AnyRotation RotationT_, typename TranslationT_>
template<typename CoordinateSystemOtherT_, typename RotationOtherT_, typename TranslationOtherT_>
bool wuzp::ActiveProperRigidTransformationTemplate< CoordinateSystemT_, RotationT_, TranslationT_ >::isApprox ( const ActiveProperRigidTransformationTemplate< CoordinateSystemOtherT_, RotationOtherT_, TranslationOtherT_ > & other,
const ValueT precision = Precision<ValueT>::value() ) const
inline

Whether both transformations, which must be expressed in the same coordinate system, are approximately equal: their rotations and their translations are compared with their isApprox().

Definition at line 49 of file ActiveProperRigidTransformationTemplate.hpp.

◆ setRotation()

template<EuclideanCoordinateSystem CoordinateSystemT_, AnyRotation RotationT_, typename TranslationT_>
void wuzp::ActiveProperRigidTransformationTemplate< CoordinateSystemT_, RotationT_, TranslationT_ >::setRotation ( const Rotation & rotation)
inline

Definition at line 37 of file ActiveProperRigidTransformationTemplate.hpp.

◆ setTranslation()

template<EuclideanCoordinateSystem CoordinateSystemT_, AnyRotation RotationT_, typename TranslationT_>
void wuzp::ActiveProperRigidTransformationTemplate< CoordinateSystemT_, RotationT_, TranslationT_ >::setTranslation ( const Translation & translation)
inline

Definition at line 40 of file ActiveProperRigidTransformationTemplate.hpp.


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