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

Understand Quaternions axis angle

I'am working with Madgwick algorithm who gives me a Quaternions for accelerometer and gyro. So I can get the angle from q0 with this formula 2 * acors(q0) it's works I've tried and I got the good value. But now I don't understand how can I know for…
simon
  • 1,180
  • 3
  • 12
  • 33
0
votes
1 answer

Euler angles in Three JS not as expected for simple box Mesh

I have a box in the global axis system XYZ, and I want to rotate to a new axes system X'Y'Z' Vectors for the new axes are: X' = (0,1,0) Y' = (1,0,0) Z' = (0,0,-1) This means i know the rotation matrix: 0,1,0 1,0,0 0,0,-1 And I need to rotate the…
TomTem
  • 89
  • 9
0
votes
1 answer

three js object rotating y rotate z instead

I really can't understand why this is happening, but let me start from the beginning: I have this finger texture on a plane, and on idle rotation the finger is pointing to the Y+. I want it to point to X+ so here is what I did: 1- I first make the…
shamaseen
  • 2,193
  • 2
  • 21
  • 35
0
votes
1 answer

Get orientation angle from rotation matrix (camera/marker)

When i get my rvecs from the function estimatePoseSingleMarkers how can I get the angle for the orientation of my marker ? On Stackoverflow and others forums, the function Rodrigues seems to be necessary, but I don't understand what exactly the…
AmBou99
  • 1
  • 1
0
votes
0 answers

Conversion Formula for Yaw-Pitch-Roll from Raw 9-D0F IMU Values (Gyroscope, Accelerometer, Magnetometer)

I am getting raw values from a 9 DoF IMU Sensor (MPU9250), the values contain Gyroscope(Gx,Gy,Gz), Accelerometer(Ax,Ay,Az), and Magnetometer(Mx,My,Mz). I wish to get Yaw, Pitch and Roll from these values on Python. Can someone kindly share a…
0
votes
1 answer

Why am I getting wrong imaginary number?

I want to collect polar coordinate values by converting them to Cartesian values in C. But I'm getting wrong values at 12°: #include #include #include #include int main() { int desire=1; int…
maxemilian
  • 347
  • 1
  • 3
  • 15
0
votes
1 answer

Camera rotation jitters after a certain threshold (video)

So I have this setup: Camera rotation is clamped on the Y axis. It can only rotate from -75 to 75 degrees left and right, and its rotation is controlled by the mouse. Player body can rotate around its Y axis, and its Y rotation value is added to…
0
votes
0 answers

Pass iOS CMDeviceMotion to THREE.js to Rotate Spherical Panorama

I need to pass iOS app motion data to my WKWebView that loads a spherical panorama using THREE.js. The THREE.js relies on Quaternion calculated from alpha, beta, gamma, but since CMDeviceMotion on iOS does not provide those, but does provide…
Vad
  • 3,658
  • 8
  • 46
  • 81
0
votes
1 answer

Apply game object rotation using relative VR controller rotation?

I have a game object in Unity which I want to be able to rotate using my VR controller. I can kind've achieve this by doing the following... bool triggerClicked = false; Transform rightHand = Player.instance.rightHand.transform; void Update () { …
aadu
  • 3,196
  • 9
  • 39
  • 62
0
votes
0 answers

Angles are Pi distance from actual angles after conversation To/From Quaternion

I have the following code Eigen::AngleAxisd z(0, Eigen::Vector3d::UnitZ()); Eigen::AngleAxisd pan(2 / 180. * std::acos(-1), Eigen::Vector3d::UnitY()); Eigen::AngleAxisd tilt(3 / 180. * std::acos(-1), Eigen::Vector3d::UnitX()); auto q = z * pan *…
Humam Helfawi
  • 19,566
  • 15
  • 85
  • 160
0
votes
2 answers

Unity mathf.clamp in multiple angle ranges

I wanted to restrict the area of the arrow movement between -140 and -40 degrees as indicated in the drawing but as the distribution of the degrees in the angular area is strange if I limit it between -140 and -40 as a minimum and maximum…
user13970771
0
votes
1 answer

How to find the rotation matrix of 3 orthogonal vectors in space. My current method rotates the vectors to the wrong orientation

I am looking to find the rotation matrix for getting three (almost) orthogonal vectors to be in the same orientation of the world coordinate system. My three (almost) orthogonal vectors can be represented like this in python: vectors = np.array([[…
0
votes
1 answer

Is it possible to compute euler/orientation angles from change of position over time?

If I have two 3D (XYZ) positions at time t and time t+1, is it possible to compute the euler/orientation angles of the 2nd position (t+1) relative to t? I can get yaw/Z pretty easily. Change of y over x, or atan2(dx, dy). Pitch/Y I think would be…
user2840470
  • 919
  • 1
  • 11
  • 23
0
votes
1 answer

Correlating Looping Rotation values to Movement values in Unity3D

I'm trying to simulate unscrewing a nut from a bolt. To me, this means tracking the y-rotation and moving the nut on the y-axis depending on the direction the nut is rotating. The problem is that euler angles loop between 0 and 360 and quaternions…
0
votes
1 answer

In Unity, Swipe to rotate an object and when it reach 30° snap it to 90°

The problem I wanted to solve : When I swipe the screen in the right direction, the cube starts to rotate on the Y axis, and when it reach 30°, the cube y rotation snaps smoothly to 90°. And by smoothly i mean a fast animation to 90° and not abrupt…