483 questions
0
votes
0
answers
27
views
Why am I seeing chaotic jumps when extracting ZYX Euler angles near ±90° pitch?
I’m working on a real-time orientation extraction system (ZYX Euler angles) from my omega7 device, and I’m trying to understand why yaw/roll behave chaotically when pitch approaches ±90°, or when I ...
1
vote
0
answers
63
views
Euler angles continuity ZYX (Yaw Pitch Roll) when pitch crosses ±90
I’m using a Force Dimension Omega.7. From its 3×3 rotation matrix
𝑅
, I extract ZYX Euler angles (Yaw–Pitch–Roll) as:
double yaw= std::atan2(R\[1\]\[0\], R\[0\]\[0\]); // Z
double pitch = std::...
1
vote
1
answer
392
views
How can i get the Yaw Pitch and Roll values from the Camera Pose of the ARCore?
I have this Java code using the ARCore Pose :
private void updateCameraPose(Pose pose) {
//float[] quaternion = new float[4];
//pose.getRotationQuaternion(quaternion, 0);
...
0
votes
0
answers
31
views
Print rotation angles when rotating with TransformControls in R3F
I’m trying out R3F in React and rotating a capsule model using TransformControls (only on the Z-axis). I want to print the current rotation angle whenever it changes, but only the initial angle gets ...
1
vote
1
answer
364
views
Convert glm::quat to glm::vec3 of Euler angles? [duplicate]
How to convert glm::quat data to glm::vec3 angles?
Example:
I've start data:
glm::vec3 start = glm::vec3(90, 30, 45);
and after convert to quat
(0,730946)(0,016590)(0,677650)
.... How to convert ...
0
votes
1
answer
65
views
Image rotations in 3D space based on rotation matrices - Vector norm change
I am working on image rotations in 3D space. I am trying to rotate an image on a 3D graph based on Yaw, Pitch, and Roll angles.
I've succeeded in plotting the image as a polygon. Here is a view for ...
0
votes
1
answer
46
views
How to handle independent camera elevation in Three.js
I have the following code that is run on every frame:
const yRotationPerFrame =
(scaleSensitivity(leftStick.x) * framePeriod) / 15
const forwardVelocity = scaleSensitivity(...
0
votes
0
answers
54
views
Transformation conventions and ROS Issue
I have given following transformation:
arguments=['-0.005', '0.1370', '0.00548', '0.0148379', '-0.1494206', '0.9886599', '-0.0021957', 'wrist_3_link', 'camera_color_optical_frame']
This is being ...
1
vote
0
answers
184
views
Rotation matrix to Euler angles (Static RPY) using the C++ Eigen library
TLDR:
How to get Euler angles in RPY form from a rotation matrix using the Eigen library. I tried ChatGPT, Google search and the documentation. The following is supposed to be the way: mat.eulerAngles(...
0
votes
1
answer
176
views
How can I convert euler angles to a quaternion and extract them?
When trying to extra Euler angles from a quaternion I appear to be flipping the y and z components, but I don't understand how or why. I am within a left handed coordinate system and it appears that ...
4
votes
1
answer
804
views
How do I convert a Quaternion to Euler using glm and C++?
In my project, I use quaternions in my code, but I also want to be able to use Euler angles in other parts in my code because it's easier for me to use. But when I rotate the Y axis of a glm::...
0
votes
1
answer
586
views
Calculation of Yaw, Pitch and Roll
So basically I have had written a code which calculates the rvec, yaw, pitch and roll of aruko marker and displays them in real time.
import numpy as np
import cv2
import sys
import time
import math
...
0
votes
0
answers
47
views
Find difference in Rotation about a specific sequence of rotation
I have two Quaternion rotations
Quaternion rotation1 = Quaternion.LookRotation(forwardVector1, upVector1);
Quaternion rotation2 = Quaternion.LookRotation(forwardVector2, upVector2);
I want to ...
0
votes
1
answer
142
views
In Unity engine, why are Quaternion & Euler angles uses different Chirality?
I experimented with a simple Unity program with 1 camera, with a tracked pose driver. The result looks like this:
When given a Euler angle of XYZ format:
pitch up <=> X decrease
pitch down <=...
0
votes
1
answer
51
views
Find semi-equivalent Euler rotation vectors with one axis zeroed out
I’ve been stumped by a 3d math problem that exploits my weakness in quaternions! I am visualizing data from a physical sensor in unity / c#.
I have a ‘rod’ object with a rotation represented by the ...