Eliminating the Euler Angle singularity without quaternions?

Click For Summary
The discussion centers on addressing the singularity issue in Euler angles when modeling the motion of a spinning top using Lagrangian mechanics. The original poster seeks alternatives to quaternions to avoid gimbal lock at theta=0, mentioning a suggestion from Yogi's paper that did not yield the expected results. They explore the possibility of restricting theta to a range that avoids singularities but ultimately find this insufficient for their case. The conversation shifts towards the feasibility of converting equations of motion from Euler angles to quaternions, with references to resources for performing such conversions. Ultimately, the need to delve into quaternion calculus becomes evident for a comprehensive solution.
James_Frogan
Messages
27
Reaction score
0
Hi all,

I've formulated using Lagrangian formalism the equations of motion for a spinning top. I know about the gimbal lock/singularity that occurs at theta=0 and I was wondering if there was any other way to do it without dwelving into quaternions.

Yogi published a paper "A Motion of Top by Numerical Calculation" suggesting a replacement: \dot{\beta} = \dot{\varphi} cos \vartheta and \dot{\alpha} = \dot{\varphi} sin \vartheta, but this hasn't worked for me (I find myself getting \ddot{\alpha} = 0, which isn't true)

I've had a look at quaternions but I'm not inclined to understand it or be able to simply 'convert' my equations over into quaternion calculus, neither (I believe) can I use Lagrangian mechanics on quaternions.
 
Physics news on Phys.org
One way to avoid the problem without using quaternions is to lock the possible values of theta to a given range that doesn't include the singularities. For example, theta cannot be smaller than 1E-6 degrees and larger than 179.99999 degrees. But the simplest way is using quaternions.

M.
 
Thanks Mbert, unfortunately the case I am looking at causes the top to rise to the steady position.. which unfortunately is the theta 0 position.

Looks like I'll have to dwelve into quaternions. Is it possible to 'convert' my equations in Euler angles into quaternions if I have the equations in Euler's (rigid body) equations? Or must everything be redefined again?
 
To convert from Euler angles to quaternions take a look at this website:

http://www.flipcode.com/documents/matrfaq.html#Q60"

Especially the part:

Q60. How do I convert Euler rotation angles to a quaternion?
-------------------------------------------------------------------

Converting Euler rotation angles to quaterions can be achieved through
the use of quaternion multiplication. Each rotation angle is converted
to an axis-angle pair, with the axis corresponding to one of the
Euclidean axii. The axis-angle pairs are converted to quaternions and
multiplied together. The final quaternion is the desired result.

The following code segment demonstrates this:
---------------------------------------------

quaternion_from_euler( QUATERNION *q, VFLOAT ax, VFLOAT ay, VFLOAT az )
{
VECTOR3 vx = { 1, 0, 0 }, vy = { 0, 1, 0 }, vz = { 0, 0, 1 };
QUATERNION qx, qy, qz, qt;

quaternion_from_axisangle( qx, &vx, rx );
quaternion_from_axisangle( qy, &vy, ry );
quaternion_from_axisangle( qz, &vz, rz );

quaternion_multiply( &qt, &qx, &qy );
quaternion_multiply( &q, &qt, &qz );
}
---------------------------------------------

M.
 
Last edited by a moderator:
Thanks Mbert, I came across several articles on how to convert the angles themselves to quaternion, however the equations of motion are in the forms of: \ddot{\phi},\ddot{\psi},\ddot{\vartheta} = f(\phi,\psi,\vartheta,\dot{\phi},\dot{\psi},\dot{\\theta}), so I cannot apply the conversions in that manner.

Does Lagrange formalism work on quaternions?
 
Thread 'What is the pressure of trapped air inside this tube?'
As you can see from the picture, i have an uneven U-shaped tube, sealed at the short end. I fill the tube with water and i seal it. So the short side is filled with water and the long side ends up containg water and trapped air. Now the tube is sealed on both sides and i turn it in such a way that the traped air moves at the short side. Are my claims about pressure in senarios A & B correct? What is the pressure for all points in senario C? (My question is basically coming from watching...

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
10
Views
4K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 24 ·
Replies
24
Views
21K
  • · Replies 6 ·
Replies
6
Views
3K