10#include "wuzp/trafo/internal/intermediate_coordinate_system.hpp"
11#include "wuzp/trafo/internal/rigid.hpp"
16template <Eucl
ideanCoordinateSystem FromT_, Eucl
ideanCoordinateSystem ToT_, AnyRotation RotationT_,
typename TranslationT_>
24template <
typename RotationT_,
typename TranslationT_,
typename NewFromT_,
typename NewToT_>
26 PassiveProperRigidTransformationTemplate<NewFromT_, NewToT_,
27 typename WithFrames<RotationT_, NewFromT_, Intermediate<NewFromT_, NewToT_>>::type,
28 typename WithFrames<TranslationT_, Intermediate<NewFromT_, NewToT_>, NewToT_>::type>;
32template <
typename Rig
idT_,
typename NewFromT_,
typename NewToT_>
33using PassiveRigidWithFrames = PassiveRigidOf<typename RigidT_::Rotation, typename RigidT_::Translation, NewFromT_, NewToT_>;
53template <Eucl
ideanCoordinateSystem FromT_, Eucl
ideanCoordinateSystem ToT_, AnyRotation RotationT_,
typename TranslationT_>
55 :
public PassiveTransformation<PassiveProperRigidTransformationTemplate<FromT_, ToT_, RotationT_, TranslationT_>, FromT_, ToT_> {
59 using ValueT =
typename Rotation::ValueT;
63 : rotation_{std::move(rotation)}, translation_{std::move(translation)} {}
77 return internal::invertRigid<internal::PassiveRigidWithFrames<PassiveProperRigidTransformationTemplate, ToT_, FromT_>>(*this);
82 template <
typename FromOtherT_,
typename ToOtherT_,
typename RotationOtherT_,
typename TranslationOtherT_>
94template <
typename FromT_,
typename ToT_,
typename RotationT_,
typename TranslationT_,
typename Object>
97 const Object&
object) {
105template <
typename FromLhsT_,
typename ToLhsT_,
typename RotationLhsT_,
typename TranslationLhsT_,
typename FromRhsT_,
typename ToRhsT_,
106 typename RotationRhsT_,
typename TranslationRhsT_>
112 return internal::composeRigid<internal::PassiveRigidWithFrames<LhsT, FromRhsT_, ToLhsT_>>(lhs, rhs);
116template <
typename FromLhsT_,
typename ToLhsT_,
typename RotationLhsT_,
typename TranslationLhsT_,
117 template <
typename,
int,
int>
typename ValuesRhsT_,
int DimensionRhsV_,
typename ValueRhsT_,
typename FromRhsT_,
typename ToRhsT_,
118 typename... UnitsRhsT_>
120 PassiveTranslation<ValuesRhsT_, DimensionRhsV_, ValueRhsT_, FromRhsT_, ToRhsT_, UnitsRhsT_...>> {
124 return internal::composeRigidAndTranslation<internal::PassiveRigidWithFrames<LhsT, FromRhsT_, ToLhsT_>>(lhs, rhs);
128template <
template <
typename,
int,
int>
typename ValuesLhsT_,
int DimensionLhsV_,
typename ValueLhsT_,
typename FromLhsT_,
typename ToLhsT_,
129 typename... UnitsLhsT_,
typename FromRhsT_,
typename ToRhsT_,
typename RotationRhsT_,
typename TranslationRhsT_>
135 return internal::composeTranslationAndRigid<internal::PassiveRigidWithFrames<RhsT, FromRhsT_, ToLhsT_>>(lhs, rhs);
A passive translation from the coordinate system From to the coordinate system To,...
static auto compose(const PassiveTranslation< ValuesLhsT_, DimensionLhsV_, ValueLhsT_, FromLhsT_, ToLhsT_, UnitsLhsT_... > &lhs, const RhsT &rhs)
PassiveProperRigidTransformationTemplate< FromRhsT_, ToRhsT_, RotationRhsT_, TranslationRhsT_ > RhsT
The composition lhs * rhs of two transformations, which applies rhs first, then lhs: (lhs * rhs)....
static constexpr ValueT_ value()