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
3
votes
1 answer

Compute rate of change of orientation(angular measurement) along y axis?

I want to compute rate of change of orientation of the iPhone along y axis. 1. Initially i need to define the reference as y axis, 2. Then measure the rate of change of orientation(angular measurement) from the defined reference. Does CMAttitude…
sam
  • 259
  • 1
  • 6
  • 22
3
votes
3 answers

Sensor Orientiation -> GLRotation doesn't work properly

I want to use the Android orientation sensor data for my GLES camera - giving it the rotation matrix. I found a very good example here: How to use onSensorChanged sensor data in combination with OpenGL but this is only working with GL1.0 and I need…
2
votes
0 answers

Python: How to perform PCA with promax rotation?

How can I perform PCA in python, from SVD and eigenvalue decomposition with promax rotation? I've implemented a function that returns a rotation matrix such that the rotated loadings are and the rotated left singular vectors are . How can I get…
arod
  • 85
  • 5
2
votes
1 answer

Computer representation of quaternions that's exact for 90-degree rotations?

Unit quaternions have several advantages over 3x3 orthogonal matrices for representing 3d rotations on a computer. However, one thing that has been disappointing me about the unit quaternion representation is that axis-aligned 90 degree…
Don Hatch
  • 5,041
  • 3
  • 31
  • 48
2
votes
1 answer

How to Rotate Points from a Meshgrid and Preserve Orthogonality

When I use a rotation matrix to rotate points from a meshgrid, the points are no longer orthogonal. Using NumPy, how do I keep the gridlines perpendicular when rotating? Here's the Python code that I'm using: import numpy as np import…
Jakub
  • 489
  • 3
  • 13
2
votes
1 answer

measure difference between rotation matrix

I have two rotation matrix suppose initial basis O is identity in R^3 and rotation RAO transforms a point in O into basis A and rotation RBO transforms a point in O into basis B I tried to calculate angle differences between RAO and RBO like: from…
John Lai
  • 23
  • 5
2
votes
1 answer

Applying OpenCV Pose Estimation to Blender Camera

The Problem I'm trying to use Blender to create synthetic image for use with OpenCV's pose estimation (specifically, OpenCV's findEssentialMat and recoverPose). However, I found that the rotation matrix R that OpenCV returns corrects for rotations…
2
votes
1 answer

Issues with Z-axis rotation matrix in glsl shader

I've recently began putting together an OpenGL ES 1.1/2.0 2D pipeline from the ground up (iPhone only). This pipeline is intended to be used by engineers with no 3D math experience. Commented out are the X and Y axis rotation matrices that produce…
2
votes
1 answer

Interpreting the rotation matrix with respect to a defined World coordinates

In the image bellow, we see a defined world plane coordinate (X,Y,0) where Z=0. The camera as we can see is heading towards the defined world plane. World reference point is located on the top left of the Grid (0,0,0). The distance between every two…
2
votes
0 answers

How to combine two 3x3 rotation matrices to align accelerometer axes with another coordinate system

I am trying to align the X, Y, Z axes from an accelerometer to the X, Y, Z axes of a vehicle. My approach consists of two steps: 1 step: Find a rotation matrix Rz to align the Z axes of both coordinate systems. I know the acceleration vector of the…
2
votes
1 answer

3x3 Matrix Rotation with non uniform scaling

I am having some trouble dealing with matrix transforms. For the test I have a chain of 10 squares, each parented to the previous square. I can then apply a rotation to each square and get this result... This is correct, exactly what I want. Now…
Peter Gilmour
  • 67
  • 1
  • 9
2
votes
1 answer

How do I draw a line indicating the orientation of an Apriltag?

I am using python and the pupils-apriltag library to detect apriltags in pictures and video. Ultimately I need to find and be able to work with the orientation of the apriltag. For each apriltag detected in an image or video stream, the rotation…
Joshua
  • 21
  • 2
2
votes
1 answer

How to animate on matplotlib graph

I have an assignment where I need to project 3D cube in to 2D Cartesian plane, I've done plotting the vertex points but will still need to animate it somehow. I have tried using FuncAnimation(), but no clue how it works. I am still new to python so…
Roid
  • 35
  • 7
2
votes
2 answers

Numpy rotation matrix multiplication

I want to calculate and multply a sequence of rotation matrix using numpy. I've written this code to do my job, def npmat(angle_list): aa = np.full((nn, n, n),np.eye(n)) c=0 for j in range(1,n): for i in range(j): th…
Eular
  • 1,707
  • 4
  • 26
  • 50
2
votes
2 answers

How to test if a matrix is a rotation matrix?

I have a task to check if a matrix is a rotation matrix, I write code as follow: import numpy as np def isRotationMatrix(R): # some code here # return True or False R = np.array([ [0, 0, 1], [1, 0, 0], [0, 1,…
Hao Li
  • 1,593
  • 15
  • 27