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
2 answers

C# compass rotation script in Unity3d

I have a compass object which rotates and moves along with the camera. Thus the rotation and position of the compass object is adjusted along with the player-controlled camera. Now, having attached a needle to my compass - I would like to have the…
0
votes
0 answers

Simulink - Aircraft model with desired bank, pitch, yaw as input and accelerations, rates as outputs

I am developing a Simulink model to validate an attitude algorithm. I would like to compare some known inputs/outputs from a standard Simulink block to the ones obtained via my algorithm to validate its design. At the moment, I am using the…
0
votes
3 answers

Why does my 3 axes system coordinate orientation change x with y values?

I am using Matlab and Euler Angles in order to reorient a 3axes coordinate system. Specifically, Rz = [cos(ψ) sin(ψ) 0;-sin(ψ) cos(ψ) 0;0 0 1]; Ry = [cos(φ) 0 -sin(φ);0 1 0;sin(φ) 0 cos(φ)]; Rx = [1 0 0;0 cos(θ) -sin(θ);0 sin(θ) cos(θ)]; Rtotal =…
0
votes
0 answers

Rotation of object with point on object

I'm rotating a 3D object using a 4x4 transformation matrix. The object is a cylinder is rotated about its center point. The cylinder has a radius of 1 and a height of 2. Then there is a 3D vector (the position of the point on cylinder) placed at…
Eagle
  • 339
  • 1
  • 3
  • 14
0
votes
1 answer

Convert EulerAngle + yaw of the object to Vector

So I have the point "D", the yaw rotation "Y" of the complete object and the EulerAngle of the arm sitting on the shoulder. Now I want to find out the vector "V" and at the end the point "P". I also know the length of the arm. It's around 0.7. I…
Jalau
  • 303
  • 1
  • 2
  • 11
0
votes
0 answers

Quaternion to Euler angle conversion

I am using an IMU (MPU9150/9250) for measuring relative joint angle. If in two different conditions where, X is up and Z is towards the user Z is up and X is towards the user How can I convert the quaternion to Euler angle in ZYX sequence with out…
AM_87
  • 13
  • 5
0
votes
1 answer

Calculate coordinates before (CSS-transform) rotation of point

What I want to do: Give a javascript function the coordinates for a triangle in a 3d-room as parameter and it calculates the svg path and the css transformation angles for this object. What I've already figured out: to calculate the triangle…
LepBJ
  • 31
  • 8
0
votes
0 answers

Quaternion rotation issue, object axes don't rotate with object

Lets say I have an object, and that object has a quaternion representing its orientation. Currently, I can rotate on all 3 axes without gimbal lock, however, each rotation on any axis SHOULD rotate the other 2 axes of rotation. What I mean by this…
Yattabyte
  • 1,280
  • 14
  • 28
0
votes
1 answer

Camera rotation matrix and euler angles

I'm working on a code written by in Matlab by some other guy. Basically he calculates the rotation matrix starting from the euler angles. This rotation matrix is used to transform the world in the camera perspective (It's the view matrix if I'm not…
Alb
  • 23
  • 1
  • 5
0
votes
1 answer

What is the purpose of setEulerZYX() in bullet physics?

I have been looking into the RagdollDemo and have kind of got stuck in the part where setEulerZYX() is used in basis matrix. transform.setIdentity(); transform.setOrigin(btVector3(btScalar(-0.35), btScalar(1.45), btScalar(0.))); …
user3124361
  • 471
  • 5
  • 21
0
votes
1 answer

Compensating for pitch, roll and yaw in X, Y and Z(translational) values

Firstly, I understand this is not really a programming question but I believe that some of you here will understand what I'm trying to obtain. I'm a radiation Therapist and my research revolves around treating cancer patients with radiation and…
0
votes
0 answers

Which notation convention does OpenCV's rotation matrix use

I'm trying to use OpenCV to find the orientation/pose of a calibration checkerboard in a photo, so I'm using the solvePnPRansac function. I want to extract the board's axis system's orientation relative to the world system (ie. the angle between the…
Yassie
  • 316
  • 1
  • 4
  • 14
0
votes
1 answer

Get 2D direction that represents tilt direction of 3D object

I have a 3D object in space. Here it is from a top-down perspective: Y is towards us, so we can't see that axis. It's not tilting at all, so it's direction would be Vector2(0,0). Now the object is tilting forward. It's tilting towards the positive…
Vapid
  • 701
  • 7
  • 27
0
votes
1 answer

Difference between the two quaternions -- Euler Components

I am working on a wearable device using the Invensense 9D (Accel+Gyro+Compass) which computes a quaternion for real-time orientation, using the embedded Digital Motion Processor running a Kalman filter. Sadly -- the DMP code is not something that…
0
votes
2 answers

Calculating yaw angle without calibration

Suppose we have accelerometer and magnetometer. I'm wondering if there is an approach to calculate yaw angle without calibrating magnetometer if - Yaw angle relative to the magnetic north is not required to be accurate; so when the device pointing…
Ted Cheng
  • 33
  • 1
  • 8