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
31
votes
7 answers

How to calculate the angle from rotation matrix

I am using two image of the single object the object is roated certain degree from its first image. I have calculated the POSE of each image and converted the rotational vector to Matrix using Rodergues(). Now how do I calculate and see how much…
N.J
  • 1,044
  • 2
  • 9
  • 19
28
votes
8 answers

Is there an algorithm for converting quaternion rotations to Euler angle rotations?

Is there an existing algorithm for converting a quaternion representation of a rotation to an Euler angle representation? The rotation order for the Euler representation is known and can be any of the six permutations (i.e. xyz, xzy, yxz, yzx, zxy,…
Will Baker
  • 2,519
  • 4
  • 19
  • 17
24
votes
4 answers

Get pitch and roll from matrix without singularities

I'm working on motion simulator with 2 DOF (pitch & roll). I'm reading transformation matrix from game and I need to get the angles and send to hardware to drive motors. Since Euler angles have singularities, I can't really use them. It behaves like…
AdrianEddy
  • 677
  • 1
  • 7
  • 13
18
votes
3 answers

Android FaceDetector.Face Euler angles are 0 all the time

I'm trying to get a the Euler angle of a Face that is detected by FaceDetector. Here is what I use to output to Logcat: Log.v("debug", " X: " + face.pose(Face.EULER_X) + " Y: " + face.pose(Face.EULER_Y) + " Z: " + face.pose(Face.EULER_Z) ); But it…
mellowg
  • 1,736
  • 3
  • 15
  • 19
18
votes
2 answers

SceneKit – Mapping physical 360 rotation

I am having a hard time mapping device motion (sensor fusion) to SceneKit node rotation. The premise of the problem is as follows, I have sphere, and the camera is positioned to be inside the the sphere such that the geometric center of sphere and…
egghese
  • 2,088
  • 15
  • 26
18
votes
4 answers

Transform Image using Roll-Pitch-Yaw angles (Image rectification)

I am working on an application where I need to rectify an image taken from a mobile camera platform. The platform measures roll, pitch and yaw angles, and I want to make it look like the image is taken from directly above, by some sort of transform…
Tormod Haugene
  • 2,841
  • 1
  • 26
  • 41
17
votes
2 answers

How to convert direction vector to euler angles?

I'm looking for a way to convert direction vector (X,Y,Z) into Euler angles (heading, pitch, bank). I know that direction vector by itself is not enough to get the bank angle, so there's also another so-called Up vector. Having direction vector…
Kromster
  • 6,665
  • 7
  • 55
  • 98
16
votes
3 answers

Should Quaternion based 3D Cameras accumulate Quaternions or Euler angles?

So I have written a Quaternion based 3D Camera oriented toward new programmers so it is ultra easy for them to integrate and begin using. While I was developing it, at first I would take user input as Euler angles, then generate a Quaternion based…
Adam
  • 24,261
  • 23
  • 72
  • 87
15
votes
1 answer

Calculating the analogue of Euler angles/Tait-Bryan angles for dimensions >3

While trying to answer another SO question, the issue of how to calculate Euler angles for dimensions > 3 came up. The RSpincalc package has a straightforward DCM2EA function for converting a 3d rotation matrix to Euler or Tait-Bryan angles, but…
Nick Kennedy
  • 12,062
  • 2
  • 26
  • 49
13
votes
3 answers

Quaternions -> Euler Angles -> Rotation Matrix trouble (GLM)

I'm writing a program that loads a file containing a scene description and then displays it using OpenGL. I'm using GLM for all of my math operations. Rotations in the scene file are stored in quaternion format. My scene management systems takes…
iondune
  • 173
  • 1
  • 1
  • 7
13
votes
4 answers

Euler angle to Quaternion then Quaternion to euler angle

I'm using lib glm (http://glm.g-truc.net/) for test quaternion but I've a problem; when I convert euler angle to quaternion then immediatly quaternion to euler angles, my result are totally different from my initial euler angles. Is this normal?…
user1466739
  • 133
  • 1
  • 1
  • 4
12
votes
4 answers

Calculate rotations to look at a 3D point?

I need to calculate the 2 angles (yaw and pitch) for a 3D object to face an arbitrary 3D point. These rotations are known as "Euler" rotations simply because after the first rotation, (lets say Z, based on the picture below) the Y axis also rotates…
Robin Rodricks
  • 99,791
  • 133
  • 372
  • 575
11
votes
6 answers

Euler angles vs. Quaternions - problems caused by the tension between internal storage and presentation to the user?

Quaternions are arguably an appropriate choice for representing object rotations internally. They are simple and efficient to interpolate and represent a single orientation unambiguously. However, presenting quaternions in the user interface is…
Will Baker
  • 2,519
  • 4
  • 19
  • 17
10
votes
1 answer

How use raw Gryoscope Data °/s for calculating 3D rotation?

My question may seem trivial, but the more I read about it - the more confused I get... I have started a little project where I want to roughly track the movements of a rotating object. (A basketball to be precise) I have a 3-axis accelerometer…
Alex
  • 101
  • 1
  • 5
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
1
2 3
26 27