<?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=5&amp;t=7184" />

<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-05-11T00:03:56+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=5&amp;t=7184</id>
<entry>
<author><name><![CDATA[excalibur]]></name></author>
<updated>2011-05-11T00:03:56+01:00</updated>
<published>2011-05-11T00:03:56+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7184&amp;p=31170#p31170</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7184&amp;p=31170#p31170"/>
<title type="html"><![CDATA[Editing motion files by hand or programmically]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7184&amp;p=31170#p31170"><![CDATA[
ThanQ Fritzoid<br />Your answers were very useful for me too.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2660">excalibur</a> — Wed May 11, 2011 12:03 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Fritzoid]]></name></author>
<updated>2011-05-04T18:09:46+01:00</updated>
<published>2011-05-04T18:09:46+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7184&amp;p=31085#p31085</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7184&amp;p=31085#p31085"/>
<title type="html"><![CDATA[Editing motion files by hand or programmically]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7184&amp;p=31085#p31085"><![CDATA[
Take a look at <a href="http://robosavvy.com/Builders/Fritzoid/MotionEdit.zip" class="postlink">http://robosavvy.com/Builders/Fritzoid/MotionEdit.zip</a>  <br /><br />This file contains a netbeans project, written in java, that can read and write motion files.  It also has upload and download functions, but so far they only work with Darwin-OP.  The code is a work-in-progress so there are a lot of missing pieces like a cell editor and play capability.  Nevertheless it has already been useful to me.   <br /><br />The functionality that you are looking for can be found in MotionEdit/src/motionedit/MotionEditApp.java<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=438">Fritzoid</a> — Wed May 04, 2011 6:09 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Frankfurter]]></name></author>
<updated>2011-05-04T10:05:06+01:00</updated>
<published>2011-05-04T10:05:06+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7184&amp;p=31066#p31066</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7184&amp;p=31066#p31066"/>
<title type="html"><![CDATA[Editing motion files by hand or programmically]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7184&amp;p=31066#p31066"><![CDATA[
Thanks for your reply.<br />I almost suspected that those strange two bytes at the end could be some kind of checksum. I only looked at one example file so I didn't notice... <br />I opened the files in Notepad++ and don't see the marker at the beginning but if you say it's there I'll trust you. Writing it from a program is not an issue anyway.<br />Some sample code to get me started would be awesome. <img src="http://forum.robosavvy.com/images/smilies/icon_smile.gif" alt=":)" title="Smile" /><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2711">Frankfurter</a> — Wed May 04, 2011 10:05 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Fritzoid]]></name></author>
<updated>2011-05-03T15:45:47+01:00</updated>
<published>2011-05-03T15:45:47+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7184&amp;p=31058#p31058</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7184&amp;p=31058#p31058"/>
<title type="html"><![CDATA[Editing motion files by hand or programmically]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7184&amp;p=31058#p31058"><![CDATA[
Hi Frankfurter,<br /><br />If that's your real name <img src="http://forum.robosavvy.com/images/smilies/icon_wink.gif" alt=":wink:" title="Wink" /><br /><br />Motion files are a strange mixture of ASCII and binary.  The first three bytes in the file are a fixed binary marker, 0xEFBBBF.  The last two bytes are a binary checksum.  It's these two bytes that are probably tripping you up.  If you change anything in the file you will have to recalculate the checksum.<br /><br />To calculate the checksum you must add-up all the bytes in the file individually then subtract the total from -1 and store the low order two bytes at the end of the file.  I think the high byte goes first.  I have some sample code if you need it.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=438">Fritzoid</a> — Tue May 03, 2011 3:45 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Frankfurter]]></name></author>
<updated>2011-05-03T13:28:58+01:00</updated>
<published>2011-05-03T13:28:58+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7184&amp;p=31055#p31055</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7184&amp;p=31055#p31055"/>
<title type="html"><![CDATA[Editing motion files by hand or programmically]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7184&amp;p=31055#p31055"><![CDATA[
Hi everybody!<br /><br />I'm currently working with a Bioloid Premium Kit for a Project.<br />For this I generate a series of angular coordinates in Matlab and send them to the Robot via the USB2Dynamixel interface.<br />It would be hugely useful if I could somehow export these trajectories into a .mtn file and upload it to the 'bot.<br />I looked at one of the example files and they seem to be pretty straight forward / plain text.<br />However I can not seem to get RoboPlus Motion to accept a file I modified, it shows an error &quot;This is not [a] RoboPlus Motion file!&quot;<br />Even if I just edit one single value and leave the rest of the file intact...<br />Are the files somehow tagged to prevent tampering?<br /><br />I hope You can clear this up for me.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2711">Frankfurter</a> — Tue May 03, 2011 1:28 pm</p><hr />
]]></content>
</entry>
</feed>