quaternion has two definitions Hamilton and JPL

quaternion has two definitions Hamilton and JPL

definition

q = q o + q 1 i + q 2 j + q 3 z \mathbf q = q_o + q_1i+q_2j+q_3z q=qo+q1i+q2j+q3z

for Hamilton: i j k = − 1 ijk = -1 ijk=1

for JPL: i j k = 1 ijk = 1 ijk=1

so:

for Hamilton:
R H a m i l t o n = [ 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 ] \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] RHamilton=12q222q322q1q2+2q0q32q1q32q0q22q1q22q0q312q122q322q2q3+2q0q12q1q3+2q0q22q2q32q0q112q122q22
for JPL:
R J P L = [ 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 ] \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] RJPL=12q222q322q1q22q0q32q1q3+2q0q22q1q2+2q0q312q122q322q2q32q0q12q1q32q0q22q2q3+2q0q112q122q22
so actually there is :(Conversion of the two kinds quaternions)
q H a m i l t o n ( q o + q 1 i + q 2 j + q 3 z ) ↔ q J P L ( q o − q 1 i − q 2 j − q 3 z ) \mathbf q_{Hamilton} ( q_o + q_1i+q_2j+q_3z)\leftrightarrow \mathbf q_{JPL}(q_o - q_1i-q_2j-q_3z) qHamilton(qo+q1i+q2j+q3z)qJPL(qoq1iq2jq3z)

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

C q C_q Cq 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 filesHamilton or JPL
EigenHamilton
RosHamilton
Indirect kalman filter for 3D Attitude EstimationJPL
Ethzasl-msfHybird
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值