Euler Angle transformation, help

AI Thread Summary
The discussion centers on transforming Euler angles from a camera's frame of reference to a probe's frame of reference for a research project involving 3-D visualization. The user initially faced challenges due to the constantly changing orientation of the probe, complicating the transformation process. They sought a formula for instantaneous transformation to integrate into their MATLAB code. Ultimately, the solution involved creating a program to calculate the difference in Euler angles between the two coordinate systems and applying the inverse transformation using the rotation matrix. This approach successfully yielded a unit vector in the probe's coordinate system, enabling the desired visualization.
spaderdabomb
Messages
48
Reaction score
0
I'm doing a research project currently and basically what I have is a camera measuring a probe. I have designed the camera to give the orientation of the probe using euler angles in the camera's frame of reference. This was working for most of my data, but now I need a 3-D visualization of what the camera on the tip of the probe would see. In order to do that, I now need to know the euler angles in the probe's frame of reference.

I know how to make rotation transformations using euler angles for vectors, but for some reason this problem is confusing me. I need euler angles in one frame where I have the euler angles in another frame. Suggestions on how to make this work are greatly appreciated, thanks!

EDIT: An easy way would be IF I KNEW the angles between the two coordinate systems, but unfortunately one of the coordinate systems (the probe) is constantly changing. So it is a little more complex than simply adding angles and subtracting them. All I need though I guess, is a formula that gives me the instantaneous transformation. Then I can just put that into my MATLAB code and I'll have all the data I need.

DATA AVAILABLE:

- Vector between two coordinate systems
- Orientation of probe at any instance of time (but changing in time)
- Euler angles of probe in camera's reference frame
- Rotation matrix between both coordinate systems at any given instance of time
 
Last edited:
Physics news on Phys.org
Think I figured it out. All I had to do was write a program that constantly gave the difference in the euler angles of the two coordinate systems. Then I took the original vector (pointing in the -z direction of my probe's coordinate system) and did the inverse transformation using the inverse of the rotation matrix given by the euler angles. Finally, I did took that vector and normalized it so I had a unit vector in my new coordinate system pointing in the correct direction.
 
Thread 'Question about pressure of a liquid'
I am looking at pressure in liquids and I am testing my idea. The vertical tube is 100m, the contraption is filled with water. The vertical tube is very thin(maybe 1mm^2 cross section). The area of the base is ~100m^2. Will he top half be launched in the air if suddenly it cracked?- assuming its light enough. I want to test my idea that if I had a thin long ruber tube that I lifted up, then the pressure at "red lines" will be high and that the $force = pressure * area$ would be massive...
I feel it should be solvable we just need to find a perfect pattern, and there will be a general pattern since the forces acting are based on a single function, so..... you can't actually say it is unsolvable right? Cause imaging 3 bodies actually existed somwhere in this universe then nature isn't gonna wait till we predict it! And yea I have checked in many places that tiny changes cause large changes so it becomes chaos........ but still I just can't accept that it is impossible to solve...
Back
Top