quaternion has two definitions Hamilton and JPL

quaternion has two definitions Hamilton and JPL

definition

q=qo+q1i+q2j+q3z \mathbf q = q_o + q_1i+q_2j+q_3z

for Hamilton: ijk=1ijk = -1

for JPL: ijk=1ijk = 1

so:

for Hamilton:
RHamilton=[12q222q322q1q22q0q32q1q3+2q0q22q1q2+2q0q312q122q322q2q32q0q12q1q32q0q22q2q3+2q0q112q122q22] \mathbf R_{Hamilton} =\left[\begin{array}{ccc} 1-2 q_{2}^{2}-2 q_{3}^{2} & 2 q_{1} q_{2}-2 q_{0} q_{3} & 2 q_{1} q_{3}+2 q_{0} q_{2} \\ 2 q_{1} q_{2}+2 q_{0} q_{3} & 1-2 q_{1}^{2}-2 q_{3}^{2} & 2 q_{2} q_{3}-2 q_{0} q_{1} \\ 2 q_{1} q_{3}-2 q_{0} q_{2} & 2 q_{2} q_{3}+2 q_{0} q_{1} & 1-2 q_{1}^{2}-2 q_{2}^{2} \end{array}\right]
for JPL:
RJPL=[12q222q322q1q2+2q0q32q1q32q0q22q1q22q0q312q122q322q2q3+2q0q12q1q3+2q0q22q2q32q0q112q122q22] \mathbf R_{JPL} =\left[\begin{array}{ccc} 1-2 q_{2}^{2}-2 q_{3}^{2} & 2 q_{1} q_{2}+2 q_{0} q_{3} & 2 q_{1} q_{3}-2 q_{0} q_{2} \\ 2 q_{1} q_{2}-2 q_{0} q_{3} & 1-2 q_{1}^{2}-2 q_{3}^{2} & 2 q_{2} q_{3}+2 q_{0} q_{1} \\ 2 q_{1} q_{3}+2 q_{0} q_{2} & 2 q_{2} q_{3}-2 q_{0} q_{1} & 1-2 q_{1}^{2}-2 q_{2}^{2} \end{array}\right]
so actually there is :(Conversion of the two kinds quaternions)
qHamilton(qo+q1i+q2j+q3z)qJPL(qoq1iq2jq3z) \mathbf q_{Hamilton} ( q_o + q_1i+q_2j+q_3z)\leftrightarrow \mathbf q_{JPL}(q_o - q_1i-q_2j-q_3z)

so in hybird case, there is wording of CqT{C_{q}}^T

CqC_q mean change the quaternions to Rotation matrix by Hamilton rules.

If the quaternions is in JPL, but change to R by Hamilton rules, it should to Transpose

ps:

library or files Hamilton or JPL
Eigen Hamilton
Ros Hamilton
Indirect kalman filter for 3D Attitude Estimation JPL
Ethzasl-msf Hybird
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章