<?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>
        David,&lt;br&gt;&lt;br&gt;The result in move is not a number, so trying&lt;br&gt;to use it as one doesn&apos;t work.&amp;nbsp;&amp;nbsp;And although&lt;br&gt;CAMERA_PATH may sound promising by name it&apos;s&lt;br&gt;not a number either, it&apos;s the usb device path&lt;br&gt;of the camera that you are currently connected&lt;br&gt;to. When in doubt as to what a variable really&lt;br&gt;contains Watch_Variables is a convenient way&lt;br&gt;to find out.&lt;br&gt;&lt;br&gt;Since you&apos;re trying to get the angle between&lt;br&gt;the camera&apos;s center of view and the COG, you&apos;d&lt;br&gt;use half the image dimensions much as you did&lt;br&gt;in the VBscript file. The simplest way is to&lt;br&gt;fill in the fields of the Calculate_Angle module&lt;br&gt;with XEnd being [IMAGE_WIDTH/2] and YEnd being&lt;br&gt;[IMAGE_HEIGHT/2] as shown in the attached photo.&lt;br&gt;Text field expressions are often useful, see&lt;br&gt;&lt;a href=&quot;http://www.roborealm.com/help/Expressions.php&quot; target=&quot;_blank&quot;&gt;http://www.roborealm.com/&lt;wbr&gt;help/&lt;wbr&gt;Expressions.php&lt;/a&gt;&lt;p&gt;&lt;br&gt;&lt;a target=_blank href=&quot;http://www.roborealm.com/uploads/27911_1.PNG&quot;&gt;&lt;img border=1 src=&quot;http://www.roborealm.com/uploads/27911_thumb_1.jpg&quot;&gt;&lt;/a&gt;&amp;nbsp;&lt;br&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=5497</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=5497</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Carl,&lt;br&gt;for the second question, I use the tutorial(visual line following) to add the calculate_angle function &lt;br&gt;MY target is that use the camera to detect the Electrical tape&lt;br&gt;--------------------------------------------------------------------------------------&lt;br&gt;x = GetVariable(&quot;COG_X&quot;)&lt;br&gt;y = GetVariable(&quot;COG_Y&quot;)&lt;br&gt;&lt;br&gt;cx = GetVariable(&quot;IMAGE_WIDTH&quot;) / 2&lt;br&gt;cy = GetVariable(&quot;IMAGE_HEIGHT&quot;) / 2&lt;br&gt;xoff = GetVariable(&quot;IMAGE_WIDTH&quot;) / 8&lt;br&gt;yoff = GetVariable(&quot;IMAGE_HEIGHT&quot;) / 16&lt;br&gt;&lt;br&gt;if x &amp;lt; cx - xoff then&lt;br&gt;&amp;nbsp;&amp;nbsp;if y &amp;lt; cy - yoff then&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;move = &quot;pivot left&quot;&lt;br&gt;&amp;nbsp;&amp;nbsp;else&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;move = &quot;left&quot;&lt;br&gt;&amp;nbsp;&amp;nbsp;end if&lt;br&gt;elseif x &amp;gt; cx + xoff then&lt;br&gt;&amp;nbsp;&amp;nbsp;if y &amp;lt; cy - yoff then&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;move = &quot;pivot right&quot;&lt;br&gt;&amp;nbsp;&amp;nbsp;else&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;move = &quot;right&quot;&lt;br&gt;&amp;nbsp;&amp;nbsp;end if&lt;br&gt;else&lt;br&gt;&amp;nbsp;&amp;nbsp;if y &amp;lt; cy - yoff then&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;move = &quot;backward&quot;&lt;br&gt;&amp;nbsp;&amp;nbsp;else&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;move = &quot;straight&quot;&lt;br&gt;&amp;nbsp;&amp;nbsp;end if&lt;br&gt;end if&lt;br&gt; &lt;br&gt;SetVariable &quot;move&quot;, move&lt;br&gt;&lt;br&gt;---------------------------------------------------------------&lt;br&gt;the &quot;move&quot; is from VBScript&lt;br&gt;&lt;br&gt;start point is in &quot;Cog_x&quot;&amp;nbsp;&amp;nbsp;&amp; &quot;Cog_y&quot;&amp;nbsp;&amp;nbsp; XEnd and YEnd should select?&lt;p&gt;&lt;a target=_blank href=&quot;http://www.roborealm.com/uploads/27910_1.png&quot;&gt;&lt;img border=1 src=&quot;http://www.roborealm.com/uploads/27910_thumb_1.jpg&quot;&gt;&lt;/a&gt;&amp;nbsp;&lt;a target=_blank href=&quot;http://www.roborealm.com/uploads/27910_2.JPG&quot;&gt;&lt;img border=1 src=&quot;http://www.roborealm.com/uploads/27910_thumb_2.jpg&quot;&gt;&lt;/a&gt;&amp;nbsp;&lt;br&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=5497</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=5497</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        As for the first question, the easiest explaination is&lt;br&gt;the attached robofile. The modules have appropriate&lt;br&gt;comments so it&apos;s hopefully fairly obvious. Among the&lt;br&gt;problems with what you tried is that you&apos;re comparing&lt;br&gt;a position with a count, which doesn&apos;t give a meaningful&lt;br&gt;answer.&amp;nbsp;&amp;nbsp;The Blob_Filter module is what allowed the&lt;br&gt;earlier version to distinguish between a traffic light&lt;br&gt;and other arbitrary things once color was handled.&lt;br&gt;&lt;br&gt;As to the second question, you have a few problems in&lt;br&gt;your setup. The Calculate_Angle module needs the values&lt;br&gt;produced by the Center_of_Gravity module, so for correct&lt;br&gt;results it should be in the opposite order in the pipeline.&lt;br&gt;The modules in the pipeline execute once per frame from the&lt;br&gt;camera, and do so in the sequence in which you placed them.&lt;br&gt;I can&apos;t say what your VBscript program is doing beyond&lt;br&gt;probably calculating move since its content is not exposed,&lt;br&gt;but in the Calculate_Angle module you&apos;re using it for both&lt;br&gt;XEnd and YEnd which doesn&apos;t make sense either.&lt;br&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=5497</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=5497</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        also i want to add the function to calculate the angle &lt;br&gt;it is suitable ?&lt;br&gt;&lt;br&gt;could someone can give me a suggestion. thank you.&lt;p&gt;&lt;a target=_blank href=&quot;http://www.roborealm.com/uploads/27906_1.png&quot;&gt;&lt;img border=1 src=&quot;http://www.roborealm.com/uploads/27906_thumb_1.jpg&quot;&gt;&lt;/a&gt;&amp;nbsp;&lt;br&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=5497</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=5497</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        thanks a lot &lt;br&gt;but i want to add the if statement to check out if the green light is detected, the outcome will show a text &quot; go&quot; otherwise it will not give out any display&lt;br&gt;&lt;br&gt;&lt;br&gt;i don&apos;t understand the if statement&lt;br&gt;&lt;br&gt;show i use setvariable function&lt;p&gt;&lt;a target=_blank href=&quot;http://www.roborealm.com/uploads/27905_1.png&quot;&gt;&lt;img border=1 src=&quot;http://www.roborealm.com/uploads/27905_thumb_1.jpg&quot;&gt;&lt;/a&gt;&amp;nbsp;&lt;br&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=5497</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=5497</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Firstly for the file - when you acknowledge the error and close&lt;br&gt;that window just do a save.&amp;nbsp;&amp;nbsp;When you reload it it works fine&lt;br&gt;although you&apos;ll want to set&amp;nbsp;&amp;nbsp;your camera if you&apos;re going to test.&lt;br&gt;&lt;br&gt;As for adding the yellow light, it&apos;s not particularly difficult, you&lt;br&gt;can simply copy what was done for the red and green lights,&lt;br&gt;and in the RGB_Filter module of the copy change the setting&lt;br&gt;to yellow and the assignment of traffic_signal to your&lt;br&gt;prepare to go /stop.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=5497</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=5497</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        it is possible to do?&lt;br&gt;thanks a lot        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=5497</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=5497</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Also i want to add the detection to detect green light ,yellow light, red light to give out the signal&lt;br&gt;&quot;go&quot;, &quot;prepare to go /stop&quot; &quot; stop&quot; respectively.&lt;br&gt;&lt;br&gt;i seen the same post &lt;a href=&quot;http://www.roborealm.com/forum/index.php?thread_id=1308&quot; target=&quot;_blank&quot;&gt;http://www.roborealm.com/&lt;wbr&gt;forum/&lt;wbr&gt;index.php?thread_&lt;wbr&gt;id=1308&lt;/a&gt;&lt;br&gt;that when open it give out the warning&lt;br&gt;&lt;br&gt;how to fix it in uploads image &lt;br&gt;also should i use color detection to detect the light?better?&lt;br&gt;&lt;br&gt;could everyone can help me, thanks a lot&lt;p&gt;&lt;a target=_blank href=&quot;http://www.roborealm.com/uploads/27899_1.png&quot;&gt;&lt;img border=1 src=&quot;http://www.roborealm.com/uploads/27899_thumb_1.jpg&quot;&gt;&lt;/a&gt;&amp;nbsp;&lt;br&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=5497</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=5497</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        thank you Carl &lt;br&gt;after seeing your comment i think i understand the program&lt;br&gt;&lt;br&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=5497</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=5497</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        David,&lt;br&gt;&lt;br&gt;cx = GetVariable(&quot;IMAGE_WIDTH&quot;) / 2&lt;br&gt;Finds the horizontal center of the image.&lt;br&gt;&lt;br&gt;cy = GetVariable(&quot;IMAGE_HEIGHT&quot;) / 2&lt;br&gt;Finds the vertical center of the image.&lt;br&gt;&lt;br&gt;xoff = GetVariable(&quot;IMAGE_WIDTH&quot;) / 8&lt;br&gt;Finds the sensitivity cutoff for horizontal (left/right) correction.&lt;br&gt;&lt;br&gt;yoff = GetVariable(&quot;IMAGE_HEIGHT&quot;) / 16&lt;br&gt;Finds the sensitivity cutoff for vertical (forward/backward) correction.&lt;br&gt;&lt;br&gt;if x &amp;lt; cx - xoff then&lt;br&gt;Determines if we need to go to the left, since it&apos;s checking&lt;br&gt;if x (COG_X) is less than the difference between the horizontal&lt;br&gt;center of the image and the sensitivity cutoff for left/right&lt;br&gt;course change. This makes sense if you remember that the zero&lt;br&gt;coordinates (x=0 and y=0) are at the bottom left corner of the image.&lt;br&gt;&lt;br&gt;Display_Variable shows the value of a variable on screen, but&lt;br&gt;it doesn&apos;t determine the presence or absence of a defect.&lt;br&gt;I&apos;m unsure of the best way of detecting the defect, STeven is&lt;br&gt;sharper about such things than I am.&amp;nbsp;&amp;nbsp;:)&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;&lt;br&gt;Carl        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=5497</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=5497</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        also i don&apos;t understand the VBScript in line following in tutorial&lt;br&gt;can somebody can help me, thank you&lt;br&gt;below is the VBScript in line following&lt;br&gt;x = GetVariable(&quot;COG_X&quot;)&lt;br&gt;y = GetVariable(&quot;COG_Y&quot;)&lt;br&gt;&lt;br&gt;cx = GetVariable(&quot;IMAGE_WIDTH&quot;) / 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;why it need to divide by 2&lt;br&gt;cy = GetVariable(&quot;IMAGE_HEIGHT&quot;) / 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; why it need to divide by 2&lt;br&gt;xoff = GetVariable(&quot;IMAGE_WIDTH&quot;) / 8&amp;nbsp;&amp;nbsp; why it need to divide by 8&lt;br&gt;yoff = GetVariable(&quot;IMAGE_HEIGHT&quot;) / 16&amp;nbsp;&amp;nbsp;why it need to divide by 16&lt;br&gt;&lt;br&gt;&lt;br&gt;also x &amp;lt; cx - xoff means?&lt;br&gt;if x &amp;lt; cx - xoff then&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;if y &amp;lt; cy - yoff then&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;move = &quot;pivot left&quot;&lt;br&gt;&amp;nbsp;&amp;nbsp;else&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;move = &quot;left&quot;&lt;br&gt;&amp;nbsp;&amp;nbsp;end if&lt;br&gt;elseif x &amp;gt; cx + xoff then&lt;br&gt;&amp;nbsp;&amp;nbsp;if y &amp;lt; cy - yoff then&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;move = &quot;pivot right&quot;&lt;br&gt;&amp;nbsp;&amp;nbsp;else&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;move = &quot;right&quot;&lt;br&gt;&amp;nbsp;&amp;nbsp;end if&lt;br&gt;else&lt;br&gt;&amp;nbsp;&amp;nbsp;if y &amp;lt; cy - yoff then&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;move = &quot;backup&quot;&lt;br&gt;&amp;nbsp;&amp;nbsp;else&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;move = &quot;straight&quot;&lt;br&gt;&amp;nbsp;&amp;nbsp;end if&lt;br&gt;end if&lt;br&gt; &lt;br&gt;SetVariable &quot;move&quot;, move        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=5497</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=5497</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>visual line following</title>
        <description>
        hi steven&lt;br&gt;&lt;br&gt;I see the tutorial but I don&apos;t understand some function. &lt;br&gt;if i want to check out the defect of the line to give out the signal of&amp;nbsp;&amp;nbsp;&quot;defect&quot; text, it&apos;s use display variable?&lt;p&gt;&lt;a target=_blank href=&quot;http://www.roborealm.com/uploads/27872_1.jpg&quot;&gt;&lt;img border=1 src=&quot;http://www.roborealm.com/uploads/27872_thumb_1.jpg&quot;&gt;&lt;/a&gt;&amp;nbsp;&lt;br&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=5497</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=5497</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
</channel>
</rss>
