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 change when using as_euler after from_euler

Could you explain what is happening here? from scipy.spatial.transform import Rotation as R euler_angles1 = [ -150, -180, -120 ] rotation1 = R.from_euler("xyz",…
DavidBoja
  • 21
  • 1
  • 3
0
votes
0 answers

Unity setting localEulerAngles causes unexpected result

I have the following code: if (Input.GetKeyDown(KeyCode.A)) { var rot = switchTransform.localEulerAngles; Debug.Log(rot); rot.x = 150; switchTransform.localEulerAngles = rot; } When I click 'A', the switchTransform switches from…
SagiZiv
  • 932
  • 1
  • 16
  • 38
0
votes
1 answer

Unity 3D instantly rotate in the direction of movement

I have a somewhat similar question to this one, I'm trying to rotate in the direction of movement but the issue is that I want to maintain my position and just instantly rotate because I have a procedural maze and there's not enough space to…
0
votes
1 answer

SciPy rotation matrix from/as Euler angles

I'm working with Euler angles and SciPy's implementation of them. I'm having a hard time understanding how SciPy initializes rotations matrices from Eulers, or how it represents matrices as Eulers, or both. From reading the documentation, I would…
iter
  • 4,171
  • 8
  • 35
  • 59
0
votes
0 answers

Transformation of 2 objects in the same 3D-reference system in python

Iam looking for the transformation of two objects in 3D-Space. We have object 1 with for example: (x=1,y=2,z=4) coordinates and a rotation in euler (radiens) of (roll=0.7, pitch=1.2, yaw=0.5) and object 2 with: (x=2,y=-1,z=7) coordinates and a…
0
votes
2 answers

Unity: Inversing rotation around certain axis from quaternions

I have been researching about this topic for the past 3 days, but I seem to not understand how to handle quaternions correctly. I have a variable pose with a rotation property of the type "quaternion" that results in the euler angles (1, 2, 3). I…
THG
  • 1
  • 1
  • 2
0
votes
1 answer

Correct Camera Position from Vectors from solvePnP [python][opencv]

I am a hobbiest so excuse my question if it might be too basic. For a test I am currently trying to recreate a camera that I created in 3D looking at a plane with 4 variable points. The camera has a value of: Tx 53 TY 28 Tz 69 Rx -5 Ry 42 Rz 0 with…
nasun
  • 1
  • 2
0
votes
1 answer

How to check the IMU output angels are correctly in robot coordinates?

I have created ROS package and integrated with gazebo simulation. So also have IMU ROS driver and can check the ros topic from both side( ros package and gazebo ) correspond accordingly . So with ros2 topic list i can check the topic list. For…
Bob9710
  • 205
  • 3
  • 15
0
votes
1 answer

Unable to find cause of why my implementation of Euler Rotation using Matrix in JavaScript does not work

I am trying to rotate an existing Euler Angle (XYZ) by an Input (XYZ) around static axis that don't move and have a result that is also in XYZ. In particular, I want to rotate multiple objects by the same XYZ input and have them all rotate in the…
Axel
  • 23
  • 1
  • 3
0
votes
1 answer

Finding angle of swipe in Unity3D

I need to find the angle between the swipe in Unity3D. In the update function I'm using the following code: private void Update() { if (Input.GetMouseButtonDown(0)) { fingerup=Input.mousePosition; …
njnjnj
  • 978
  • 4
  • 23
  • 58
0
votes
1 answer

scipy Rotation.as_euler and rotation converter produce different results

www.andre-gaschler.com/rotationconverter **https://i.stack.imgur.com/8CKxr.png Euler angles in Output section. ** Rotation.as_euler R.from_rotvec([0.246806, -0.816317, -0.220443]).as_euler("xyz", degrees=True) >> array([ 24.49758771, -43.57370107,…
recsater
  • 1
  • 2
0
votes
1 answer

How to use the euler angles with rotations in "YXZ" ranging from -180 to 180 in a non three.js system into a three.js system

I have a 360 image (non three.js) system that outputs my Euler angles ( pitch (x), yaw (y) and roll (z) ) on rotation as "YXZ" order. The bounds of for example yaw are from [-180 to 180] (a net total of 360). I want to use these angles to rotate a…
0
votes
1 answer

Get the horizontal axis of 3D rotating object

I have a 3D camera that has animated euler rotation applied to it. I would need to duplicate this camera but only keep the horizontal rotation of it. Here is an example: https://youtu.be/x5gtPFnv2jU As you can see the center object only rotates on…
0
votes
0 answers

The same code renders differently on different PCs

I have this weird problem while running the same OpenGL code on different computers. I'm rolling camera along the z axis (like a head tilt to either side) and on one PC it rotates normally (just rotates and the texture stays the same width and…
0
votes
1 answer

Using scipy package, which sequence to choose for Rotation.as_euler()

I'm trying to convert from quaternion to row pitch yaw using the as_euler() function, but I don't know which sequence to choose as the parameter "zyx", "xyz", "zyz", etc Also what is the order of the output euler angles? Is it going to be [roll,…