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
8
votes
2 answers

Average and Measure of Spread of 3D Rotations

I've seen several similar questions, and have some ideas of what I might try, but I don't remember seeing anything about spread. So: I am working on a measurement system, ultimately computer vision based. I take N captures, and process them using…
8
votes
1 answer

TYPE_ROTATION_VECTOR, TYPE_ORIENTATION give different results that too with deviation

I have implemented listener for both Rotation Vector and Orientation Vector though i know it's depreciated i wanted to test both. I know Rotation Vector is a fusion sensor & recommended but according to it the NORTH (the value[0] returned by…
8
votes
1 answer

python implementation of 3D rigid body translation and rotation

I've been trying to work out how to solve the following problem using python: We have points a, b, c, d which form a rigid body Some unknown 3D translation and rotation is applied to the rigid body We now know the coordinates for a, b, c We want to…
lost
  • 2,210
  • 2
  • 20
  • 34
7
votes
3 answers

How do I rotate a PyTorch image tensor around it's center in a way that supports autograd?

I'd like to randomly rotate an image tensor (B, C, H, W) around it's center (2d rotation I think?). I would like to avoid using NumPy and Kornia, so that I basically only need to import from the torch module. I'm also not using…
ProGamerGov
  • 870
  • 1
  • 10
  • 23
7
votes
0 answers

Aligning a Point Cloud with the Floor (plane) Using Open3D

Community, I am trying to align a point cloud with the detected floor using Open3D. So far I implemented the following steps (partly of this answer): Detecting the floor using Open3D's plane segmentation Translating the plane to the coordinate…
rayon
  • 490
  • 7
  • 16
7
votes
3 answers

GLM Make Rotation Matrix from vec3

I am making a game and I need the projectile to face which direction its going. I know which direction its going and I need to make a transformation matrix that would allow me to align the projectile model direction (1, 0, 0) or the positive X axis,…
Jerfov2
  • 5,264
  • 5
  • 30
  • 52
7
votes
2 answers

Stop rotation of image after 360' degree

I am trying to rotate image single round from it's center point but I am not able to stop at desire position as I can do rotation but I want to stop rotation after 360'(1 round). public class RotateRoundActivity extends Activity implements…
Maulik
  • 3,316
  • 20
  • 31
6
votes
1 answer

Converting from a Euler ZXZ rotation, to fixed axis XYZ rotations

The problem i have, is that i need to convert from XYZ fixed axis rotations, to Euler rotations about Z, then X', then Z''. Here are the relevant matrices: X: Y: Z: Combined, as Rz(psi) Ry(phi) Rx(theta) = Rxyz(theta,phi,psi); they give: Rxyz:…
will
  • 10,260
  • 6
  • 46
  • 69
6
votes
1 answer

Compute Altitude and Azimuth from CMAttitude using either Roll, pitch and Yaw or Quaternion or Rotation Matrix

I am struck with a problem. I want to convert the CMAttitude information of an iPhone to Altitude (0 to 90deg) and Azimuth (0 to 360 deg). I have googled around and hit some threads which discuss about it, but none of threads turn out with a…
6
votes
3 answers

Python Numpy Apply Rotation Matrix to each line in array

I have a rotation matrix, and am using .dot to apply it to new values. How can I apply it to each row in a numpy array? Numpy array looks like: [-0.239746 -0.290771 -0.867432] [-0.259033 -0.320312 -0.911133] [-0.188721 -0.356445 -0.889648] …
bhreathn711
  • 79
  • 1
  • 2
  • 6
5
votes
0 answers

Android: Proper interpretation of sensor values

So I've been poring over the SensorEvent documentation trying to get a handle on how to figure out what direction is north, relative to a given axis of the phone. I've drawn a little image that illustrates my conception of how the coordinate system…
Paul
  • 10,381
  • 13
  • 48
  • 86
5
votes
1 answer

Computing Rotation Matrix from Vanishing Points

I am trying to recover the 3D orientation of the three axes of a building in an image. My current approach is to manually annotate the three vanishing points corresponding to the three axes, estimate the camera calibration matrix K, and then compute…
5
votes
2 answers

LWJGL - Problems implementing 'roll' in a 6DOF Camera using quaternions and a translation matrix

I've spent a couple weeks on this issue and can't seem to find a proper solution and need some advice. I'm working on creating a Camera class using LWJGL/Java, and am using Quaternions to handle bearing (yaw), pitch and roll rotations. I'd like…
5
votes
3 answers

Rotation matrix to euler angles with opencv

I am working on a project wich involves Aruco markers and opencv. I am quite far in the project progress. I can read the rotation vectors and convert them to a rodrigues matrix using rodrigues() from opencv. This is a example of a rodrigues matrix I…
Brent Convens
  • 51
  • 1
  • 1
  • 5
5
votes
1 answer

Euler angles to rotation matrix manual transformation for iOS devices

This is a small background and introduction to the problem: I have some functionality in my motion- and location-based iOS app, which needs a rotation matrix as an input. Some graphical output is dependent on this matrix. With every movement of the…
1
2
3
24 25