Skip to content

Commit

Permalink
More detailed explanation of dq double cover
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderFabisch committed Oct 25, 2024
1 parent a928889 commit 48774bf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
6 changes: 3 additions & 3 deletions doc/source/user_guide/transformations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,9 @@ interpolation between two dual quaternions is possible (with

.. warning::

The unit dual quaternions :math:`\boldsymbol{p} + \epsilon \boldsymbol{q}`
and :math:`-\boldsymbol{p} - \epsilon \boldsymbol{q}` represent exactly
the same transformation.
The unit dual quaternions
:math:`\boldsymbol{\sigma} = \boldsymbol{p} + \epsilon \boldsymbol{q}` and
:math:`-\boldsymbol{\sigma}` represent exactly the same transformation.

The reason for this ambiguity is that the real quaternion
:math:`\boldsymbol{p}` represents the orientation component, the dual
Expand Down
16 changes: 12 additions & 4 deletions pytransform3d/transformations/_dual_quaternion_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,18 @@


def dual_quaternion_double(dq):
"""Create another dual quaternion that represents the same transformation.
The unit dual quaternions sigma and -sigma represent the same
transformation (double cover).
r"""Create another dual quaternion that represents the same transformation.
The unit dual quaternions
:math:`\boldsymbol{\sigma} = \boldsymbol{p} + \epsilon \boldsymbol{q}` and
:math:`-\boldsymbol{\sigma}` represent exactly the same transformation.
The reason for this ambiguity is that the real quaternion
:math:`\boldsymbol{p}` represents the orientation component, the dual
quaternion encodes the translation component as
:math:`\boldsymbol{q} = 0.5 \boldsymbol{t} \boldsymbol{p}`, where
:math:`\boldsymbol{t}` is a quaternion with the translation in the vector
component and the scalar 0, and rotation quaternions have the same
ambiguity.
Parameters
----------
Expand Down

0 comments on commit 48774bf

Please sign in to comment.