<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    I wold like to define the quaternion&lt;-&gt;euler conversion add
    these methods to base/eigen.h<br>
    &nbsp;&nbsp;&nbsp; <br>
    &nbsp;&nbsp;&nbsp; static double getPitch(const base::Orientation&amp; orientation)<br>
    &nbsp;&nbsp;&nbsp; {<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return orientation.toRotationMatrix().eulerAngles(2,1,0)[1];<br>
    &nbsp;&nbsp;&nbsp; }<br>
    &nbsp;&nbsp;&nbsp; <br>
    &nbsp;&nbsp;&nbsp; static double getRoll(const base::Orientation&amp; orientation)<br>
    &nbsp;&nbsp;&nbsp; {<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return orientation.toRotationMatrix().eulerAngles(2,1,0)[2];<br>
    &nbsp;&nbsp;&nbsp; }<br>
    <br>
    <br>
    I looked at the ros-page to check how the quaternion is assembled
    there, they use an <br>
    <br>
    "... standard method is <strong>euler angles</strong> yaw, pitch,
    roll about ZYX respectively.<span class="anchor" id="line-21"></span>.."<br>
    (see: <a class="moz-txt-link-freetext" href="http://www.ros.org/wiki/geometry/CoordinateFrameConventions">http://www.ros.org/wiki/geometry/CoordinateFrameConventions</a>)<br>
    <br>
    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.<br>
    <br>
    ... discussion start ...<br>
    <br>
    Greetings,<br>
    Matthias<br>
    <br>
    <pre class="moz-signature" cols="72">-- 
 Dipl.-Inf. Matthias Goldhoorn
 Unterwasserrobotik

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

 Phone: +49 (0)421 178 45-4193
 Fax:   +49 (0)421 178 45-4150
 E-Mail: <a class="moz-txt-link-abbreviated" href="mailto:robotik@dfki.de">robotik@dfki.de</a>

 Weitere Informationen: <a class="moz-txt-link-freetext" href="http://www.dfki.de/robotik">http://www.dfki.de/robotik</a>
 -----------------------------------------------------------------------
 Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
 Firmensitz: Trippstadter Stra&szlig;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 

</pre>
  </body>
</html>