<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 11/08/2012 11:13 AM, Felix Rehrmann
wrote:<br>
</div>
<blockquote cite="mid:509B85D2.2080109@dfki.de" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Hi,<br>
<br>
I used a std::vector<double> as intermediate type for
Eigen::VectorXd.<br>
</blockquote>
This is a very bad idea. You should use <br>
<blockquote cite="mid:509B85D2.2080109@dfki.de" type="cite"> I also
added typelib conversion in ruby_types.</blockquote>
<blockquote cite="mid:509B85D2.2080109@dfki.de" type="cite"><br>
Now in base/actuators/command it takes Eigen::VectorX instead of
std::vector<double> for the ruby type (<a
moz-do-not-send="true"
href="http://rock-robotics.org/master/types/base/actuators/Command.html">here</a>).<br>
<br>
Is that done automatically?</blockquote>
Yes.<br>
<br>
<blockquote cite="mid:509B85D2.2080109@dfki.de" type="cite">Can that
be avoided?</blockquote>
Yes, by NOT telling the type system that std::vector<double>
is equivalent to Eigen::VectorXd. Create a specific type
wrappers::VectorXd.<br>
<br>
<blockquote cite="mid:509B85D2.2080109@dfki.de" type="cite">Should
that be avoided?<br>
</blockquote>
Yes, definitely !<br>
<pre class="moz-signature" cols="72">--
Sylvain Joyeux (Dr.Ing.)
Senior Researcher
Space & Security Robotics
Underwater Robotics
!!! Achtung, neue Telefonnummer!!!
Standort Bremen:
DFKI GmbH
Robotics Innovation Center
Robert-Hooke-Straße 5
28359 Bremen, Germany
Phone: +49 (0)421 178-454136
Fax: +49 (0)421 218-454150
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ß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>