[ODE] Rotation matrix - setting euler, etc.

STenyaK (Bruno Gonzalez) stenyak at gmx.net
Fri Mar 24 07:42:36 MST 2006


AFAIK, in order to prevent gimbal lock, the solution is to never user
euler angles. The wikipedia page also talks about using a 4th value, but
that seems to still leave a possibility of problems.

Offtopic: can the mailing list be set so that hitting "reply" replies to  
the list, not the author of the email?

On Fri, 24 Mar 2006 15:16:13 +0100, Gussimulator
<gussimulator at yahoo.com.ar> wrote:

>
> i dont think its gimbal lock but just in case how can i prevent it?
> This happens randomly even when the objects are laying on the ground,  
> another comes over it and they rotate too fast (not physics-wise but  
> rotation-wise, from my conversion function).
>
>
>
> ----- Original Message ----- From: "STenyaK (Bruno Gonzalez)"  
> <stenyak at gmx.net>
> To: <ode at q12.org>
> Sent: Friday, March 24, 2006 6:50 AM
> Subject: Re: [ODE] Rotation matrix - setting euler, etc.
>
>
>> Maybe you've found the reason why euler angles are recommended not to be
>> used.
>> http://en.wikipedia.org/wiki/Gimbal_lock
>>
>> On Fri, 24 Mar 2006 05:24:18 +0100, Gussimulator
>> <gussimulator at yahoo.com.ar> wrote:
>>
>>> My problem relies mostly on my getpitch() routine
>>> the rotation seems ok on the pitch axis, but the objects spins from
>>> times to times.. perhaps im not doing the conversion correctly. but I'm
>>> sure I am !
>>>
>>> Im trying to convert the pitch from the quaternion rotation, but the
>>> same issue popups..
>>>
>>>
>>>
>>>
>>> ----- Original Message ----- From: "STenyaK (Bruno Gonzalez)"
>>> <stenyak at gmx.net>
>>> To: "Gussimulator" <gussimulator at yahoo.com.ar>
>>> Sent: Friday, March 24, 2006 12:25 AM
>>> Subject: Re: [ODE] Rotation matrix - setting euler, etc.
>>>
>>>
>>>> You may want to test this code:
>>>> http://svn.sourceforge.net/viewcvs.cgi/motorsport/trunk/src/common/quaternion.cpp?view=markup&rev=374
>>>>
>>>> On Fri, 24 Mar 2006 03:40:04 +0100, Gussimulator
>>>> <gussimulator at yahoo.com.ar> wrote:
>>>>
>>>>> Hi, I've nailed the Y and Z rotation problems but I'm still getting
>>>>> problems with the pitch (would be X).
>>>>> Are there any good source examples that would suit ODE's needs?, I  
>>>>> need
>>>>> to be able to convert from euler to rotation matrix and vice versa.  
>>>>> Im
>>>>> able to do this but ODE doesnt seem to like my rotation matrix, its
>>>>> giving wrong rotations all the time!.
>>>>>
>>>>> Thanks
>>>>
>>>>
>>>>
>>>> -- Saludos,
>>>>      STenyaK
>>>>
>>>> _______________________________________________
>>>> Site:   http://1ksurvivor.homeip.net  <1kSurvivor>
>>>>          http://motorsport-sim.org     <Motorsport>
>>>>          http://kwh.iespana.es         <KuantikalWareHouse>
>>>>          http://emuletutorial.info     <EmuleTutorial>
>>>> ICQ:    153709484
>>>> Mail:   stenyak AT gmx DOT net
>>>> _______________________________________________
>>>> ODE mailing list
>>>> ODE at q12.org
>>>> http://q12.org/mailman/listinfo/ode
>>>
>>
>>
>>
>> -- Saludos,
>>     STenyaK
>>
>> _______________________________________________
>> Site:   http://1ksurvivor.homeip.net  <1kSurvivor>
>>         http://motorsport-sim.org     <Motorsport>
>>         http://kwh.iespana.es         <KuantikalWareHouse>
>>         http://emuletutorial.info     <EmuleTutorial>
>> ICQ:    153709484
>> Mail:   stenyak AT gmx DOT net
>> _______________________________________________
>> ODE mailing list
>> ODE at q12.org
>> http://q12.org/mailman/listinfo/ode
>



-- 
Saludos,
      STenyaK

_______________________________________________
Site:   http://1ksurvivor.homeip.net  <1kSurvivor>
          http://motorsport-sim.org     <Motorsport>
          http://kwh.iespana.es         <KuantikalWareHouse>
          http://emuletutorial.info     <EmuleTutorial>
ICQ:    153709484
Mail:   stenyak AT gmx DOT net


More information about the ODE mailing list