Questions tagged [rotational-matrices]

Rotational Matrices, also called direction cosine matrices, are matrices that represent a rotation from one coordinate frame to another in Euclidean space.

Rotational Matrices, also called direction cosine matrices, are matrices that represent a rotation from one coordinate frame to another in Euclidean space. They are always square, orthogonal, and include only real elements.

Rotational Matrices can easily be converted to other common rotation representations including and .

373 questions
5
votes
0 answers

Android Rotation Vector sensor and Rotation Matrix

I'm new in the rotation matrices field and I'm trying to understand the behave of the Rotation Vector Sensor. I can't understand the relation between yaw, pith and roll with the values returned by the Rotation Vector Sensor. I checked the source…
5
votes
0 answers

Android: Get accurate azimuth

I've searched a while about how to get the most accurate azimuth of device and came up with this: //Activity members private SensorManager sensorManager; private float mAzimuth = 0.0f; private float[] mRotation = null; private float rMat[] = new…
michael
  • 3,835
  • 14
  • 53
  • 90
5
votes
4 answers

Epipolar geometry pose estimation: Epipolar lines look good but wrong pose

I am trying to use OpenCV to estimate one pose of a camera relative to another, using SIFT feature tracking, FLANN matching and subsequent calculations of the fundamental and essential matrix. After decomposing the essential matrix, I check for…
5
votes
1 answer

Separating axis theorem: rotation around center of mass

The problem is in Polygon::FindAxisLeastPenetration: double Polygon::FindAxisLeastPenetration(unsigned int *faceIndex, const Polygon &polygonA, const Polygon &polygonB) const { double bestDistance = -std::numeric_limits::infinity(); …
ivknv
  • 305
  • 1
  • 4
  • 14
5
votes
1 answer

How to compute difference between rotation matrices?

I have two rotation matrices. One is that of the rotation matrix of a real webcam which I got by solving the PnP problem. I have a world coordinate frame and I know the locations of each and every point in world coordinates in the world space. As…
j1897
  • 1,507
  • 5
  • 21
  • 41
5
votes
1 answer

Android Convert device coordinate system to "user" coordinate system

My question is similar to Changing sensor coordinate system in android I want to be able to compare a user's movements with each other regardless of device orientation. So that when the users holds out the phone in portrait orientation and bends his…
4
votes
1 answer

Euler angles discrepancy in MATLAB

I have a rotation matrix from one basis to another: Rot = [0.1227 0.0269 -0.9921;... 0.8635 -0.4956 0.0934;... 0.4892 0.8681 0.0840]; I use MATLAB rotm2eul function to get the Euler angles in 'ZYZ'…
stinglikeabeer
  • 455
  • 1
  • 3
  • 11
4
votes
0 answers

Transformation from inertial/sensor frame to the body frame

I'm working with IMU providing me with their orientation to a common Global coordinate system. I have created a segment coordinate system from a static posture with know orientations. I have placed two sensors on the thigh, rotated approx. 90…
Masilila
  • 504
  • 4
  • 9
4
votes
1 answer

Train for a parameter in the weight matrix in Tensorflow

I have a neural network. For simplicity, there's only one layer and the weight matrix is of shape 2-by-2. I need the output of the network to be the rotated version of the input, i.e., the matrix should be a valid rotation matrix. I have tried the…
learner
  • 3,168
  • 3
  • 18
  • 35
4
votes
2 answers

Euler Angles and Rotation Matrix from two 3D points

I am trying to find the Euler angles that allow the transformation from point A to point B in 3D space. Consider the normalized vectors A = [1, 0, 0] and B = [0.32 0.88 -0.34]. I understand that by computing the cross product A × B I get the…
jcampos
  • 67
  • 2
  • 7
4
votes
1 answer

Inverting 3d rotation sequence

I have a transformation matrix constructed as H = Rz * Ry * Rx. So rotations are performed in xyz order. Now, given rotation angles around x, y, and z axes, is there a way to find rotation angles to perform inverse operation, such that v = Rz * Ry…
Blaz Bratanic
  • 2,279
  • 12
  • 17
4
votes
2 answers

Java Tetris - Rotations using Rotation Matrices

I'm building Tetris in Java and am trying to use linear algebra to rotate a piece composed of 4 tiles. My friend was explaining the way to do it is: He said: "To clarify, you do need to rotate each point -- that is you need to rotate one point…
user3871
  • 12,432
  • 33
  • 128
  • 268
4
votes
2 answers

Floating point error in successive coordinate rotations

I have code (Python) that must perform some operations regarding distances between reflected segments of a curve. In order to make the thinking and the code clearer, I apply two rotations (using matrix multiplication) before performing the actual…
heltonbiker
  • 26,657
  • 28
  • 137
  • 252
3
votes
1 answer

How can you constrain a neural network layer to simply be a n-dimensional rotation layer?

I'm looking to constrain one layer of my neural network to specifically find the best rotation of its input in order to satisfy an objective. (My end goal, where R is the rotation layer, is of the form R.transpose() @ f(R @ z)). I am looking to…
Sean K
  • 102
  • 6
3
votes
2 answers

Determining Point Position based on Camera Rotation/Translation before and after Origin Change

Apologies if this is a dumb question, i'm very new to working in 3D. I have a number of pinhole cameras with a 3x3 rotation matrix and a translation vector based around the origin (0,0,0). The system I'm working with can move the origin point and…
user807068
  • 33
  • 3
1 2
3
24 25