第三部分 组合惯导(G2 姿态表示(二):Z-Y-X 合成矩阵的一般式与数值算例)
一、合成矩阵的一般式
本段固定 \(n=\)NED、\(b=\)前右下,主写 \(C_{n}^{b}=[R_z(\psi)R_y(\theta)R_x(\gamma)]^{\mathrm T}\),三个基本矩阵均为右手式。逐项相乘并化简得
\[C_{n}^{b}=\begin{pmatrix} \cos\psi\cos\theta & \sin\psi\cos\theta & -\sin\theta\\ \sin\gamma\sin\theta\cos\psi-\sin\psi\cos\gamma & \sin\gamma\sin\theta\sin\psi+\cos\gamma\cos\psi & \sin\gamma\cos\theta\\ \sin\gamma\sin\psi+\sin\theta\cos\gamma\cos\psi & -\sin\gamma\cos\psi+\sin\psi\sin\theta\cos\gamma & \cos\gamma\cos\theta \end{pmatrix}.\]
注 1 该式已作符号验证:\(C(C)^{\mathrm T}=I\)、\(\det C=1\) 恒成立。由矩阵反解时,正规分支 \(\cos\theta\neq0\) 下取
\[\theta=\arcsin(-r_{02}),\qquad \psi=\operatorname{atan2}(r_{01},r_{00}),\qquad \gamma=\operatorname{atan2}(r_{12},r_{22}).\]
注 2 使用 \(\operatorname{atan2}\) 而不是单比值 \(\arctan\),才能同时恢复象限。反解时使用 \(r_{02},r_{01},r_{00},r_{12},r_{22}\) 这些转置后矩阵的元素位置。
二、数值算例
例 G2-1 取 \(\psi=30^\circ\)、\(\theta=45^\circ\)、\(\gamma=60^\circ\),求 \(C_{n}^{b}\),并求 n 系单位向量 \(e_1,e_3\) 在 b 系中的分量。
解 代入一般式得
\[C_{n}^{b}=\begin{pmatrix}+0.612372 & +0.353553 & -0.707107 \\ +0.280330 & +0.739199 & +0.612372 \\ +0.739199 & -0.573223 & +0.353553\end{pmatrix}.\]
于是
\[C_{n}^{b}e_1=\begin{pmatrix}+0.612372 \\ +0.280330 \\ +0.739199\end{pmatrix},\qquad C_{n}^{b}e_3=\begin{pmatrix}-0.707107 \\ +0.612372 \\ +0.353553\end{pmatrix}.\]
注 3 \(C_{n}^{b}e_1\) 是第一列、\(C_{n}^{b}e_3\) 是第三列。行是 b 轴在 n 系中的方向余弦;n 轴在 b 系中的方向余弦是列,亦即 \((C_{n}^{b})^{\mathrm T}\) 的行。
注 4 第一列的模长核对:\(0.612372^2+0.280330^2+0.739199^2=1.000000\)。再核机头方向与反解角,可同时检查列取得对不对和角序有没有转置。
三、退化(万向锁)
性质 G2-2 当 \(\theta=\pm90^\circ\) 时 \(\cos\theta=0\),\(\psi\) 与 \(\gamma\) 只以组合出现,两个角只能定一个自由度,不能分别唯一解出。
注 5 本段只要求指出退化条件 \(\cos\theta=0\) 及“\(\psi,\gamma\) 不可分别解出”的后果。