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
1
vote
1 answer

Which euler rotations can I use?

I have two Cartesian coordinates. There are xyz and BIG XYZ. I want to make these are parallel to each other. For example, x paralel to X ,y parallel to Y and z paralel to Z. I use a rotation matrix but I have a lot of different rotation matrices.…
user302547
1
vote
1 answer

Averaging rotations with euler angles or rotational matrices

I have been working on a small app that controls the rotation of a cubic map panorama via the gyroscope of a mobile device or tablet. I finally have it working, albeit roughly. My solution involved converting the euler angles coming in from the…
1
vote
2 answers

Convert Quaternion back into Euler

I am trying to figure out how to convert Collada (from Assimp) Quaternions for animation rotation, back into Euler rotations for FBX. I am sure it is a simple algorithm, I just can't find the right one...all the ones I try are wrong, that are…
Mary Ellen Bench
  • 589
  • 1
  • 8
  • 28
1
vote
2 answers

Translate Local quaternion rotation into global (gyro)

I need a way to get euler angles for rotation in global frame of reference from a local. I am using c#, wpf 3d and a gyroscope. I have a globe on the screen that should move in the same way as the gyro. Since the gyro sends movement relative to…
tomato
  • 96
  • 2
  • 13
1
vote
0 answers

Pitch and Roll with acceleration greater than +/- 1g

I'm looking to compute the pitch and roll of a device fitted with a three axis accelerometer when it is not at rest or moving at a constant velocity. Most applications I've seen so far are for stationary tilt sensing... genuinely stuck on this one!…
user3394391
  • 487
  • 6
  • 15
1
vote
2 answers

Understanding the output of solvepnp?

I am have been using solvepnp() for the calculation of the rotation and translation matrix. But the euler angles calculated from the obtained rotation matrix gave very erratic values. Trying to find the problem, I had a set of 2D projection points…
user2958957
  • 61
  • 1
  • 8
1
vote
1 answer

XYZ rotation to pan and tilt

I am trying to control a moving head camera in a certain direction from my computer. The camera is controlled only by pan (540 degrees) and tilt (280 degrees). The problem is getting the Euler angles to these pan and tilt degrees. I have a 3d…
sander
  • 11
  • 1
  • 2
1
vote
1 answer

iPhone augmented reality Euler angles rotation – roll issue

I’m working on an iOS augmented reality application. It is location-based, not marker-based. I use the GPS, compass and accelerometers to get latitude, longitude, altitude and the 3 euler angles: yaw, pitch and roll. I know using NSLog() that those…
MikaelW
  • 1,145
  • 4
  • 11
  • 29
1
vote
3 answers

Angle between two 3D vectors in 3D rotated by a quaternion

I have a 3D unit quaternion = {w,x,y,z} coming from a sensor device. I want to get the amount of angles(ax,ay,az) about X, Y and Z axes ( But the angles should be independent, one should not change when the other changes). I have come across,…
Armfan
  • 31
  • 1
  • 7
1
vote
2 answers

Drawing Euler Angles rotational model on a 2d image

I'm currently attempting to draw a 3d representation of euler angles within a 2d image (no opengl or 3d graphic windows). The image output can be similar to as below. Essentially I am looking for research or an algorithm which can take a Rotation…
jluzwick
  • 2,005
  • 1
  • 15
  • 23
1
vote
1 answer

quaternion To Euler algorithm. getPitch() returns Nan?

I am trying to convert the quaternion that I obtained from the sensor and get the pitch by calculating theta. If anyone is interested, have a look in this article- chapter 2 My problem is in the following code: private void…
COLD ICE
  • 840
  • 1
  • 12
  • 31
1
vote
1 answer

Interpolating euler angles/rotation matrices with a given time

How can i correctly interpolate between 2 euler angles with a given time (or velocity)? For instance, i want to implement a simple blink, rotating the lids first down and then up again. The time a blink takes should be between 50 and 500ms. At the…
EBBLER
  • 11
  • 3
1
vote
1 answer

Why are these 2 rotation matrices representing Quternions and Euler Angles not the same?

The following is the representation for rotating about a unit quaternion {q0,q1,q2,q3} by an angle alpha: q_0=cos(alpha/2) q_1=sin(alpha/2)cos(beta_x) q_2=sin(alpha/2)cos(beta_y) q_3=sin(alpha/2)cos(beta_z) Here,beta_x, beta_y and beta_z are the…
1
vote
1 answer

Getting a node in a node hierarchy to face the camera (billboard)

I need to make a node in a node hierarchy face the camera, or in other words, be a billboard. For every node, I store its world matrix, and world rotation as a quaternion. By what I know of quaternions, the operation I want is to get the difference…
user2503048
  • 1,021
  • 1
  • 10
  • 22
1
vote
1 answer

Android Magnetometer calculate altitude

Is it possible to get the altitude of my position using the Android magnetometer? If yes how can I calculate the altitude? As I understood I get from the Android API three coordinates x,y and z and the magnetic field strength in Tesla. I can…
Irgendw Pointer
  • 1,770
  • 3
  • 30
  • 67