<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="http://forum.robosavvy.com/feed.php?f=9&amp;t=6755" />

<title>RoboSavvy Forum</title>
<subtitle>Robosavvy Forum: The largest online community of Humanoid Robot Builders</subtitle>
<link href="http://forum.robosavvy.com/index.php" />
<updated>2011-11-02T19:22:50+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=9&amp;t=6755</id>
<entry>
<author><name><![CDATA[amuthelet]]></name></author>
<updated>2011-11-02T19:22:50+01:00</updated>
<published>2011-11-02T19:22:50+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32743#p32743</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32743#p32743"/>
<title type="html"><![CDATA[Kondo KHR3 Animation using Blender]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32743#p32743"><![CDATA[
If I remember well, Softimage does support Python scripting. So that should feasible to do drive Kondo from a Softimage character as well. <br />Just have to figure out how to parse character bones from a Softimage biped using Python, and be sure a python script can run &quot;forever as background task&quot; inside Softimage. If I find some time I may have a quick look at that. Can you run Softimage under Linux ?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2178">amuthelet</a> — Wed Nov 02, 2011 7:22 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[amuthelet]]></name></author>
<updated>2011-11-02T19:15:41+01:00</updated>
<published>2011-11-02T19:15:41+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32742#p32742</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32742#p32742"/>
<title type="html"><![CDATA[Kondo KHR3 Animation using Blender]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32742#p32742"><![CDATA[
Hi Frederic,<br />Project has been saved using Blender 2.49b, so you need this version to load it.  <br /><br /><a href="http://www.blender.org/development/release-logs/blender-249/" class="postlink">http://www.blender.org/development/release-logs/blender-249/</a><br /><br />Blender projects are cross-platform files I presume, so you should be able to open a file saved under Linux using Windows XP.<br /><br />Troubles will come when you want to run python script, as you will need to recompile libkondo + python bindings for Windows ... which will require a bit of technical work here I'm afraid. <br /><br />Cheers,<br />Arnaud.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2178">amuthelet</a> — Wed Nov 02, 2011 7:15 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[silveranim]]></name></author>
<updated>2011-11-02T18:57:09+01:00</updated>
<published>2011-11-02T18:57:09+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32741#p32741</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32741#p32741"/>
<title type="html"><![CDATA[Kondo KHR3 Animation using Blender]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32741#p32741"><![CDATA[
hi Arnaud...<br />Now I have Blender 2.46 and Python 2.6 on a windows xp notebook.<br />Unfortunately, I have an unknown file type error when i open your project file in blender   <img src="http://forum.robosavvy.com/images/smilies/icon_sad.gif" alt=":(" title="Sad" /><br />perhaps a unix problem??<br /><br />best wishes <br />frederic<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1661">silveranim</a> — Wed Nov 02, 2011 6:57 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[silveranim]]></name></author>
<updated>2011-11-02T17:53:10+01:00</updated>
<published>2011-11-02T17:53:10+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32740#p32740</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32740#p32740"/>
<title type="html"><![CDATA[Kondo KHR3 Animation using Blender]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32740#p32740"><![CDATA[
hi Arnaud,<br />thanks a lot for your projekt files.<br />no, i´am not familiar with libkondo and blender,í´am just using Softimage XSI for character animations.<br />I'll try to use libkondo and blender...<br /><br />my khr3 has three more servos for the hip, and body..I hope that I can integrate that..<br /><br />best wishes<br />frederic<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1661">silveranim</a> — Wed Nov 02, 2011 5:53 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[amuthelet]]></name></author>
<updated>2011-10-29T22:24:12+01:00</updated>
<published>2011-10-29T22:24:12+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32688#p32688</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32688#p32688"/>
<title type="html"><![CDATA[Kondo KHR3 Animation using Blender]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32688#p32688"><![CDATA[
Hi silveranim,<br />Here is an archive of my Blender project:<br /><a href="http://robosavvy.com/Builders/amuthelet/BlenderKondo.zip" class="postlink">http://robosavvy.com/Builders/amuthelet/BlenderKondo.zip</a><br /><br />Are you already familiar with KHR3 robot control using libkondo library from chrisvo ? Are you already familiar with Blender ?<br /><br />If not, then you will probably need more information than included in this email to get the whole stuff up and running.<br /><br />The archives includes:<br /> - blenderkondo_armature.blend: this is the blender project including the robot character with correctly named bones.<br /> - blendkondo_control.py: this is the python scripts to be launch inside Blender to send commands to robot depending on character's current posture. This python script requires a little bit modified version of chrisvo's libkondo and its python bindings to be up and running on the target machine. <br /> - rcb4.c, rcb4.h: this is just a sub-part of libkondo source I modified (well in fact I just added a new function called kondo_set_servo_pos, that wraps up kondo_send_ics_pos() function with a little bit higher level (allows to call the function directly with servo ID instead of rough bits). This is the function called in my blender's python scripts, so you need to replace those file in the original libkondo lib. <br /><br />Tell me if you need more  information about that.<br />Cheers,<br />Arnaud.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2178">amuthelet</a> — Sat Oct 29, 2011 10:24 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[amuthelet]]></name></author>
<updated>2011-10-28T13:24:15+01:00</updated>
<published>2011-10-28T13:24:15+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32673#p32673</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32673#p32673"/>
<title type="html"><![CDATA[Kondo KHR3 Animation using Blender]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32673#p32673"><![CDATA[
Blender biped looks like that (bone scale are not even sized properly, as you can see <img src="http://forum.robosavvy.com/images/smilies/icon_wink.gif" alt=";)" title="Wink" />):<br /><br /><img src="http://robosavvy.com/Builders/amuthelet/Kondo-Servos-IDs.jpg" alt="Image" /><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2178">amuthelet</a> — Fri Oct 28, 2011 1:24 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[amuthelet]]></name></author>
<updated>2011-10-28T13:19:09+01:00</updated>
<published>2011-10-28T13:19:09+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32672#p32672</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32672#p32672"/>
<title type="html"><![CDATA[Kondo KHR3 Animation using Blender]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32672#p32672"><![CDATA[
As of today, here is the rough process:<br /><br /> - Be under Linux (never succeeded to run libkondo under Windows, though I made some modifications to make it compile inside VisualStudio, but ..)<br /> - Download Blender 2.49 (it won't work with 2.5 or later, as it switches to Python 3)<br /> - Launch Blender (from Linux console, so you have my script's debug info printed somewhere)<br /> - Load my blender biped character configured for use with script (bones specific names including servo IDs + other info)<br /> - Open python script inside Blender<br /> - Plug Kondo robot<br /> - Execute Python Script inside Blender<br /> - Then you can use standard Blender's bones manipulators to change virtual robot posture, then it will automatically send appropriate commands to real servos. <br /><br />It is a bit jaggy though (manual manip cannot be smooth), so the best would be to do offline animation modification inside Blender, then PLAY animation asyncronously. This should work with existing code mod. little modifications.<br /><br />Didn't do it yet, but starting from that it should be rather straightforward to read any existing Kondo anim, store it as Blender key frames anims, edit them inside Blender (well key frames are not very easy to edit, but..), then play them back to Kondo Robot.<br /><br />Limitation of this is I don't know how to store an animation inside RCB4 controller (chrisvo, if you can hear us <img src="http://forum.robosavvy.com/images/smilies/icon_surprised.gif" alt=":o" title="Surprised" />)). So no way to store a mofidied animation inside the robot, you must use blender for each playback.. A workaround is probably possible, as I could write an HTH XML format for the anim, but it would be much better to be able to directly upload anim from libkondo.<br /><br />Anyway you have to be VERY careful: manually manipulating bones with Blender manipulators is not always very smooth, and it's easy to send violent commands to servos (-&gt; not good for servo lifetime, and even worth for anyone holding the robot ;o)).<br /><br />I will create an archive of all that when I get home later today. Don't have any video, but I'll check if I can shoot something to post !<br />Cheers,<br />Arnaud.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2178">amuthelet</a> — Fri Oct 28, 2011 1:19 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[silveranim]]></name></author>
<updated>2011-10-28T07:45:24+01:00</updated>
<published>2011-10-28T07:45:24+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32665#p32665</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32665#p32665"/>
<title type="html"><![CDATA[Kondo KHR3 Animation using Blender]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32665#p32665"><![CDATA[
hello Arnaud, cool, thanks a lot for your script.. <br /><br />yes, it would be nice, to post the files, &quot;standalone&quot; and&quot; the blender project&quot;!<br /><br />how it works??  its possible for you to post a movie to show the interaction between blender and the KHR3<br /><br /><br /><br />thanks <br />frederic<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1661">silveranim</a> — Fri Oct 28, 2011 7:45 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[amuthelet]]></name></author>
<updated>2011-10-27T23:41:19+01:00</updated>
<published>2011-10-27T23:41:19+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32662#p32662</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32662#p32662"/>
<title type="html"><![CDATA[Kondo KHR3 Animation using Blender]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32662#p32662"><![CDATA[
aaarg cut &amp; past lost indent, that's a problem with Python script <img src="http://forum.robosavvy.com/images/smilies/icon_wink.gif" alt=";)" title="Wink" /><br />Anyway tell me if you're still interested, I could post that as standalone file + associated blender project.<br />Cheers,<br />Arnaud.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2178">amuthelet</a> — Thu Oct 27, 2011 11:41 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[amuthelet]]></name></author>
<updated>2011-10-27T23:36:44+01:00</updated>
<published>2011-10-27T23:36:44+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32661#p32661</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32661#p32661"/>
<title type="html"><![CDATA[Kondo KHR3 Animation using Blender]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=32661#p32661"><![CDATA[
Hi Silveranim,<br /><br />Here is a Blender script (python) I wrote to control my robot from blender character. It requires manual naming of each bone, to define servo ID + axis of rotation + rotation sign. I could send Blender project if you want, but it's still very very early stage...<img src="http://forum.robosavvy.com/images/smilies/icon_smile.gif" alt=":)" title="Smile" /><br /><br />#! /usr/bin/env python<br /><br />#############<br /># Blender script writtten by Arnaud Muthelet / Nov 2010<br /># Contact: amuthelet at gmail dot com<br /># Prereq: <br />#   Blender v2.49, Python 2.6, libkondo4 from Christopher Vo<br /># Desc:<br />#   Interactive command of Kondo KHR3 servos via RCB4<br />#   controller, given<br />#   orientations of virtual robot bones.<br /># WARNINGS:<br />#   SERVOS CAN BE DAMAGED IF FORCED TO INVALID VALUES, <br />#   PLEASE CHECK DATA SENT TO SERVOS BEFORE PLUGGING YOUR <br />#   ROBOT (verbose = 1). <br />#################################################<br /><br />import Blender<br />import sys<br />import math<br />from pykondo import *<br /><br />SERVO_NEUTRAL = 7500<br />SERVO_MAX = 10000<br />SERVO_MIN = 5000<br />SERVO_DIFF = 30<br /><br />VERBOSE = 1<br />KONDO_PLUGGED = 0<br /><br />def init_registry(arm):<br />values = Blender.Registry.GetKey('servo_values')<br />if values:<br />if VERBOSE:<br />print &quot;REGISTRY entry 'servo_value' already exists&quot;<br />else:<br />values = {}<br />pose = arm.getPose()<br />poseBones = pose.bones<br />staticBones = arm.getData().bones<br />for boneT in staticBones.items():<br />bone_name = boneT[0]<br />values[bone_name] = 0<br />Blender.Registry.SetKey('servo_values',values,0)<br />if VERBOSE:<br />print &quot;REGISTRY entry 'servo_values' created&quot;<br /><br />def set_servo(ki, arm):<br /><br />previousValues = Blender.Registry.GetKey('servo_values')<br /><br />sepID = &quot;_#&quot;<br />sepAxis = &quot;_A&quot;<br />sepSign = &quot;_S&quot;<br /><br />pose = arm.getPose()<br />poseBones = pose.bones<br />staticBones = arm.getData().bones<br />for boneT in staticBones.items():<br />bone_name = boneT[0]<br />bone = poseBones[bone_name]<br /><br />idIndex = bone_name.find(sepID) + len(sepID)<br />if(idIndex &gt; len(sepID)-1):<br />servo_id = int(bone_name[idIndex:idIndex+2])<br /><br />axisIndex = bone_name.find(sepAxis) + len(sepAxis)<br />axis = bone_name[axisIndex]<br /><br />signIndex = bone_name.find(sepSign) + len(sepSign)<br />sign = bone_name[signIndex]<br />signFactor = 1<br /><br />if( sign == &quot;P&quot; ):<br />signFactor = -1<br /><br />if( axis == 'X'):<br />servo_value = int(SERVO_NEUTRAL + signFactor * math.floor(SERVO_DIFF*bone.quat.toEuler().x))<br />elif (axis == &quot;Y&quot;):<br />servo_value = int(SERVO_NEUTRAL + signFactor * math.floor(SERVO_DIFF*bone.quat.toEuler().y))<br />elif(axis == &quot;Z&quot;):<br />servo_value = int(SERVO_NEUTRAL + signFactor * math.floor(SERVO_DIFF*bone.quat.toEuler().z))<br />else:<br />servo_value = int(SERVO_NEUTRAL + signFactor * math.floor(SERVO_DIFF*bone.quat.toEuler().y))<br />if VERBOSE:<br />print&quot;ERROR: No Axis found in servo name, defaulted to Y&quot;<br /><br />previousValue = previousValues[bone_name]<br /> <br />if( (servo_value &lt;SERVO_MAX&gt; SERVO_MIN) &amp; (previousValue != servo_value)):<br />kondo_set_servo_pos(ki,servo_id,servo_value) <br />if VERBOSE:<br />print bone_name, &quot;ServoID:&quot;,servo_id, &quot;Sign:&quot;,sign,&quot;Value:&quot;,servo_value, &quot;Axis:&quot;, axis<br />elif VERBOSE:<br />print bone_name, &quot;did not move, or moved out of range&quot;<br /><br />previousValues[bone_name] = servo_value<br />Blender.Registry.SetKey('robot_data',previousValues,0)<br />elif VERBOSE:<br />print &quot;ERROR: no ID found in&quot;, bone_name<br /><br /><br />if Blender.bylink:<br /># Initialize Kondo lib<br />ki = KondoInstance()<br />if KONDO_PLUGGED:<br />ret = kondo_init(ki)<br />if ret &lt; 0:<br />print(ki.error)<br />if VERBOSE:<br />print &quot;Kondo lib init done&quot;<br />init_registry(Blender.link)<br />set_servo(ki, Blender.link)<br /><br />ret = kondo_close(ki)<br />if ret &lt; 0:<br />print(ki.error)<br /><br />else:<br />print &quot;MANUAL LAUNCH&quot;<br />[/img]<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2178">amuthelet</a> — Thu Oct 27, 2011 11:36 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[silveranim]]></name></author>
<updated>2011-06-25T09:27:13+01:00</updated>
<published>2011-06-25T09:27:13+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=31580#p31580</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=31580#p31580"/>
<title type="html"><![CDATA[Kondo KHR3 Animation using Blender]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=31580#p31580"><![CDATA[
hi amuthelet<br />it sounds great, to control your khr-3 from Blender..<br />i´am very interested to get more information about your project!!<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1661">silveranim</a> — Sat Jun 25, 2011 9:27 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[amuthelet]]></name></author>
<updated>2010-11-22T14:00:00+01:00</updated>
<published>2010-11-22T14:00:00+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=28915#p28915</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=28915#p28915"/>
<title type="html"><![CDATA[Kondo KHR3 Animation using Blender]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=28915#p28915"><![CDATA[
Didn't know about that, thanks for the links ! Very interesting indeed.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2178">amuthelet</a> — Mon Nov 22, 2010 2:00 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[SK]]></name></author>
<updated>2010-11-22T08:21:38+01:00</updated>
<published>2010-11-22T08:21:38+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=28904#p28904</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=28904#p28904"/>
<title type="html"><![CDATA[Kondo KHR3 Animation using Blender]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=28904#p28904"><![CDATA[
Have you looked at <!-- m --><a class="postlink" href="http://wiki.blender.org/index.php/Robotics:Contents">http://wiki.blender.org/index.php/Robotics:Contents</a><!-- m --> and <!-- m --><a class="postlink" href="http://wiki.blender.org/index.php/Robotics:Simulators/OpenRobots">http://wiki.blender.org/index.php/Robot ... OpenRobots</a><!-- m --> ? There are some people/research institutions looking into using Blender for robotics in various ways.<br />I'm not sure that stuff is needed for your application, but having a look probably doesn't hurt.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=212">SK</a> — Mon Nov 22, 2010 8:21 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[amuthelet]]></name></author>
<updated>2010-11-22T01:16:12+01:00</updated>
<published>2010-11-22T01:16:12+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=28898#p28898</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=28898#p28898"/>
<title type="html"><![CDATA[Kondo KHR3 Animation using Blender]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6755&amp;p=28898#p28898"><![CDATA[
Hi,<br /><br />Starting from chrisvo's libkondo4, I'm working on controling my beloved KHR3 through a rigged 3D character from Blender (<!-- w --><a class="postlink" href="http://www.blender.org">www.blender.org</a><!-- w -->). The target is to be able to animated my robot using standard 3D character animation techniques, to ease the process compared to HTH. I would also like to experience blender's game engine and integrated real time physics engine to provide user friendly robot animation package. <br /><br />It is on good track..but <img src="http://forum.robosavvy.com/images/smilies/icon_surprised.gif" alt=":o" title="Surprised" />)<br /><br />- I use Blender v2.49 / Python 2.6.<br />- I created my set of test bones that roughly describe (hmmm ..very roughly ;o)) my robot skeleton, with Inverse Kinematix and angle constraints.<br />- For each bone, I store corresponding kondo servo_id, rotation axis and rotation sign inside the bone name (didn't find any easy way to store custom object attributes using Blender 2.49). <br />- My armature/character calls a python script each time armature data is modified (for instance each time a bone orientation is modified) . This is achieved through Blender' script links mechanism. Cool, very usefull.<br />- The python script basically calls kondo_send_ics_pos for each bone, after finding out the right servo id, axis and sign by parsing bone name.<br />- I couldn't find a way to call kondo_send_ics_pos from python (couldn't find a way to pass UCHAR mask[5] to libkondo4 from a python bindings / python list), so finally added to libkondo4 my own kondo_send_servo_pos function building servo mask from int instead of UCHAR mask[5].<br /><br />My problem today is I have very poor performances calling kondo_send_ics_pos for each of my 17 servos at each frame (I experience about 500 ms between each refresh). I see different possible reasons for that:<br />- python bindings might be slow (I have to test a similar example in C++ to check that)..but I doubt this is the problem.<br />- my python code on top of libkondo might slows that down (strings op at each frame, I need to optimize that, etc..)<br /><br />But if I unplug the robot, then all runs quite smoothly, so I suspect a bottleneck stands in the process of calling kondo_send_ics_pos 17 times at each frame.<br /><br />Anyone already experienced such issu with libkondo4 ? I am not famliliar with serial communication..am I doing something wrong ? Any other way to send one packet with the info for all servos instead of sending 17 commands ?<br /><br />I could share my ongoing project (just a start), if anyone interested.  <br /><br />Thanks !<br />Arnaud.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2178">amuthelet</a> — Mon Nov 22, 2010 1:16 am</p><hr />
]]></content>
</entry>
</feed>