<?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=732" />

<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-03T03:44:38+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=4&amp;t=732</id>
<entry>
<author><name><![CDATA[beermat]]></name></author>
<updated>2006-11-03T03:44:38+01:00</updated>
<published>2006-11-03T03:44:38+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=732&amp;p=4508#p4508</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=732&amp;p=4508#p4508"/>
<title type="html"><![CDATA[understanding movements and triggers]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=732&amp;p=4508#p4508"><![CDATA[
If you search around the forums, you'll see some implementations on here that go part way to what you want. For instance, I use the square button in the middle of the remote arrow keys as a 'counter' - press it 6 times to queue up 6 repeats. I have then modified several subs (forward walk, backwards walk etc) to basically loop the number of times the counter indicates. At the end of each pass through the routine, I check the tilt sensor to make sure RN is still upright. If it isn't, then the tilt routine will stand him up and set an 'abort' flag to stop the loop continuing. Others have done almost the same thing on here, and posted the code, too. This (sort of) meets your "repeat xxx move as long as xxx condition is true" criteria.<br /><br />The single-threaded nature of the RN language severely limits the ability to do what you really want, though, which is to potentially interupt the routine in the middle of whatever it does. Checking the IR sensor between each MOVE statement would be cumbersome code-wise and, I think, dramatically reduce the performance of the routine due to how slow the code executes. To me, this is the biggest frustration I have with respect to the RN-1, in that its brains are pretty dumb <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=244">beermat</a> — Fri Nov 03, 2006 3:44 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Pev]]></name></author>
<updated>2006-11-02T23:51:29+01:00</updated>
<published>2006-11-02T23:51:29+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=732&amp;p=4503#p4503</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=732&amp;p=4503#p4503"/>
<title type="html"><![CDATA[understanding movements and triggers]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=732&amp;p=4503#p4503"><![CDATA[
Can only comment on my personal experience. I use a bluesmirf to control my RN1 via  a VB.net pocket PC app I wrote. I can load the blusmirf buffer with a bunch of commands that are executed one after the other. Have also altered the walking code etc to be continuious (sic) by checking to see if the next movement is the same as the current active movement.<br /><br />Hope this is useful<br /><br />Pev<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=88">Pev</a> — Thu Nov 02, 2006 11:51 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[plingboot]]></name></author>
<updated>2006-11-02T12:13:40+01:00</updated>
<published>2006-11-02T12:13:40+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=732&amp;p=4496#p4496</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=732&amp;p=4496#p4496"/>
<title type="html"><![CDATA[understanding movements and triggers]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=732&amp;p=4496#p4496"><![CDATA[
This might be a darft question, but nevertheless.<br /><br />Is it possible to create a more continuous flow of movements when controling RN1? From my limited (4 days) experience it seems, one movement is executed, press a button and another movement is executed etc.<br /><br />My hope is that i can "repeat xxx move as long as xxx condition is true"<br /><br />xxx move could be walking, punching etc<br />xxx condition could be button pressed, RC control in a particular position or a simle continuous loop of a movement.<br /><br />Furthermore, is it possible to overide a current movement when a particular situation becomes true/false?<br /><br />ie: if the tilt sensor indicates a fall or if the sonar indicates close proximity of something - in which case i'd want to automatically stop the current movement and perform either an auto stand-up or in the case of the proximity sensor stop and turn or throw a punch.<br /><br />As you can see i've got big plans for my RN1 (think wannabe king kizer). My tilt sensor and sonar arrived this moring and i'm making a trip to my LHS for digi servos, ali plate (brackets for hips) and lipoly cells at lunch time.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=346">plingboot</a> — Thu Nov 02, 2006 12:13 pm</p><hr />
]]></content>
</entry>
</feed>