<div dir="ltr">Stefan,<div style>After evaluating my options, I think the best way forward for my project is to get Collada import working in the RobotEditor Add-on. Do you want me to help code that? If so, I&#39;m thinking I would start playing with ColladaImExport.py and maybe email you separately with questions about how it works. One potential benefit of collaborating is the code will emerge with additional comments documenting the algorithm. :-)</div>

<div style>Regards,</div><div style>Will</div></div><div class="gmail_extra"><br clear="all"><div><div><font color="#999999">--</font></div><div><div><font color="#999999">William Hilton</font></div><div><font color="#999999">MET-lab PhD Student, </font><span style="color:rgb(153,153,153)">ECE Department, </span><span style="color:rgb(153,153,153)">Drexel University</span></div>

<div><font color="#999999">Website: </font><a href="http://music.ece.drexel.edu/people/wmhilton" target="_blank">http://music.ece.drexel.edu/people/wmhilton</a></div><div><span style="color:rgb(153,153,153)">Email: <a href="mailto:wmhilton@drexel.edu" target="_blank">wmhilton@drexel.edu</a></span> <font color="#999999"><br>

</font><div><font color="#999999">SMS: 513-368-5411</font></div></div></div></div>
<br><br><div class="gmail_quote">On Thu, Feb 7, 2013 at 5:22 AM,  <span dir="ltr">&lt;<a href="mailto:ulbrich@ira.uka.de" target="_blank">ulbrich@ira.uka.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi Will,<br>
<div class="im"><br>
<br>
&gt; I&#39;m not sure that what you are describing is what I want to do. I am not<br>
&gt; trying to export an armature from Blender to OpenRAVE. Rather, I&#39;m trying<br>
&gt; to import an armature from OpenRAVE to Blender. You are probably a great<br>
&gt; person to ask about this! Is there a way to do it without exporting to<br>
&gt; Collada 1.5 first?<br>
<br>
</div>Okay, I got you wrong then. I guess it will be difficult to do it<br>
without the export -- although I can imagine some ways. Both Blender<br>
and OpenRAVE are Python-based so you probably could write a script<br>
using both simultaneously. I tried something slightly similar (but<br>
without Blender) a while ago but I could not access the colors of the<br>
faces; only their geometry.<br>
If there is no strong argument against the Collada-export, we could<br>
try to fix the import. In theory, it won&#39;t require much work as the<br>
most complicated part -- the extraction of the kinematic / dynamic<br>
model -- already works.  That way, I can make sure that it can cope<br>
OpenRAVE&#39;s generated files.<br>
<br>
BTW, the COLLADA specific part of the RobotEditor is quite generic, so<br>
it could be integrated into other projects easily.<br>
<br>
Best,<br>
Stefan<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
&gt; --<br>
&gt; William Hilton<br>
&gt; MET-lab PhD Student, ECE Department, Drexel University<br>
&gt; Website: <a href="http://music.ece.drexel.edu/people/wmhilton" target="_blank">http://music.ece.drexel.edu/people/wmhilton</a><br>
&gt; Email: <a href="mailto:wmhilton@drexel.edu">wmhilton@drexel.edu</a><br>
&gt; SMS: <a href="tel:513-368-5411" value="+15133685411">513-368-5411</a><br>
&gt;<br>
&gt;<br>
&gt; On Wed, Feb 6, 2013 at 6:12 AM, &lt;<a href="mailto:ulbrich@ira.uka.de">ulbrich@ira.uka.de</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Hello,<br>
&gt;&gt;<br>
&gt;&gt; an alternative is the RobotEditor that is part of the OpenGRASP<br>
&gt;&gt; project (<a href="http://opengrasp.sourcefoge.net" target="_blank">http://opengrasp.sourcefoge.net</a>).<br>
&gt;&gt; The version on this homepage is outdated and works only with blender<br>
&gt;&gt; up to 2.49. However, we are currently<br>
&gt;&gt; working on a newer version compatible with blender 2.6x and only<br>
&gt;&gt; Collada 1.5 import is not working yet.<br>
&gt;&gt; It is in the official SVN and I will update the homepage within the<br>
&gt;&gt; next weeks. Note that it is in kind of a beta state.<br>
&gt;&gt;<br>
&gt;&gt; svn co<br>
&gt;&gt; <a href="https://opengrasp.svn.sourceforge.net/svnroot/opengrasp/RobotEditor2/" target="_blank">https://opengrasp.svn.sourceforge.net/svnroot/opengrasp/RobotEditor2/</a><br>
&gt;&gt; RobotEditor<br>
&gt;&gt;<br>
&gt;&gt; You cannot use the plugin to directly export your armature. You rather<br>
&gt;&gt; have to use the plugin to create a new one with<br>
&gt;&gt; annotations such as DH-parameters or acceleration/deceleration/joint<br>
&gt;&gt; speeds. The collada files should again work<br>
&gt;&gt; with the newest version of OpenRAVE.<br>
&gt;&gt;<br>
&gt;&gt; Under the hood, the regular collada export is used, and the resulting<br>
&gt;&gt; file is augmented by collada 1.5 tags (via python)<br>
&gt;&gt; without additional dependencies -- installation is hence very easy.<br>
&gt;&gt;<br>
&gt;&gt; I encourage you to try it out.<br>
&gt;&gt;<br>
&gt;&gt; Best,<br>
&gt;&gt; Stefan Ulbrich<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Zitat von Séverin Lemaignan &lt;<a href="mailto:severin.lemaignan@laas.fr">severin.lemaignan@laas.fr</a>&gt;:<br>
&gt;&gt;<br>
&gt;&gt; &gt; After a look to the Collada spec, what Blender supports are joints for<br>
&gt;&gt; &gt; animation skeletons and skin (page 110 of Collada 1.5 spec). These<br>
&gt;&gt; &gt; joints do not support limits for instance (only a transformation matrix).<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; What OpenRAVE emits are (rightfully) kinematic models (chap. 10, p. 435<br>
&gt;&gt; &gt; of Collada spec). These are apparently not supported by the Collada<br>
&gt;&gt; &gt; Blender importer. It should be however quite doable to add this feature<br>
&gt;&gt; &gt; to the importer (since it has similar effects as the existing skeleton<br>
&gt;&gt; &gt; system).<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; You may want to give it a look...<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Cheers,<br>
&gt;&gt; &gt; Severin<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On 02/06/2013 02:24 AM, William Hilton wrote:<br>
&gt;&gt; &gt;&gt; Hi Severin,<br>
&gt;&gt; &gt;&gt; I started looking at the actual XML, and have decided COLLADA is more<br>
&gt;&gt; &gt;&gt; complicated than I would have thought! There may be multiple ways to<br>
&gt;&gt; &gt;&gt; define an armature, and maybe my .dae file doesn&#39;t do it in a way<br>
&gt;&gt; &gt;&gt; Blender understands. Honestly, I don&#39;t know if the problem lies in<br>
&gt;&gt; &gt;&gt; Blender&#39;s import. For all I know, it could be in how OpenRAVE exports<br>
&gt;&gt; &gt;&gt; the model to .dae.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Here&#39;s the file I am trying to use. It&#39;s 6MB so I&#39;ll put it in Google<br>
&gt;&gt; Docs.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; <a href="https://docs.google.com/file/d/0B7vT3fhK-GBERGVDc0lWTVpBZnM/edit?usp=sharing" target="_blank">https://docs.google.com/file/d/0B7vT3fhK-GBERGVDc0lWTVpBZnM/edit?usp=sharing</a><br>
&gt;&gt; &gt;&gt; Will<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; --<br>
&gt;&gt; &gt;&gt; William Hilton<br>
&gt;&gt; &gt;&gt; MET-lab PhD Student, ECE Department, Drexel University<br>
&gt;&gt; &gt;&gt; Website: <a href="http://music.ece.drexel.edu/people/wmhilton" target="_blank">http://music.ece.drexel.edu/people/wmhilton</a><br>
&gt;&gt; &gt;&gt; Email: <a href="mailto:wmhilton@drexel.edu">wmhilton@drexel.edu</a> &lt;mailto:<a href="mailto:wmhilton@drexel.edu">wmhilton@drexel.edu</a>&gt;<br>
&gt;&gt; &gt;&gt; SMS: <a href="tel:513-368-5411" value="+15133685411">513-368-5411</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; On Tue, Feb 5, 2013 at 3:24 PM, Séverin Lemaignan<br>
&gt;&gt; &gt;&gt; &lt;<a href="mailto:severin.lemaignan@laas.fr">severin.lemaignan@laas.fr</a> &lt;mailto:<a href="mailto:severin.lemaignan@laas.fr">severin.lemaignan@laas.fr</a>&gt;&gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;     After some collada + armatures testing (namely, exporting<br>
&gt;&gt; &gt;&gt;     kuka_arm.blend to collada and re-importing, and importing this<br>
&gt;&gt; &gt;&gt;     collada file [1], with blender 2.65a), I get mixed results:<br>
&gt;&gt; &gt;&gt;     the Kuka model is garbage when I re-import it, while the collada<br>
&gt;&gt; &gt;&gt;     sample [1] looks fine.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;     So it is possible the Blender Collada *exporter*  does not work well<br>
&gt;&gt; &gt;&gt;     with armatures. Can you share a collada model you would like to<br>
&gt;&gt; import?<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;     Cheers,<br>
&gt;&gt; &gt;&gt;     Severin<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;     [1]<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; <a href="http://anima-animation-sample." target="_blank">http://anima-animation-sample.</a>__<br>
&gt;&gt; <a href="http://googlecode.com/svn-history/__r11/trunk/Models/cubes2.dae" target="_blank">googlecode.com/svn-history/__r11/trunk/Models/cubes2.dae</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &lt;<br>
&gt;&gt; <a href="http://anima-animation-sample.googlecode.com/svn-history/r11/trunk/Models/cubes2.dae" target="_blank">http://anima-animation-sample.googlecode.com/svn-history/r11/trunk/Models/cubes2.dae</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;     On 05/02/2013 20:15, William Hilton wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;         Yes, I should have mentioned I am using the latest version of<br>
&gt;&gt; &gt;&gt;         Blender<br>
&gt;&gt; &gt;&gt;         (2.65a).<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;     --<br>
&gt;&gt; &gt;&gt;               Séverin Lemaignan - <a href="mailto:severin.lemaignan@laas.fr">severin.lemaignan@laas.fr</a><br>
&gt;&gt; &gt;&gt;     &lt;mailto:<a href="mailto:severin.lemaignan@laas.fr">severin.lemaignan@laas.fr</a>&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;       [00]    Post-doctoral fellow in Cognitive Robotics<br>
&gt;&gt; &gt;&gt;     /|__|\   LAAS-CNRS - RIS group<br>
&gt;&gt; &gt;&gt;        &#39;&#39; <a href="tel:%2B33561337844" value="+33561337844">+33561337844</a> &lt;tel:%2B33561337844&gt;<br>
&gt;&gt; &gt;&gt;     <a href="http://www.laas.fr/~slemaign" target="_blank">http://www.laas.fr/~slemaign</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt;            Séverin Lemaignan - <a href="mailto:severin.lemaignan@laas.fr">severin.lemaignan@laas.fr</a><br>
&gt;&gt; &gt;    [00]    Post-doctoral fellow on Cognitive Robotics<br>
&gt;&gt; &gt;   /|__|\   LAAS-CNRS - RIS group<br>
&gt;&gt; &gt;     &#39;&#39;     <a href="tel:%2B33561337844" value="+33561337844">+33561337844</a><br>
&gt;&gt; &gt;            <a href="http://www.laas.fr/~slemaign" target="_blank">http://www.laas.fr/~slemaign</a><br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Robotics mailing list<br>
&gt;&gt; &gt; <a href="mailto:Robotics@blender.org">Robotics@blender.org</a><br>
&gt;&gt; &gt; <a href="http://lists.blender.org/mailman/listinfo/robotics" target="_blank">http://lists.blender.org/mailman/listinfo/robotics</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Robotics mailing list<br>
&gt;&gt; <a href="mailto:Robotics@blender.org">Robotics@blender.org</a><br>
&gt;&gt; <a href="http://lists.blender.org/mailman/listinfo/robotics" target="_blank">http://lists.blender.org/mailman/listinfo/robotics</a><br>
&gt;&gt;<br>
&gt;<br>
<br>
<br>
_______________________________________________<br>
Robotics mailing list<br>
<a href="mailto:Robotics@blender.org">Robotics@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/robotics" target="_blank">http://lists.blender.org/mailman/listinfo/robotics</a><br>
</div></div></blockquote></div><br></div>