Linear Algebra Problem: Solving for Euler between two ordered bases

In summary: Z! Notice that these vectors are perpendicular to each other and the origin.Finally, we need to define an Euler angle. This is simply an angle between the origin and a vector, say vector X+. So, our final equation would be:Euler angles can be rotated, translated, and scaled, but the origin will always stay in the same location.Ok, so now that we've got our basis set up, how would we solve for the Euler angles? First, we'd need to find the X+, Y+, and Z+ values for our new basis. This can be done by solving for the X
  • #1
Elroy
42
9

Homework Statement


Linear Algebra Problem: Solving for Euler between two ordered bases

I've got a problem I need to solve, but I can't find a clean solution.

Let me see if I can outline the problem somewhat clearly. Okay, all of this will be in 3D space. In this space, we can define some origin. Typically, in my situation, this will be a point on the floor in the middle of some room. Next, we need to define X+, Y+, and Z+ in the room. Think of the X+ and Y+ as a piece of graph-paper lying on the floor with its origin on the room's origin. The Z+ is simply the third (Up) dimension.

Okay, with this information, we can define any other point in the room, even points that aren't on the floor. They'll just have a Z+ value other than zero. So, to represent any arbitrary point in the room, we might have a vector of three scalers:

Now, that room origin and axis system is often called an "ordered basis", or just a "basis".

I should briefly talk about something else too, the right-hand-rule. Basically, this states that, while you're looking down any axis at the origin, counter-clockwise rotations are positive, and clockwise rotations are negative. It's easy to visualize this as a piece of graph paper. You don't often think about it, but you're looking down the Z-axis when you're looking at graph paper. Rotations around this Z-axis around the origin are positive if they're counter-clockwise, rotating toward Y+ off of the X+ axis, which typically shoots off to the right. If we extrapolate this to 3-axes (3D), this is the right-hand-rule. Here's an image I once made trying to illustrate this:

RightHandRule.png


Okay, forging on. Again, we've defined a "basis" (origin, X+ direction, Y+ direction, and Z+ direction) for our room. However, in truth, we can define any basis we like, so long as it's got an origin, an X+ direction, a Y+ direction, and a Z+ direction. You could think of the origin as the point in the above figure where the red, green, and blue lines converge. And then the X+, Y+, and Z+ directions are three points anywhere along the red, green, and blue lines. (Ideally, these lines are exactly one unit long, but this isn't absolutely required.) Also, as another FYI, these three directions are required to be orthogonal.

Since we can actually define any basis we like, we might imagine a basis defined as four of our above point-vectors, an origin, an X-axis direction, a Y-axis direction, and a Z-axis direction. The origin will always be in reference to our room's basis. However, the other three vectors can be rotated such that they're not parallel to the room's axes (X+, Y+, Z+).

Ok, one last piece of groundwork. To rotate from one basis to another, we can have what we call Euler angles. This could be thought of as another structure with three scalers. However, this time, they’re angles.
We can also talk about a translation (movement of the origin), but I'm mostly concerned about the rotation, so let's just forget changes in the origin of our two bases.

(Also, some might be having visions of quaternions and/or transformation matrices, but let's set those aside for now too.)

Ideally, what I'd like is a clean solution that solves for the Euler angles that would rotate one basis to another basis. In other words, given two bases (defined as above), how would I solve for the Euler angles? And the answer must follow the right-hand-rule.

Thanks in advance to all who take an interest in this. Also, just as an FYI, this isn’t some homework assignment. It’s actually for a project intended to help better understand children with walking disabilities.

Thanks,
Elroy
 
Physics news on Phys.org
  • #2
Could you maybe give some sort of example. You want to solve for the Euler angles for the new basis, but what exactly is defining the new basis? Quarternions may be something for you to look at, in a real application, though. There are already many software applications, which use this approach.
 
  • #3
Hi scottdave,

I'll be writing the software myself to do this, but I've got to understand how to do it first. And yes, I may get into quaternions before I'm done.

Let me see if I can pull together some figures to illustrate an example. Alright, the following figure represents a basis in 3D space:

Basis4.png


We can represent this basis with four vectors (or points) (with each vector having an X, Y, & Z component). We'll call the vector where the lines converge the "origin". For simplicity, we can think of this as <0,0,0> but it doesn't necessarily have to be.

Next, we've got a vector for the point on axis X, a vector for the point on axis Y, and a vector for the point on axis Z. The combination of these four vectors makes up an ordered basis.

Now, we can rotate the entire basis if we like. It's not totally easy to illustrate on a 2D screen, but the following is a rotated basis:

Basis5.png


Now, if I have a set of Euler angles, I can actually work out how to rotate one basis to another basis. However, what I'm after is the opposite. Let me superimpose the two bases, with the lighter one being the starting basis, and the darker one (primes) being the new basis. (Actually, I did the primes backwards, but you should still get the idea.)

Basis6.png


Now, let's say I've got both of these bases. What I'd like to solve for is the set of Euler angles between the two. The input will be four vectors representing basis#1 and four vectors representing basis#2. And the output I'd like will be three angles (Euler angles), following right-hand-rule.

Maybe that'll help,
Elroy
 

What is linear algebra?

Linear algebra is a branch of mathematics that deals with linear equations and their representations in vector spaces. It involves solving equations, working with matrices and vectors, and understanding geometric transformations.

What is an ordered basis?

An ordered basis is a set of linearly independent vectors that span a vector space. It is used to represent other vectors in the space and is essential for performing operations in linear algebra.

What is Euler between two ordered bases?

Euler between two ordered bases is a concept in linear algebra that measures the difference between the coordinates of a vector in two different ordered bases. It is used to transform a vector from one basis to another.

How do you solve for Euler between two ordered bases?

To solve for Euler between two ordered bases, you need to first determine the coordinate matrices for each basis. Then, you can use the formula E = B2^-1 * B1, where B1 and B2 are the coordinate matrices, and E is the Euler matrix. This will give you the transformation matrix to convert a vector from B1 to B2.

What are some real-life applications of solving for Euler between two ordered bases?

Solving for Euler between two ordered bases has many real-life applications, including image and video compression, computer graphics, and data encryption. It is also used in physics and engineering for solving problems involving transformations and coordinates in different reference frames.

Similar threads

Replies
1
Views
1K
  • Classical Physics
Replies
1
Views
744
Replies
2
Views
3K
Replies
18
Views
1K
  • Linear and Abstract Algebra
Replies
9
Views
583
Replies
7
Views
1K
  • Linear and Abstract Algebra
Replies
3
Views
307
Replies
5
Views
880
  • Linear and Abstract Algebra
Replies
6
Views
1K
Back
Top