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
5
votes
0 answers

Eigen eulerAngles are sometimes off by 180 degrees when angles are close to 0

I'm using Eigen's eulerAngles to get the roll, pitch, and yaw angles from a rotation matrix like so: const Eigen::Vector3f yaw_pitch_roll = rotation.eulerAngles(2, 1, 0); where rotation is some valid rotation matrix of type Eigen::Matrix3f. What I'm…
Alex
  • 3,316
  • 4
  • 26
  • 52
5
votes
1 answer

Getting the rotation of device around the world origin's y axis in ARKit

I am trying to calculate the rotation of my device when I rotate it around the y-axis in ARKit. For clarification the y-axis in ARKit is the axis pointing upwards perpendicular to the ground. I used eulerangles to get the rotation of the camera…
A. Claesson
  • 529
  • 4
  • 16
5
votes
0 answers

How to understand Euler angles from cv2.decomposeProjectionMatrix?

I have been searching the internet for hours on some documentation on how to understand the Euler angles returned by cv2.decomposeProjectionMatrix. My problem seems simple, I have this 2D image of an aircraft. I want to be able to derive from that…
Chris Unice
  • 181
  • 2
  • 8
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
  • 81
  • 1
  • 5
5
votes
3 answers

Rotation matrix to euler angles with opencv

I am working on a project wich involves Aruco markers and opencv. I am quite far in the project progress. I can read the rotation vectors and convert them to a rodrigues matrix using rodrigues() from opencv. This is a example of a rodrigues matrix I…
Brent Convens
  • 51
  • 1
  • 1
  • 5
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
5
votes
1 answer

Euler angles to rotation matrix manual transformation for iOS devices

This is a small background and introduction to the problem: I have some functionality in my motion- and location-based iOS app, which needs a rotation matrix as an input. Some graphical output is dependent on this matrix. With every movement of the…
5
votes
1 answer

Right-Handed Euler Angles XYZ to Left-Handed Euler Angles XYZ

I'm sure this is simple, but have not had any success researching this and getting a successful answer. I have rotations defined as three euler angles, in XYZ order, right-handed. I have to convert to a left-handed system of Euler XYZ. How do I…
5
votes
1 answer

CSS cubic panoramic control with euler angles in javascript

I am currently working on building a viewer to display panoramic photos. I have the images placed on the inside of a CSS cube, and am working on how to control it utilizing the deviceorientation event in javascript. I have found and implemented an…
Octothorpe
  • 175
  • 11
5
votes
2 answers

How to deal with the discontinuity of yaw angle at 180 degree

I'm working on a vehicle control and using a 9DOF sensor (accelerometer, magnetometer and gyroscope). For the yaw angle, I have a discontinuity problem at pi rad. (180 deg.). I'm controlling the vehicle with a PID controller and when the vehicle…
tarik
  • 153
  • 2
  • 10
4
votes
1 answer

C# How to convert Quaternions to euler angles (XYZ)

I have seen many questions to conversions between Euler angles and Quaternion, but I never found any working solution. Maybe you can help me why this is not returning the right values. I need the conversion between Quaternions(XYZ) to Euler angles…
Phill
  • 111
  • 2
  • 10
4
votes
2 answers

How to convert euler xyz to euler zxy using javascript

I am trying to convert euler rotation order from existing xyz to zxy. Could anyone please help me in doing this? Thanks. Edit: I found this really useful article, thinking it may help others on the same path -…
i4n
  • 210
  • 1
  • 3
  • 8
4
votes
1 answer

THREE.js setting a rectangle parallelepiped rotation according to "normal" vectors of two of its faces

I have a rectangle parallelepiped in the 3d space like this: Assume that it's placed on the axis origin and when its rotation is (0,0,0), its largest face (the green) is on XY, its smallest one (the blue) is parallel to YZ. Assuming I have two…
ProGM
  • 6,949
  • 4
  • 33
  • 52
4
votes
3 answers

GLM conversion from euler angles to quaternion and back does not hold

I am trying to convert the orientation of an OpenVR controller that I have stored as a glm::vec3 of Euler angles into a glm::fquat and back, but I get wildly different results and the in-game behavior is just wrong (hard to explain, but the…
Vittorio Romeo
  • 90,666
  • 33
  • 258
  • 416
4
votes
1 answer

iOS ARKit - Calculate the degree of rotation of device in all three direction

I want to get the degree of Rotation of all three axis. I am trying to achieve with landscape mode. When rotate device from left to right (Y-rotation), I want the degree covered once user set a left end and rotatae to right. So we need the degree…
jpulikkottil
  • 666
  • 9
  • 24
1 2
3
31 32