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
2
votes
1 answer

Sequentially rotate threejs object around world axes (extrinsic Euler angles)

I am creating a visualization of extrinsic Euler angle rotations, and I want an animation where a cube rotates around the world axes depending on user input. I have a dat.GUI control with x, y, and z rotation angle controls. See this screenshot. So…
the_sky_is_pink
  • 109
  • 2
  • 11
2
votes
3 answers

How can I check if an object is facing a certain direction in Unity C#

Still pretty new to Unity and C#. I can usually find my way around when it comes to setting/changing the position of an object, but when it comes to rotation it's still mind boggling to me, with quaternion, eulerangles etc.. I'm trying to check if…
Marcus79
  • 77
  • 1
  • 8
2
votes
0 answers

Convert Euler angle between camera & robot coordinate system

My problem is simple, but yet confusing as I personally have no experience in angles and angles conversion yet. Basically, I need to locate the position of an object attached with single AruCo marker then send the 3d coordinate and pose of that…
2
votes
1 answer

Trying to convert Go Pro GYRO Data to rotation in Three.js

I'm trying to convert Go Pro gyro data to Three.js coordinates so that I can project the footage onto the inside of a sphere, rotate the sphere and have 3D stabilisation. The camera is orientated as such, and the order of the coordinates is…
beek
  • 3,522
  • 8
  • 33
  • 86
2
votes
2 answers

Assembly x86 quaternion to euler angles outputs wrong order

I'm having some troubles converting quaternions into euler angles. I've followed this C++ code found on Wikipedia and I think I did a pretty good job replicating it in assembly, the problem is that my code converts the WXYZ values to ZYX instead of…
Germ
  • 117
  • 6
2
votes
1 answer

Having Quaternions and Euler Angles, how can I calculate the absolute angles of the measuring device (with python)?

The setup is a measuring device giving me Quaternions and Euler Angles. The measuring device is mounted on a disk, which itself is mounted on an arm. The arm can rotate up and down while being fixed on one end, about 240 degrees, since it's sitting…
Gustave
  • 21
  • 4
2
votes
1 answer

Cube 3D points rotations X & Z

Include details about your goal: So first of all, my goal is to make the points rotations of a cube aroud X, Y, and Z axis to rotate the cube itself. Describe expected: I expect to have that after an 17.18° rotation around X axis: I expect to…
Albert4224
  • 73
  • 1
  • 7
2
votes
0 answers

How to convert Transformation matrix to Quaternion?

Hi I have obtained the Transformation Matrix which looks like this transformation matrix: -0.999702 -0.00155921 -0.0243653 0.62702 0 0.997959 -0.0638626 -0.287402 -0.0244151 0.0638436 0.997661 -0.0212277 0 …
Macedon971
  • 303
  • 2
  • 11
2
votes
2 answers

How to compute pitch and yaw values from forward vector

I want to compute the camera pitch and yaw values based on position and target points camera gets when it is instantiated. If I initialize pitch to 0 and yaw to -90 (as in LearnOpenGL Camera Tutorial), when the first rotate occurs, camera suddenly…
Vali Deaconu
  • 45
  • 1
  • 6
2
votes
3 answers

Unity2D rotation issue

I am trying to add a parachute in my game, and I need it to rotate 45 degrees right and then 45 degrees left and keep alternating, diagram of how i need to work below The code that i am using is as follows, however it only works on 1 side then…
2
votes
2 answers

Move and rotate object around pivot and resume from where it stopped

I'd like to move an object around another - just as if the one object was a child of the other. This is GDscript - Godot Engine 3.2, but the logic should be very similar to other game engines. Whenever I hold spacebar the green cube follows the…
NinjaFart
  • 1,626
  • 1
  • 20
  • 24
2
votes
3 answers

Apply rotation defined by Euler angles to 3D image, in python

I'm working with 3D images and have to rotate them according to Euler angles (phi,psi,theta) in 'zxz' convention (these Euler angles are part of a dataset, so I have to use that convention). I found the function scipy.ndimage.rotate that seems…
Manu
  • 186
  • 3
  • 11
2
votes
0 answers

Find the north using Quaternions, Gyro and Compass

This question is about an algorithm, not a specific language. I have a mobile device, with the following axis - When the device is pointed perpendicular to the ground (Positive Z facing up), I get an accurate reading of the compass in degrees with…
2
votes
1 answer

Accurately converting IMU angular velocities into a quaternion

Given three angular velocities vx, vy, vz about the x, y and z axes, measured in radians per second, as derived from an IMU's rate gyro, how do I produce an equivalent quaternion for the entire rotation between one sample and the next, i.e. the…
Luke Hutchison
  • 8,186
  • 2
  • 45
  • 40
2
votes
2 answers

Faster approach for decomposing a rotation to rotations around arbitrary orthogonal axes

I have a rotation and I want to decompose it into a series of rotations around 3 orthogonal arbitrary axes. It's a bit like a generalisation of Euler decomposition where the rotations are not around the X, Y and Z axes I've tried to find a closed…
Bill Sellers
  • 436
  • 3
  • 9