<?xml version="1.0" encoding="ISO-8859-1" ?><rss version="2.0">
<channel>
    <title>RoboRealm Forum</title>
    <link>http://www.RoboRealm.com/</link>
    <description>The newest forum threads.</description>
    <lastBuildDate>Tue, 30 Nov 1999 00:11:00 EST</lastBuildDate>
    <language>en-us</language>
    <copyright>Copyright: (C) RoboRealm, http://www.RoboRealm.com/</copyright>
    <docs>http://www.RoboRealm.com/</docs>

    <item>
        <title>No Title</title>
        <description>
        Aman,&lt;br&gt;&lt;br&gt;I&apos;m assuming that you are using a stationary camera NOT attached to the boom otherwise you are looking at a visual servoing solution instead.&lt;br&gt;&lt;br&gt;If the camera stays stable and you just need to&amp;nbsp;&amp;nbsp;scale the image coordinates to the servo coordinates you can start with a simple scale factor and then modify it from there. That would look like&lt;br&gt;&lt;br&gt;SetVariable &quot;servo1&quot;, ((GetVariable(&quot;COG_X&quot;) * 2000) / GetVariable(&quot;IMAGE_WIDTH&quot;))+ 500&lt;br&gt;&lt;br&gt;assuming you servo ranges from 500 to 2500. Naturally this straight mapping will only work if your extreme servo positions would be left of screen and right of screen, which will rarely be the case. Instead you may find that the left and right positions of the servo is 800 and 2100 which would change the forumla to &lt;br&gt;&lt;br&gt;SetVariable &quot;servo1&quot;, ((GetVariable(&quot;COG_X&quot;) * 1300) / GetVariable(&quot;IMAGE_WIDTH&quot;)) + 800&lt;br&gt;&lt;br&gt;and then you may find that everything is offset by a bit so adjust the 800 up or down until things align correctly.&lt;br&gt;&lt;br&gt;If anything moves relative to the camera then all this gets uncalibrated again so be sure to have your boom and camera not move relative to each other.&lt;br&gt;&lt;br&gt;STeven.&lt;br&gt;&lt;br&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=4839</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=4839</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>VB script help needed</title>
        <description>
        Hello Steven&lt;br&gt;I am trying to make a intelligent spray boom which spray only if it sees weeds. I used RGB filter then blob filter of plants. Now I have blob array for all plant. I can see X&amp;nbsp;&amp;nbsp;&amp; Y values of all blobs in VB Script massage. &lt;br&gt;&lt;br&gt;list = GetArrayVariable(&quot;BLOBS&quot;) &lt;br&gt;if isArray(list) then &lt;br&gt;&amp;nbsp;&amp;nbsp;&apos; we have an array - write out the size &lt;br&gt;&amp;nbsp;&amp;nbsp;write &quot;The size is &quot; &amp; ubound(list) &amp; vbCRLF &lt;br&gt;&amp;nbsp;&amp;nbsp;&apos; now write out all the elements &lt;br&gt;&amp;nbsp;&amp;nbsp;for i = 0 to ubound(list) step 2 &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;write &quot;X: &quot; &amp; list(i) &amp; &quot; Y:&quot; &amp; list(i+1) &amp; vbCRLF &lt;br&gt;SetVariable &quot;COG_X&quot;, X&lt;br&gt;SetVariable &quot;COG_Y&quot;, Y&lt;br&gt;SetVariable &quot;Trigger&quot;, 1500&lt;br&gt;&amp;nbsp;&amp;nbsp;next &lt;br&gt;end if &lt;br&gt;&lt;br&gt;Up to this point, things are running fine. But when in next step I want to scale these X Y values for Pololu maestro servo controller. I can&apos;t because values of X Y not transferring in &apos;scale variable. I doubled check in watch variables. Can you please help me out here. All I want to direct XY servos at each blob center position and trigger. Then move to next, exclude blobs which are already been triggered. I am not good in VB scripts. Any help will be appreciated. Thanks in advance.         </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=4839</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=4839</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
</channel>
</rss>
