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.

405 questions
9
votes
2 answers

Quaternion reaching gimbal lock

In attempt to avoid angle lock when performing rotations I've tried to switch over to Quaternions. Somehow, I'm still managing to reach gimbal lock. I'm not sure if its due to the math I've implemented, or a design error, so please point out if I…
Yattabyte
  • 827
  • 8
  • 25
9
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
  • 771
  • 2
  • 7
  • 9
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
  • 753
  • 2
  • 10
  • 19
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
  • 161
  • 2
  • 7
8
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
  • 262
  • 2
  • 14
8
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,106
  • 2
  • 21
  • 30
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
8
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
  • 89
  • 1
  • 2
  • 5
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
  • 253
  • 1
  • 5
  • 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
  • 695
  • 2
  • 9
  • 26
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

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
  • 8,612
  • 5
  • 47
  • 99
6
votes
4 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
  • 145
  • 1
  • 2
  • 12
5
votes
4 answers

CESIUM : How to animate an aircraft from pitch, roll, heading?

I have flight data containing position (lat,lon,height) and orientation (pitch, roll, heading) in function of time. I would like to represent the aircraft in CesiumJS. I tried to create CZML file from the flight data. Everything worked fine for the…
Florent Du
  • 71
  • 1
  • 4
5
votes
0 answers

How to convert Quaternion rotation to Euler Angles?

I have been searching all over the internet and I cannot find a way to convert rotation in a quaternion notation to Euler angles. Is there a way?
user434565
  • 909
  • 1
  • 10
  • 21
1
2
3
26 27