How Can I Apply a Quaternion Rotation on a Local Axis After an Initial Rotation?

AI Thread Summary
To apply a quaternion rotation on a local axis after an initial rotation, start by applying the X rotation quaternion (QX) to the initial rotation quaternion (Q1), resulting in a new quaternion (R1). Next, modify the Y rotation quaternion (QY) by applying QX to it, which adjusts the Y axis to the new frame of reference, creating a new quaternion (QY'). Finally, apply QY' to R1 to achieve the desired rotation. This method ensures that the Y rotation is correctly aligned with the local axis defined by the initial rotation. Understanding quaternion multiplication's noncommutative nature is crucial for this process.
Registred
Messages
4
Reaction score
0
Hey,

Once again, I got a question about quaternions.
Say I have an initial rotation Q1. I now want to rotate Q1 on the X and then on the Y axis. BUT: The Y rotation should apply to the local Y axis which was given in Q1.

The problem is:
If i rotate Q1 by the X-rotation Q2, then the Y axis changes for Q1*Q2. So, since quaternion multiplication is noncommutativ, if I then apply the Y-rotation Q3, I don't rotate about the original Y axis of Q1.

How can I rotate quaternions this way?

Greetings!
 
Mathematics news on Phys.org
I assume that the rotations around X and Y will be achieved by applying by two separate quaternion increments, call them QX and QY. Assuming this is the case I think you need to proceed as follows;

1. apply the QX rotation to Q1, call the result R1.
2. apply the QX rotation to the QY rotation increment - this transforms the Y axis rotation from the original frame of reference to the frame that exists after you've done the X rotation. Call the modified QY increment QY'
3. apply QY' to R1
 
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...
Back
Top