482 questions
1
vote
0
answers
61
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::...
0
votes
0
answers
26
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 ...
0
votes
1
answer
63
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
0
answers
50
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 ...
0
votes
1
answer
172
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 ...
0
votes
1
answer
576
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
1
answer
139
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 <=...
-1
votes
1
answer
365
views
glm::yaw How to get range between -180 to 180 or 360 degrees
I have a quaternion and I rotate this quaternion around the y axis.
I try to get the yaw from this quaternion and convert to degrees and it works perfectly fine... Until it gets past 90.
After it gets ...
-1
votes
1
answer
54
views
how to do Transformation in vtklinewidget
I am trying to draw a line using sensor coordinates and orientation angles. The one end of the line is sensor current location and i want to find the other end with same orientation as the current ...
0
votes
0
answers
44
views
How to have 3D rotation of a trajectory line in a 2D Game rotate depending on input position
I've had a codementor try and help me figure out how this game is doing this 3d rotation of their trajectory line but we couldn't get it to work yet in Unity.
Game that does the rotation I'm trying to ...
0
votes
1
answer
115
views
Getting a specific portion of rotation in Unity
I'm trying to implement gear physics using Unity, but I've encountered an issue. I've written the following code for one gear to follow another gear.
Quaternion targetRot = Quaternion.Inverse(...
1
vote
1
answer
372
views
Camera gets inverted when turning 180 degrees vertically in Unity
When I am turning my camera 180 degrees vertically the horizontal input gets inverted
using UnityEngine;
public class FreeLookCamera : MonoBehaviour
{
public float sensitivity = 2.0f;
...
0
votes
1
answer
71
views
Pendulum in Unity, sync with system clock (seconds)
I have to make a Pendulum sync with system time.
It has to be right in the middle of the swing when the second ticks in the clock.
I made this script, but its not sync.. it swings ok, but it depends ...
0
votes
0
answers
119
views
Computed Euler Angles are changing eventhough the phone was standing still
So i want to compute the euler angles and a rotation matrix to adjust the axis of the accelerometer.
I am using the accelerometer (420 Hz), gyroscope (420 Hz) and magnetometer (100Hz) sensors of my ...
0
votes
0
answers
263
views
Rotating the player beyond 360 degrees, 90 degrees at a time (Unity)?
So I am Somewhat new to coding (Started last year) so I might get a few things wrong or confused, I apologize preemptively.
I am trying to rotate my player in the same way the game series "Etrian ...
1
vote
0
answers
143
views
Lon Lat Yaw Pitch Roll conversion into VBS4 using the DIS protocol
I have the lon, lat yaw pitch roll of an aircraft which i need to forward into VBS using DIS to display the object.
example data:
Lon: 2.0445459
Lat: 12.4195886
Yaw: 180 (degree)
Pitch: 0
Roll: 0
The ...
0
votes
0
answers
953
views
How to find the angle between two rotational quaternions?
I want to find out by much angle each quaternion is moving and if its rotating in the same direction ( clockwise / anti-clockwise)
Right now, I am doing the following to calculate the rotation but I ...
0
votes
1
answer
472
views
Why is my Euler rotation not rotating the vector?
In a ZYX Euler rotation, my understanding is that the initial intermediate-rotation around the Z-axis rotates the basis for the subsequent rotation. It seems that Euler angles are typically measured ...
0
votes
0
answers
166
views
OpenCV head rotation to world coordinates
I am using WHENet to estimate head pose of an individual filmed by two cameras. The model gives me roll, pitch and yaw relative to each camera. Roll, pitch and yaw equal 0 when the indidual faces ...
0
votes
0
answers
260
views
How to compute Euler angles from Quaternion form?
I am trying to use the Quaternion form instead of rotation matrices.
I already trained my model, but when I need to test the model, I must compute Euler angles from the Quaternion form as this person ...
0
votes
1
answer
264
views
Strange behavior in Head pose estimation algorithm when face is moved away from center of image
I am trying to perform head pose estimation (determine the yaw, pitch, and roll of a face image). I first do face and landmark detection to obtain the 2D face landmark coordinates. Using these ...
0
votes
1
answer
28
views
eulerAngles and If statements
I'm working on a 2D BMX game with flips and spins and I'd like to make it so if the bike lands at the wrong angle it'll crash and restart at the checkpoint. For testing purposes I've tried to make it ...
0
votes
0
answers
249
views
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 ...
0
votes
1
answer
4k
views
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 ...
1
vote
1
answer
7k
views
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 ...