[Rock-dev] define quaternions and decomposition to euler

Matthias Goldhoorn matthias.goldhoorn at dfki.de
Wed Nov 30 10:07:51 CET 2011


I wold like to define the quaternion<->euler conversion add these 
methods to base/eigen.h

     static double getPitch(const base::Orientation& orientation)
     {
         return orientation.toRotationMatrix().eulerAngles(2,1,0)[1];
     }

     static double getRoll(const base::Orientation& orientation)
     {
         return orientation.toRotationMatrix().eulerAngles(2,1,0)[2];
     }


I looked at the ros-page to check how the quaternion is assembled there, 
they use an

"... standard method is *euler angles* yaw, pitch, roll about ZYX 
respectively..."
(see: http://www.ros.org/wiki/geometry/CoordinateFrameConventions)

I would like to define this as an standard for rock too and add these 
methods and a few additional helper functions referring to this too.

... discussion start ...

Greetings,
Matthias

-- 
  Dipl.-Inf. Matthias Goldhoorn
  Unterwasserrobotik

  Hauptanschrift Standort Bremen:
  DFKI GmbH
  Robotics Innovation Center
  Robert-Hooke-Straße 5
  28359 Bremen, Germany

  Phone: +49 (0)421 178 45-4193
  Fax:   +49 (0)421 178 45-4150
  E-Mail: robotik at dfki.de

  Weitere Informationen: http://www.dfki.de/robotik
  -----------------------------------------------------------------------
  Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
  Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
  Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
  (Vorsitzender) Dr. Walter Olthoff
  Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
  Amtsgericht Kaiserslautern, HRB 2313
  Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
  USt-Id.Nr.:    DE 148646973
  Steuernummer:  19/673/0060/3


-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: http://www.dfki.de/pipermail/rock-dev/attachments/20111130/b6e6f937/attachment.htm 


More information about the Rock-dev mailing list