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

Two similar pose has a big relative euler angle

There are two similar poses represented by Euler angle: s_euler_angle_o1: 0.000549608 -3.1334 1.23193 s_euler_angle_o2: 0.0222646 -3.10948 1.31032 But the relative Euler angle computed by Eigen is o1_euler_angle_o2: …
2
votes
2 answers

How to obtain the angle between two quaternions?

I am using inertial measurement units on the thigh and calf to try and obtain the knee joint angle in all degrees of freedom (x,y,z or flexion, adduction, rotation). An algorithm provided by the company converts the 9DOF from accelerometer,…
Eric
  • 425
  • 1
  • 5
  • 14
2
votes
1 answer

How to convert Euler angles and altitude of drone camera to coordinates of image center?

I'm trying to calculate the real world 3D-coordinate of the center pixel of image taken with a drone. I have the longitude, latitude, altitude, and Euler angles (yaw, pitch and roll) of the drone. The ground is assumed to be flat (sea level, since…
JVarga
  • 31
  • 4
2
votes
1 answer

How to calculate relative pose between two objects and put them in a transformation matrix

I have poses of two objects. They are in terms of x,y,z and roll, pitch and yaw (I get them in quaternion and then convert them to roll,pitch,yaw). What I need to do is I will record the relative pose between two objects, record them, so, when one…
2
votes
1 answer

Combine more than 3 rotations (Quaternions)

I have a 3D point and the x,y,z rotations (qInitial) for that point. I want to rotate that point more (by some degrees that could be 0 up to 360) around y axis (qYextra). How can I calculate the final Euler rotation (qResult.eulerAngles) that is a…
tsynn
  • 33
  • 8
2
votes
1 answer

How to isolate the x and z components of a quaternion rotation?

I can't comment other posts yet. ShawnFeatherly in this post wrote: Here's a way to get the local rotation of just the y-axis. This function can be modified to get the x or z-axis. /// isolate the y-Component of a rotation…
m5willmax
  • 41
  • 1
  • 3
2
votes
2 answers

Mathf.Clamp is resetting my eulerangle to minValue in Unity 3D

Mathf.Clamp is resetting my eulerangle to minValue when it reaches the maxValue instead of constraining it at maxValue. I have tried This : rotateX = Input.GetAxis("Mouse X") * senseX; player.transform.Rotate(player.up,…
Kaustav
  • 33
  • 6
2
votes
1 answer

How to get the orientation vector of the camera given its rotation matrix / quaternion?

When I have the rotation matrix or quaternion representation of a camera's pose, is there a way to obtain the orientation vector of the camera? Here the orientation vector means a 3D vector in the world coordinate (WC) that represents an…
2
votes
1 answer

Math behind the mouse input in opengl and the yaw/pitch values

Hi I was trying out some c++ opengl codes and made a camera. I wanted to give the scene a mouse input to look around, so I added this code just like the tutorial here. https://learnopengl.com/Getting-started/Camera However, there are some…
Peter
  • 460
  • 6
  • 23
2
votes
1 answer

Need to rotate object in specific ways - Stuck with Gimbal Lock?

I am working on a small mini-game that requires the rotation of a cube 90 degrees in the appropriate direction based on the direction you swipe. So you could swipe up and it would rotate up 90 degrees, and them immediately after, swipe left, and it…
A.Crane
  • 435
  • 1
  • 3
  • 12
2
votes
1 answer

Image to ECEF Transformation Matrix from Roll,Yaw,Pitch and GPS+Altitude

I am trying to estimate initial camera pose with respect to ECEF system using EXIF metadata. I have the a DJI Drone's gimbal Roll, Pitch and Yaw readings along with the Latitude, Longitude and Altitude. Assuming these values are fairly accurate, I…
2
votes
1 answer

Getting Y rotation of ARKit pointOfView

I'm trying to get the real life angle of the point of view in ARKit scene (0 - 360 degrees). I'm using euler angles from SCNNode of pointOfView. print("\(pointOfView.eulerAngles.y.radiansToDegrees)") Problem is, that when looking north, I'm…
awolCZ
  • 31
  • 3
2
votes
1 answer

How to convert a vector to a euler angle

I've scoured the net for almost three hours in an attempt to find the answer to my question. I have read articles and watched many videos that show how to get a vector's angle in degrees or radians. But that is not exactly what I'm looking for. I…
snowfrogdev
  • 5,963
  • 3
  • 31
  • 58
2
votes
1 answer

Rotation of object using Euler Matrix in python

I am trying to rotate a roll ( or cylinder) using Euler matrix. For that purpose I use the following function. def roll( R, zi, zf, Euler): # R is the radius of the cylinder # t is the angle which is running from 0 to 2*pi # zi is the…
2
votes
1 answer

Euler Angles Y value is affected by X and Z values - how do I zero them out to get a "truthful" y value?

The effect I'm trying to achieve is to have an arrow pointed out from the camera's pointOfView position, aligned with the scene (and gravity) on the x and z axis, but pointing in the same direction as the camera. It might look something like…
Andrew
  • 7,693
  • 11
  • 43
  • 81