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

<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>2006-11-09T20:58:07+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=4&amp;t=750</id>
<entry>
<author><name><![CDATA[i-Bot]]></name></author>
<updated>2006-11-09T20:58:07+01:00</updated>
<published>2006-11-09T20:58:07+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=750&amp;p=4634#p4634</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=750&amp;p=4634#p4634"/>
<title type="html"><![CDATA[Handshake code]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=750&amp;p=4634#p4634"><![CDATA[
I don't think we have any difference.<br /><br />The Hitec HMI protocol to the servo has two useful interactions, the command instruction, where the position is set, and the input instruction where a position is read. The input instruction also disables the drive to the motor. This will continue until another command instruction which enables the drive to the motor.<br /><br />The motorin statement makes an input instruction for a servo.<br /><br />The motor and motor off enable and disable the motion engine which continually send the command phases at 16ms intervals.<br /><br />Therefore to disable a motor you must stop the commands (motoroff), but it is the motorin wich actually reads and make the servo go off.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=159">i-Bot</a> — Thu Nov 09, 2006 8:58 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[DirtyRoboto]]></name></author>
<updated>2006-11-09T19:48:01+01:00</updated>
<published>2006-11-09T19:48:01+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=750&amp;p=4630#p4630</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=750&amp;p=4630#p4630"/>
<title type="html"><![CDATA[Handshake code]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=750&amp;p=4630#p4630"><![CDATA[
Your Robot may well be different too mine.<br /><br />If I remark the hi-lighted sections in the following code then you will see thar the MOTOROFF G6B command stops power to the servos, they now act as input devices that can feed back their position. You can then set conditions based on input positions from the servos and gererate any amount of triggers.<br /><br />Note this.<br />Use the MOTORIN command without the MOTOROFF command to trigger weight and stress based decision trees.<br />Use the MOTORIN command with the MOTOROFF to use triggers by physical input to the servos.<br /><br />'========================================<br />Motoff_test:<br />DIM s0 AS BYTE<br />DIM x0 AS BYTE<br />'pose<br />MOVE G6B,170,  30,  84, 100, 100, 100<br />MOVE G6C,170,  30,  89, 100, 100, 100<br />MOVE G6A,100,  76, 145,  89, 100, 100<br />MOVE G6D,100,  76, 145,  89, 100, 100<br />WAIT<br />'motor test<br />'&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br />'Remark the two motoroff commands and see the difference.<br />'the MOTORIN command deos not turn the motor off. <br />MOTOROFF G6B<br />MOTOROFF G6C<br />'&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br />loop1:<br />s0 = MOTORIN (6)<br />x0 = MOTORIN (12)<br />IF x0 &gt; 187 THEN GOTO rest<br />IF s0 &gt; 187 THEN GOTO rest <br />GOTO loop1<br /><br /><br /><br />rest:<br />'&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br />'same here! Remark these two lines.<br />MOTOR G6C<br />MOTOR G6B<br />'&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br />MOVE G6B, 99,  26,  86, 100, 100, 100<br />MOVE G6C, 95,  30,  91, 100, 100, 100<br />MOVE G6D,103,  82,  99, 135,  97, 100<br />MOVE G6A,102,  88,  99, 132,  99, 100<br />WAIT<br />GOSUB standard_pose<br />RETURN<br />'===========================================<br /><br />Marcus.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=312">DirtyRoboto</a> — Thu Nov 09, 2006 7:48 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[i-Bot]]></name></author>
<updated>2006-11-09T13:00:44+01:00</updated>
<published>2006-11-09T13:00:44+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=750&amp;p=4625#p4625</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=750&amp;p=4625#p4625"/>
<title type="html"><![CDATA[Handshake code]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=750&amp;p=4625#p4625"><![CDATA[
I think you will find it is the motorin which allows the arm to move, the motoroff will only stop the motor updates, but will remain in place. Motorin actually turns of the servo h bridge using the hitec protocol<br /><br />A mix of motorin and motor/motoroff, may allow you to adjust the stiffness<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=159">i-Bot</a> — Thu Nov 09, 2006 1:00 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[DirtyRoboto]]></name></author>
<updated>2006-11-08T10:31:47+01:00</updated>
<published>2006-11-08T10:31:47+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=750&amp;p=4602#p4602</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=750&amp;p=4602#p4602"/>
<title type="html"><![CDATA[Handshake code]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=750&amp;p=4602#p4602"><![CDATA[
The right arm is stiff as the number 4 servo was broken (out of the box) so I am limited in the moves I can try.<br /><br />The motoroff allows the arm to moved by the spectator doing the shaking. The delay allows the motor to be read at two different points in time and then compared. The servos are stiff enough to keep the arm in place thus making s0 = x0. as soon as you move the arm s0 will not be equal to x0 so the routine goes into the handshake move.<br /><br />Could have used a loop but the original code has a more varied shake that is not repetative.<br /><br />Marcus.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=312">DirtyRoboto</a> — Wed Nov 08, 2006 10:31 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[hivemind]]></name></author>
<updated>2006-11-08T00:44:31+01:00</updated>
<published>2006-11-08T00:44:31+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=750&amp;p=4591#p4591</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=750&amp;p=4591#p4591"/>
<title type="html"><![CDATA[Handshake code]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=750&amp;p=4591#p4591"><![CDATA[
Well I dont have my RN-1 in default form, so i wont be using your exact code, but just reading it I find what seem to be a few issues.<br /><br />First off, why do you have the MOTOROFF? and then, why do you have the DELAY ? With a hand straight out, turning the motor off would just make it sag down.  Furthermore, you could use a FOR loop for the handshake itself (but i suppose that is just preference).  <br /><br />Is this the same code you used in your video? If so, it seems that your right arm servo is pretty stiff, maybe it just isnt as broken in?  <br /><br />That's a pretty cool concept.  Might not be the feedback you are looking for, but perhaps it will help one (or both) of us anyway.<br /><br />Keep up the hard work.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=221">hivemind</a> — Wed Nov 08, 2006 12:44 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[DirtyRoboto]]></name></author>
<updated>2006-11-07T21:16:36+01:00</updated>
<published>2006-11-07T21:16:36+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=750&amp;p=4590#p4590</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=750&amp;p=4590#p4590"/>
<title type="html"><![CDATA[Handshake code]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=750&amp;p=4590#p4590"><![CDATA[
Some feedback please!!!<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=312">DirtyRoboto</a> — Tue Nov 07, 2006 9:16 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[DirtyRoboto]]></name></author>
<updated>2006-11-07T18:18:46+01:00</updated>
<published>2006-11-07T18:18:46+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=750&amp;p=4589#p4589</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=750&amp;p=4589#p4589"/>
<title type="html"><![CDATA[Handshake code]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=750&amp;p=4589#p4589"><![CDATA[
Here is my code for the handshake. when RN1 presents his hand you shake it to make RN1 shake.<br /><br />Enjoy.<br /><br />Marcus.<br /><br />'=====================================================<br />'hand shake routine. DirtyRobo (Marcus) 2006.<br />hand_shake:<br />SPEED 6<br />DIM s0 AS BYTE<br />DIM cr AS BYTE<br />DIM p0 AS BYTE<br />DIM x0 AS BYTE<br />cr = 1<br />rs:<br />p0 = 1<br />cr = cr + 1<br />MUSIC "7cfcfcf"<br />MOVE G6C,173,    ,    ,    ,    ,    <br />DELAY 200<br />MOTOROFF G6C<br />fb:<br />p0 = p0 + 1<br />s0 = MOTORIN (12)<br />DELAY 500<br />x0 = MOTORIN (12)<br />IF p0 = 20 THEN GOTO rs<br />IF cr = 7 THEN GOTO out_shake<br />IF s0 = x0 THEN GOTO fb<br /><br />MOTOR 12<br />SPEED 4<br />MOVE G6C,188,  30,    ,    ,    ,    <br />MOVE G6C,165,  30,    ,    ,    ,    <br />MOVE G6C,188,  30,    ,    ,    ,    <br />MOVE G6C,165,  30,    ,    ,    ,  <br />MOVE G6C,188,  30,    ,    ,    ,    <br />MOVE G6C,165,  30,    ,    ,    , <br />MOVE G6C,188,  30,    ,    ,    ,    <br />MOVE G6C,165,  30,    ,    ,    , <br />MOVE G6C,188,  30,    ,    ,    ,    <br />MOVE G6C,165,  30,    ,    ,    , <br />MOVE G6C,188,  30,    ,    ,    ,    <br />MOVE G6C,165,  30,    ,    ,    , <br />DELAY 2000<br />MOVE G6C,101,  30,    ,    ,    ,    <br />WAIT<br />out_shake:<br />MOTOR 12<br />MOVE G6C,101,  30,    ,    ,    , <br />cr = 1<br />GOSUB standard_pose<br /><br />RETURN<br />'=============================================<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=312">DirtyRoboto</a> — Tue Nov 07, 2006 6:18 pm</p><hr />
]]></content>
</entry>
</feed>