|
| | PassiveProperRigidTransformationTemplate ()=default |
| | PassiveProperRigidTransformationTemplate (Rotation rotation, Translation translation) |
| void | setRotation (const Rotation &rotation) |
| const Rotation & | getRotation () const |
| void | setTranslation (const Translation &translation) |
| const Translation & | getTranslation () const |
| auto | inverse () const |
| | The inverse transformation, from To to From, (R^T, -R^T t), which only needs the transpose of the rotation (see internal::invertRigid()).
|
| template<typename FromOtherT_, typename ToOtherT_, typename RotationOtherT_, typename TranslationOtherT_> |
| bool | isApprox (const PassiveProperRigidTransformationTemplate< FromOtherT_, ToOtherT_, RotationOtherT_, TranslationOtherT_ > &other, const ValueT precision=Precision< ValueT >::value()) const |
| | Whether both transformations, which must transform between the same coordinate systems, are approximately equal: their rotations and their translations are compared with their isApprox().
|
| auto | transform (ObjectT_ &&object) const |
| | The object in To.
|
template<EuclideanCoordinateSystem FromT_, EuclideanCoordinateSystem ToT_, AnyRotation RotationT_, typename TranslationT_>
class wuzp::PassiveProperRigidTransformationTemplate< FromT_, ToT_, RotationT_, TranslationT_ >
A passive proper rigid transformation from From to To, which first rotates, then translates: p -> R p + t.
From and To must be Euclidean (EuclideanCoordinateSystem), like those of its rotation. The rotation transforms from From to an intermediate coordinate system with the origin of From and the axes of To, the translation from there to To, so the translation t is expressed in To. This is Drake's RigidTransform X_AB = (R_AB, p_AoBo_A) for From = B and To = A (https://drake.mit.edu/doxygen_cxx/classdrake_1_1math_1_1_rigid_transform.html). Featherstone's transform of spatial vectors ^A X_B (http://royfeatherstone.org/spatial/v2/xforms.html), which also moves their point from the origin of B to that of A, is adjoint(X_AB, ...), not transform() (see SpatialVelocity.hpp). The rotation R is a rotation, e.g. a PassiveSpatialRotation, which checks that it is orthogonal with determinant 1 (see PassiveSpatialRotation::isValid()): the inverse, (R^T, -R^T t), relies on it. PassiveProperRigidTransformation is the transformation of a rotation and a spatial translation. Its compositions with rotations are defined in PassiveSpatialRotation.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 PassiveTranslation). It leaves spatial vectors unchanged too, so X_AB re-expresses e.g. a spatial velocity V_MBp_B in A about the same point, by R_AB, unlike adjoint(), which also moves the point to the origin of A.
Definition at line 54 of file PassiveProperRigidTransformationTemplate.hpp.
template<EuclideanCoordinateSystem FromT_, EuclideanCoordinateSystem ToT_, AnyRotation RotationT_, typename TranslationT_>
The inverse transformation, from To to From, (R^T, -R^T t), which only needs the transpose of the rotation (see internal::invertRigid()).
Its translation -R^T t is the vector from the origin of From to the origin of To, expressed in From, the To of the inverse: not -t, unless R t = t.
Definition at line 76 of file PassiveProperRigidTransformationTemplate.hpp.
template<EuclideanCoordinateSystem FromT_, EuclideanCoordinateSystem ToT_, AnyRotation RotationT_, typename TranslationT_>
template<typename FromOtherT_, typename ToOtherT_, typename RotationOtherT_, typename TranslationOtherT_>