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

Euler angles for a direction respect to rotated local axis system in unity

I want a determined angle in a local rotated axis system. Basically I want to achieve the angle in a plane of a determined rotated axis system. The best way to explain it is graphically. I can do that projecting the direction from origin to target…
rustyBucketBay
  • 4,320
  • 3
  • 17
  • 47
0
votes
0 answers

Transform pose data to different coordinate system

I have a pose (position as 3d vector + orientation as quaternion or RPY) sensor that streams data with respect to a known coordinate system. The translations and rotations are relative to those 3 known space axis, let's call it "world". I would like…
0
votes
0 answers

Calculate the rotation between 2 Inertial Measurement Unit (IMU) for each Tait-Bryan angles

The first IMU (called S1) is placed on the shoulder and works as a reference; the other (S2) is placed on the arm. They provide the quaternion of their rotation relative to the absolute reference (magnetic north and gravity vector). The simple idea…
RSSR
  • 1
  • 1
0
votes
1 answer

Rotate 3D Euler point using Quaternions to avoid gimbal lock

Firstly, I have done much googling and checking other stackoverflow posts about this, but cannot get a working reply or a snippet of working code. Maths is not my strength. I need to have a routine that takes a camera point (CX,CY,CZ) and rotate it…
TallGuy
  • 1
  • 1
  • 1
0
votes
2 answers

Adding Local Rotation to Global Rotation

I've tried many formulas and conversions, but nothing gave me the result I expect. The scenario is very simple: How the 3DS Max and other 3D softwares make the "transformation" of an increment in local rotation to the global absolute rotation? An…
user464230
  • 876
  • 2
  • 11
  • 21
0
votes
1 answer

Unity: ONLY rotate around an objects y axis, but the object in question already has changed rotation

like the title says, i essentially want to set the y rotation of gameobject1 to gameobject2, but gameobject1 already has changed rotation to something else than 0,0,0 in degrees. Say for example the rotation is 34, 50, 16. Since the rotation has…
0
votes
1 answer

Unity Quaternion - get Euler angles of a component B relative to component A

I cannot get my head around Quaternions, and have tried many combination of operators on this (after reading / viewing tutorials). No success - just shows my lack of understanding. Even tried it with angles and atan2() - but all that really showed…
nmw01223
  • 1,611
  • 3
  • 23
  • 40
0
votes
0 answers

Can I get a single axis of a quaternion?

I would like to rotate a quaternion about a specific axis. I tried q_rot*q_original, with q_rot a constant quaternion: double factor = sin( a / 2.0 ); double x = xx * factor; double y = yy * factor; double z = zz * factor; double w = cos( a / 2.0…
gab
  • 157
  • 2
  • 9
0
votes
1 answer

How to Flip 2D character in Unity using Euler Angles

i wanna make my character to flip in another direction and moving forward in the direction, but what I got is, My character can only walk in one direction, even if the character turns around, can you help solve it here's my code public class…
0
votes
4 answers

Rotate object to face a direction in a duration in Unity?

So, in my scene I have my main game object, and a second game object which serves as a reference. I want the main game object to rotate so that it will face the same way as the second game object. And this rotating needs to happen in a set time.…
0
votes
0 answers

Vector rotattion

So I'm trying to get the vector given the yaw, pitch, and roll using this formula var x = (-Math.cos(yaw) * Math.sin(pitch) * Math.sin(roll)) - (Math.sin(yaw) * Math.cos(roll)); var y = (-Math.sin(yaw) * Math.sin(pitch) * Math.sin(roll)) +…
0
votes
0 answers

Problem with robot orientation due to euler angles

I am trying to implement a basic path planning algorithm using python with a 4 wheels robot created for ROS and Gazebo, RViz. The only thing required for my algorithm is to make my robot oriented towards a given (using mouse) point in the x,y…
Michael
  • 3
  • 1
  • 3
0
votes
1 answer

Rodrigues formula not accurate?

Is the Rodrigues formula only valid for small angles? I tried to rotate a vector (1,0,0) around the y-axis first and then around the z-axis using the Rodrigues formula from wikipedia (https://en.wikipedia.org/wiki/Rodrigues%27_rotation_formula).…
0
votes
1 answer

How do I calculate tilt-compensated yaw?

I've been struggling for some time now on how to correctly calculate the yaw angle from an IMU, but can't get it to work. I'm using the LSM9DS1, if that matters. I already have proper values for roll and pitch. The value for yaw is also more or less…
Gereon99
  • 677
  • 1
  • 7
  • 15
0
votes
1 answer

Unit testing euler-to-quaternion implementation fails

I'm currently trying to implement a quaternion, in which I need euler-to-quaternion conversion. My current implementation looks like this, which I've nicked from here void Quaternion::FromEuler(double x, double y, double z) { z *=…
Daniel Everland
  • 90
  • 2
  • 11