YeeKal

11_quaternion

YeeKal
"#"

Quaternion

[kwə'tɝnɪən], 四元数, 复数在三维的推广,是一种新定义的数学表达形式。形式为:

其中$i,i,k$是-1在三维中的平方根。

四元数表示空间中的点

笛卡尔坐标:$[x,y,z]$.则对应四元数$q=xi+yj+zk$,又称为纯四元数,即实部为0的四元数。

四元数表示三维旋转

q为单位四元数。即若以这样的对应关系,则旋转矩阵的存储与计算会有极大的方便。因此四元数对旋转矩阵的表示可以认为是定义了一种对应关系:

四元数运算

若将四元数视为纯量-向量的形式,则定义四元数加法(adding): 四元数乘法(multiplication): 四元数乘法公式可以根据虚数单位的基本共式推导出来,所以上式仅有形式上的意义而不具备几何意义。四元数乘法表示两个旋转矩阵相乘。 仿照单位复数与欧拉公式: 四元数的旋转变换

设 q 为一个单位四元数,而 p 是一个纯四元数,则: 也是一个纯四元数,代表空间的点p经过旋转变换q之后的四元数表示。故:

dual quaternion

或者通过上三角冒表示对偶四元数:

Like the quaternion,the unit dual-quaternin is our key concern as it can represent any rigid rotational and translational transformations. where r is a unit quaternion representing the rotation and t is the quaternion describing the translation.

Operation

  • scalar: $aq=aq_r+a\epsilon q_d$
  • multiplication: $q_1+q_2=q_{r1}+q_{r2}+\epsilon (q_{d1}+q_{d2})$
  • conjugate: $q^={q_r}^+\epsilon {q_d}^*$
  • unit condition:$||q||=1,\quad {q_r}^q_d+{q_d}^q_r=0$

空间变换

**the logarithmic **

Kinematic Control of Free Rigid Bodies Using Dual Quaternions

Assume $q_r=\frac{cos\phi}{2}+\frac{sin\phi}{2}n$,$q_t=ps$, where n and s is vector, p is the scalar of $q_t$.

define: the difference of two dual quaternion: the distance of two dual quaternion:

Ref