• 坐标系的旋转与欧拉角

    • Definition

      • Geometrical definition
      • Definition by intrinsic本质的 rotation
      • Signs and ranges
    • 矩阵表示
      • 点变换
      • 坐标变换
    • 手机坐标系
    • References

坐标系的旋转与欧拉角

Definition

先绕z轴旋转α角,再绕x’旋转β角,最后绕z”旋转γ角,这组欧拉角被称为”zxz顺规”,以下结论均采用此顺序。
The Euler angles are three angles introduced by Leonhard Euler to describe the orientation of a rigid body with respect to a fixed coordinate system.[1] They can also represent the orientation of a mobile frame of reference in physics or the orientation of a general basis in 3-dimensional linear algebra.

三维空间的刚体绕定点旋转。

Euler angles are typically denoted as α,β,γ,or φ,θ,ψ\alpha,\beta,\gamma,or\ \varphi,\theta,\psi

Tait–Bryan angles are also called Cardan angles; nautical angles; heading, elevation, and bank; or yaw(偏航角), pitch(俯仰角), and roll(横滚角). Sometimes, both kinds of sequences are called “Euler angles”. In that case, the sequences of the first group are called proper or classic Euler angles.

Geometrical definition

The axes of the original frame are denoted as x,y,z and the axes of the rotated frame as X,Y,Z. The geometrical definition (sometimes referred to as static) begins by defining the line of nodes as the intersection of the planes xy and XY (it can also be defined as the common perpendicular(公垂线) to the axes z and Z and then written as the vector product N=z×Z N = z\times Z). Using it, the three Euler angles can be defined as follows:

  • α or φ\alpha\ or\ \varphi is the angle between the x axis and the N axis (x-convention - it could also be defined between y and N, called y-convention).
  • β or θ\beta\ or\ \theta is the angle between the z axis and the Z axis.
  • γ or ψ\gamma\ or\ \psi is the angle between the N axis and the X axis (x-convention).
    Euler angles between two reference frames are defined only if both frames have the same handedness(手性).

Definition by intrinsic(本质的) rotation

Intrinsic rotations are elemental rotations that occur about the axes of a coordinate system XYZ attached to a moving body. Therefore, they change their orientation after each elemental rotation. The XYZ system rotates, while xyz is fixed. Starting with XYZ overlapping xyz, a composition of three intrinsic rotations can be used to reach any target orientation for XYZ.

  • x-y-z, or x0-y0-z0 (initial)
  • x’-y’-z’, or x1-y1-z1 (after first rotation)
  • x″-y″-z″, or x2-y2-z2 (after second rotation)
  • X-Y-Z, or x3-y3-z3 (final)

Signs and ranges

  • for α and γ, the range is defined modulo 2π radians. For instance, a valid range could be [−π, π).
  • for β, the range covers π radians (but can’t be said to be modulo π). For example, it could be [0, π] or [−π/2, π/2].

矩阵表示

定义三个旋转矩阵

Rx(θ)=⎛⎝⎜⎜1000cosθsinθ0−sinθcosθ⎞⎠⎟⎟

R_x(\theta)= \begin{pmatrix} 1 & 0 & 0\\ 0 & \cos \theta & -\sin\theta \\ 0 & \sin \theta & \cos\theta \end{pmatrix}

Ry(θ)=⎛⎝⎜⎜cosθ0sinθ010−sinθ0cosθ⎞⎠⎟⎟

R_y(\theta)= \begin{pmatrix} \cos \theta & 0 & -\sin\theta\\ 0 & 1 & 0\\ \sin \theta & 0 & \cos\theta \end{pmatrix}

Rz(θ)=⎛⎝⎜⎜cosθsinθ0−sinθcosθ0001⎞⎠⎟⎟

R_z(\theta)= \begin{pmatrix}\cos \theta & -\sin\theta &0 \\\sin \theta & \cos\theta &0\\0 & 0 & 1 \end{pmatrix}

点变换

分别表示绕x,y,zx,y,z轴旋转θ\theta角
旋转之前在O−xyzO-xyz的坐标a=(x,y,z)Ta=(x,y,z)^T
旋转之后在O−xyzO-xyz的坐标a′=(x′,y′,z′)Ta'=(x',y',z')^T,有

a′=Rz(α)Rx(β)Rz(γ)a

a'=R_z(\alpha)R_x(\beta)R_z(\gamma)a

坐标变换

基变换:e′=eRz(α)Rx(β)Rz(γ)e'=eR_z(\alpha)R_x(\beta)R_z(\gamma),故

设一点在旧坐标系的坐标为a,在新坐标系的坐标为A,则

a=Rz(α)Rx(β)Rz(γ)A

a=R_z(\alpha)R_x(\beta)R_z(\gamma)A

手机坐标系

第一个角度:Azimuth 方位角
手机的偏航角定义为方位角A(Azimuth)∈[0,2π)\in[0,2\pi),从y轴顺时针旋转的角度。
第二个角度:Pitch 俯仰角(degrees of rotation around x axis)
机头向下为正,向上为负。
第三个角度:Roll 横滚角(degrees of rotation around y axis)
绕y轴逆时针为正,顺时针为负。

References

  1. Euler angles, wikipedia

坐标系的旋转与欧拉角相关推荐

  1. 地面坐标系与机体坐标系的转换和欧拉角

    大家在入门四旋翼飞行器数学模型时第一个遇到的就是坐标系的转换.这篇文章用尽量浅显的语言为大家讲解坐标系的转换的欧拉角. 机体坐标系 原点O取在飞机质心处, Xb轴指向机头, ,Yb轴指向机身右方, Z ...

  2. 图形学笔记(四)变换——三维变换(三维旋转与欧拉角)、MVP变换、视图变换、投影变换(正交投影与透视投影)

    图形学笔记(三)变换--缩放.镜像.切变 图形学笔记(五)光栅化--屏幕.像素.屏幕空间.视口变换.基础图元与三角形.采样.包围盒.锯齿或走样 文章目录 1 三维空间中的变换 1.1 三维空间中的齐次 ...

  3. 从旋转矩阵计算欧拉角

    从旋转矩阵计算欧拉角 从旋转矩阵中找到所有可能的欧拉角的简单方法,在计算机图形学.视觉学.机器人学和运动学中,欧拉角的确定有时是必要的一步.然而,解决方案可能是明显的,也可能不是. 旋转矩阵 我们从三 ...

  4. SO3,SE3,旋转,欧拉角与四元数笔记

    在机器人学中的定义和其它领域中的定义有时候会有不同,长时间不用也会记混淆.这里记录一下便于回头翻阅. 参考<A Mathematical Introduction to Robotic Mani ...

  5. matlab三维 旋转矩阵,matlab中的三维坐标系与旋转

    1. matlab中的三维坐标系 matlab中的三维坐标系是使用的右手坐标系: 输入以下代码: >> plot3(0,0,0) >> xlabel('axis X') > ...

  6. matlab中如何转动三维图_matlab中的三维坐标系与旋转

    1. matlab中的三维坐标系 matlab中的三维坐标系是使用的右手坐标系: 输入以下代码: >> plot3(0,0,0) >> xlabel('axis X') > ...

  7. Unity的旋转-四元数,欧拉角用法简介

    当初弄不明白旋转..居然找不到资料四元数应该用轴角相乘... 通过两种旋转的配合,可以告别世界空间和本地空间矩阵转换了,大大提升效率. 每个轴相乘即可,可以任意轴,无限乘.无万向节锁问题 四元数旋转: ...

  8. Unity手游之路四3d旋转-四元数,欧拉角和变幻矩阵

    http://blog.csdn.net/janeky/article/details/17272625 今天我们来谈谈关于Unity中的旋转.主要有三种方式.变换矩阵,四元数和欧拉角. 定义 变换矩 ...

  9. html二维坐标系转换,旋转坐标系 转换工具

    旋转坐标系转换工具 假设3D 点的坐标 P, 在已知 x-y-z坐标参考框架: (x,y,z). 1)我们现在想知道在 P 的坐标 x'-y'-z'坐标参考框架, 这是旋转θ 周围的弧度z/z' '轴 ...

  10. 左右手坐标系与旋转正向

    这两个问题很容易弄混淆.要确定旋转正向必须先确定是左手坐标系还是右手坐标系 1,判定坐标系: 1.左手坐标系: 伸开我们的左手, 掌心向外, 大拇指与食指成90度, 中指.无名指和小指弯曲, 大拇指指 ...

最新文章

  1. 杭电多校(二)2019.7.24--暑假集训
  2. EMNLP2018论文解读 | 利用篇章信息提升机器翻译质量
  3. Lua语法基础(1)---简介、基本数据类型、表达式
  4. HDOJ---2546 饭卡[DP01背包问题]
  5. 以张鸿蒙系统的手机,搭载鸿蒙系统的手机真的要来了?因为别无选择,所以唯有向前!...
  6. 不要等到离职,才明白这些道理
  7. 请实现一个函数,用来判断一棵二叉树是不是对称的。
  8. 通过GUID生成可持久化的PID
  9. css实现风车转动,纯CSS实现的风车转动效果特效演示
  10. Atitit 编程范式之道 attilax著 艾龙 著 1. 编程范式与编程语言的关系是什么? 1 2. LOP 面向语言编程(LOP, Language Oriented Programming
  11. 使用windows2003架设邮件服务器
  12. SQL Server 2005安装时提示“服务无法启动”
  13. w ndows 10画图,如何在Windows 10中打开和使用画图
  14. 设置jupyter notebook默认浏览器
  15. English-Phonics
  16. flappy bird java源码_Java实现Flappy Bird游戏源码
  17. 【无标题】阿里滑块 通过 x82y接口、dll、源码 返回x5sec,可解决!
  18. 计算机私密相册安全吗,手机照片到底藏在哪里才不会被别人随便就翻看到
  19. 【无标题】程序员的一大步
  20. MIT-6.s081-OS Lab: locks

热门文章

  1. 小狼毫 Rime 输入法任务导向式常用参数修改指南
  2. OP-TEE中的线程管理(一)
  3. ue4 基于motion vector粒子优化的一些感悟
  4. 椭圆曲线数字签名算法
  5. 算法与程序的区别与联系
  6. 当自己觉得特别迷茫的时候,是怎么走出这个困境的
  7. 【已解决】华为手机USB调试和监控ADB安装应用的选项变成了灰色如何解决 | 华为荣耀9手机USB调试和监控ADB安装应用选项变成了灰色怎么办
  8. 利用selenium实现中国裁判文书网自动登录批量下载功能
  9. seaborn使用boxplot函数可视化箱图并基于分组均值或者中位数进行箱图升序(ascending)排序(Sort Boxplots in Ascending Order with Python)
  10. PS2019工具介绍笔记(一)