380 questions
-1
votes
1
answer
128
views
Possible problem of precision in scipy Rotation [closed]
I am using a python script based on scipy for comparing 3x3 rotation matrices, more specifically to find the rotation angle(s) to go from one matrix (let's say "origin") to another matrix (...
0
votes
0
answers
26
views
How are the givens rotation of a matrix and its hermitian related?
I am working on transformation problem
A = U B U^dagger
in which I want to givens rotate U and its hermitian (U^dagger). Is there a relation between the Givens Rotation of a matrix and its hermitian?
...
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
0
answers
61
views
C# SharpDX, Quaternion Squad not continue
I'm using SharpDX to perform Squad interpolation of quaternions, but the calculated results are not continuous. Here is the code. What is the issue, and how can I fix it?
The following graph ...
0
votes
0
answers
68
views
Opencv coordinate transformation: Rotate a rotated coordinate system by one of its new (rotated) axes
For my thesis I am doing a computer vision project. Part of this is a lot of coordinate transformations which i struggle with at the moment. I just cannot rotate my coordinate system by an arbitrary ...
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(...
1
vote
1
answer
106
views
Calculate new X,Y rectangle coords after rotation
How to correctly calculate X1 after the rectangle was rotated 30 degrees? The X point is 164,83 before the rotation. I used this code:
void rotate_rectangle(double x, double y, double angle, double* ...
1
vote
2
answers
185
views
Corners detection fails when textbox is rotated
After rotating the text box in the GTK drawing area, the four corners detection didn't work anymore as the x,y vertices were left to their original values. I used this code to update them but still ...
1
vote
1
answer
193
views
calculating rotation matrix and translation vector
I have some camera parameters, from there I can get the intrinsic parameters matrix, but I didn't know how to calculate the extrinsic parameters without knowing the real world coordinates. I want ...
1
vote
1
answer
617
views
how to use efficiently rotation matrix in numpy to compute new coordinates along a circle (avoiding for loops)?
I would like improve the script below.
The goal of the script is to compute different coordinates corresponding to several angles. This corresponds to rotate one point around x axis and for each step ...
1
vote
1
answer
89
views
ThreeJS: Adding DecalGeometry inside to grouped object
There is a small sketch based of original ThreeJS DecalGeometry example and it works fine. Basically, it has to add logo to the tank center by X axis perpendicular [{0, 0, 0}, {tankRadius, 0, 0}] and ...
1
vote
0
answers
204
views
How to get correct rotation matrix from two vectors?
Problem:
According to a 3D coordinate axes, there exists a vector, v1. Now, this 3D coordinate axes rotates by a certain yaw, then pitch, then roll. Now, the vector existing in the space appears ...
0
votes
1
answer
39
views
Expanding quad to be oriented along control points
I have a problem with expanding and orienting a 4 vertices quad along two control points. I made this picture to illustrate my problem:
Here is my HTML5 canvas code trying to solve this problem. ...
2
votes
1
answer
1k
views
Rotations using quaternions and scipy.spatial.transform.Rotation for 6 degree of freedom simulation
I am writing a simple simulator for a remotely operated underwater vehicle (ROV). I want to use scipy implementation of quaternions instead of my previous approach based on constructing the rotation ...
0
votes
1
answer
80
views
Rotating a 3D body in python results in holes in the body
I have a 3D body, let's say a cuboid, which I want to rotate. For simplicity, let's assume it's just rotation around the x-axis. So I use the corresponding rotation matrix R and multiply it with the ...