Questions tagged [euler-angles]

The Euler angles are three angles introduced by Leonhard Euler to describe the 3D orientation of a rigid body.

The idea of Euler angles is to split the complete rotation of a cartesian coordinate system into three simpler rotations about the axes of this system. Euler angles also represent three composed rotations that move a reference frame to a given referred frame. This is equivalent to saying that any orientation can be achieved by composing three elemental rotations (rotations around a single axis), and also equivalent to saying that any rotation matrix can be decomposed as a product of three elemental rotation matrices.

475 questions
11
votes
2 answers

Roll pitch and yaw from Rotation matrix with Eigen Library

I need to extract the roll pitch yaw angles from a rotation matrix and I want to be sure that what I do is correct. Eigen::Matrix< simFloat, 3, 1> rpy = orientation.toRotationMatrix().eulerAngles(0,1,2); const double r = ((double)rpy(0)); …
desmond13
  • 2,913
  • 3
  • 29
  • 46
10
votes
6 answers

Euler to Quaternion / Quaternion to Euler using Eigen

I'm trying to implement a functionality that can convert an Euler angle into an Quaternion and back "YXZ"-convention using Eigen. Later this should be used to let the user give you Euler angles and rotate around as Quaternion and convert Back for…
Little-God
  • 183
  • 1
  • 3
  • 16
10
votes
3 answers

Conversion euler to matrix and matrix to euler

I'm trying to convert a 3D rotation described in term of euler angles into a matrix and then back, using .NET/C#. My conventions are: left handed system (x right, y top, z forward) order of rotations: heading around y, pitch around x, bank around…
Mike
  • 821
  • 2
  • 8
  • 10
10
votes
4 answers

Euler angles between two 3d vectors

How do you find the 3 euler angles between 2 3D vectors? When I have one Vector and I want to get its rotation, this link can be usually used: Calculate rotations to look at a 3D point? But how do I do it when calculating them according to one…
tomyake
  • 109
  • 1
  • 2
  • 6
9
votes
4 answers

Correcting the Yaw part of one Quaternion by the Yaw part of another one

I have the following problem: A quaternion (q1) from a motion capturing device needs to be corrected by the yaw angle (and only yaw!) from another orientation quaternion (q2) derived by a second tracked object, so that the pitch and roll of q1 is…
Raboon
  • 91
  • 1
  • 2
9
votes
1 answer

Three.js setFromRotationMatrix strange behavior when rotation is over 90 degrees

I have objects which each have a separate parent for each rotation axis (1 for X-rotation, 1 for Y-rotation, and 1 for Z-rotation. They are all related to each other in that order as well: X-rotation object is a child of the Y-rotation object.…
MrGarretto
  • 282
  • 4
  • 14
9
votes
1 answer

Adding an euler angle to a Quaternion

I want to add an euler angle to an existing quaternion. Here is what i got: Quaternion oldTransform = transform.Rotation; float YawRotation = mouseDiff.x * RotationSpeed; Quaternion YawRotationQuaternion = new…
jsf
  • 913
  • 3
  • 14
  • 22
8
votes
1 answer

How to understand head pose estimation angles in Python with OpenCV?

I am working through a Python and OpenCV head pose estimation tutorial found here: https://www.learnopencv.com/head-pose-estimation-using-opencv-and-dlib/ I am able to accurately project a 3D point onto the 2D image. However, I am unable to…
Chris Unice
  • 181
  • 2
  • 8
8
votes
3 answers

Head Pose Estimation with OpenCV, C++ and Image 2D - Geometric Method - Roll, Yaw and Pitch

I'm trying to find the three angles of the face of a person, based on a 2D image . I'm using OpenCV with HaarCascade to find the face, eyes, nose and mouth. But I don't found any geometric method that can help me to find the angles X, Y and Z (Roll,…
John Smith
  • 81
  • 1
  • 3
7
votes
3 answers

Global Rotation

in GLScene we have three parameters (RollAngle, PitchAngle and TurnAngle) for rotation around local orientation. in the image below, how can I rotate cube around global orientation (orange axis)?
Ata
  • 273
  • 1
  • 7
  • 13
7
votes
2 answers

Three.js cube face rotation vector in relation to camera

I have a rotating sphere on which I have a div attached the example can be viewed here: https://jsfiddle.net/ao5wdm04/ I calculate the x and y values and place the div using a translate3d transform and that works quite well. My question is how to…
Andreas Jarbol
  • 745
  • 2
  • 11
  • 27
6
votes
1 answer

Compute Altitude and Azimuth from CMAttitude using either Roll, pitch and Yaw or Quaternion or Rotation Matrix

I am struck with a problem. I want to convert the CMAttitude information of an iPhone to Altitude (0 to 90deg) and Azimuth (0 to 360 deg). I have googled around and hit some threads which discuss about it, but none of threads turn out with a…
6
votes
1 answer

Is there a way to calculate 3D rotation on X and Y axis from a 4x4 matrix

First of all, I am not a mathematical expert at all. Please be tolerant to my mathematical mistakes and correct me where necessary, I'd love to learn. I have a cube which is rotating using css animations with transform: matrix3d(4x4). I can also…
6
votes
1 answer

html5 - Get device orientation rotation in relative coordinate

I'm trying to get the change in orientation between two deviceorientation events along the left-right axis, and top-bottom axis, those axis being usually defined as the phone x and y axis…
Guig
  • 9,891
  • 7
  • 64
  • 126
6
votes
2 answers

Convert yaw, pitch AND roll to x,y,z vector in world coordinates

I'm working on some simple 3d graphics in OpenGL (java LWGJL), and I'm trying to figure out how to convert yaw, pitch and roll to the x, y and z components of my movement Vector. I know how to do this with just pitch and yaw (as explained here), but…
ApproachingDarknessFish
  • 14,133
  • 7
  • 40
  • 79
1
2
3
31 32