<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>My Robot Log</title>
	<atom:link href="http://roachnet.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://roachnet.wordpress.com</link>
	<description>Behavior-Based Autonomous Robotics - The Mindstorms way!</description>
	<lastBuildDate>Wed, 28 Sep 2011 13:13:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='roachnet.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>My Robot Log</title>
		<link>http://roachnet.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://roachnet.wordpress.com/osd.xml" title="My Robot Log" />
	<atom:link rel='hub' href='http://roachnet.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Making Your Robot Talk&#8211;Custom Voices</title>
		<link>http://roachnet.wordpress.com/2011/04/15/making-your-robot-talkcustom-voices/</link>
		<comments>http://roachnet.wordpress.com/2011/04/15/making-your-robot-talkcustom-voices/#comments</comments>
		<pubDate>Fri, 15 Apr 2011 23:59:00 +0000</pubDate>
		<dc:creator>Thom Roach</dc:creator>
				<category><![CDATA[Information]]></category>
		<category><![CDATA[NXT]]></category>
		<category><![CDATA[robot]]></category>
		<category><![CDATA[robot voice]]></category>
		<category><![CDATA[sound]]></category>

		<guid isPermaLink="false">https://roachnet.wordpress.com/2011/04/15/making-your-robot-talkcustom-voices/</guid>
		<description><![CDATA[I was recently playing with the Lego Color sensor and decided to experiment with sound files to identify the colors it detected.&#160; I don’t have the NXT 2.0 set (I am assuming it comes with sound files for each color), so I researched the internet for a solution. I was looking for an application like [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roachnet.wordpress.com&amp;blog=8252109&amp;post=367&amp;subd=roachnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was recently playing with the Lego Color sensor and decided to experiment with sound files to identify the colors it detected.&#160; I don’t have the NXT 2.0 set (I am assuming it comes with sound files for each color), so I researched the internet for a solution.</p>
<p>I was looking for an application like “voice of sam” (I am dating myself) and found something cooler.&#160; Several sites have voice synthesizers you can demo.&#160; I found the Cepstral site the easiest to use and with the most options.</p>
<p><a title="http://cepstral.com/demos/" href="http://cepstral.com/demos/">http://cepstral.com/demos/</a></p>
<p>You basically type in the words you want to hear, select a voice, rate, pitch, and effect and it plays.&#160; This site also lets you save your creation to a local drive.&#160; Cool.&#160; So I typed in the word for a color, selected some options and WOW.&#160; Robot voices!&#160; They even have effects like “Old Robot” and “Dizzy Droid” and “Liquid Love”.&#160; Making the words/voices was so easy.&#160; The hard part is finding the right settings from so many options.</p>
<p>Anyway, once you save your voices to the local drive, use Wav2RSO to convert the voices into NXT sound files.&#160; I think the NXT 2.0 software has this built in.&#160; You can find it here.</p>
<p><a title="http://bricxcc.sourceforge.net/utilities.html" href="http://bricxcc.sourceforge.net/utilities.html">http://bricxcc.sourceforge.net/utilities.html</a></p>
<p>Now your robot can say anything you want.</p>
<br />Filed under: <a href='http://roachnet.wordpress.com/category/information/'>Information</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/roachnet.wordpress.com/367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/roachnet.wordpress.com/367/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/roachnet.wordpress.com/367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/roachnet.wordpress.com/367/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/roachnet.wordpress.com/367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/roachnet.wordpress.com/367/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/roachnet.wordpress.com/367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/roachnet.wordpress.com/367/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/roachnet.wordpress.com/367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/roachnet.wordpress.com/367/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/roachnet.wordpress.com/367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/roachnet.wordpress.com/367/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/roachnet.wordpress.com/367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/roachnet.wordpress.com/367/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roachnet.wordpress.com&amp;blog=8252109&amp;post=367&amp;subd=roachnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://roachnet.wordpress.com/2011/04/15/making-your-robot-talkcustom-voices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ec42eb9fd1f6929f16bd75139dfe0f9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Thom</media:title>
		</media:content>
	</item>
		<item>
		<title>Classes for virtual Sensors&#8211;Bumpers</title>
		<link>http://roachnet.wordpress.com/2011/01/02/classes-for-virtual-sensorsbumpers/</link>
		<comments>http://roachnet.wordpress.com/2011/01/02/classes-for-virtual-sensorsbumpers/#comments</comments>
		<pubDate>Mon, 03 Jan 2011 02:26:00 +0000</pubDate>
		<dc:creator>Thom Roach</dc:creator>
				<category><![CDATA[RobotC Code]]></category>
		<category><![CDATA[bumper]]></category>
		<category><![CDATA[Class]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[robotc]]></category>
		<category><![CDATA[robotics]]></category>
		<category><![CDATA[virtual senosr]]></category>

		<guid isPermaLink="false">https://roachnet.wordpress.com/2011/01/02/classes-for-virtual-sensorsbumpers/</guid>
		<description><![CDATA[As I rework the behavior-based robot framework, I am encountering other areas of code that could also use improvement.&#160; In the case of some of my sensor wrappers, I am not even sure if I ever published them.&#160; I sometimes create virtual sensors when a group of sensors is used for specialized purposes.&#160; The robot [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roachnet.wordpress.com&amp;blog=8252109&amp;post=361&amp;subd=roachnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As I rework the behavior-based robot framework, I am encountering other areas of code that could also use improvement.&#160; In the case of some of my sensor wrappers, I am not even sure if I ever published them.&#160; I sometimes create virtual sensors when a group of sensors is used for specialized purposes.&#160; The robot programs are more readable and internal logic can be abstracted from the rest of the program making for an easier implementation.</p>
<h3>Bumpers – An example of a virtual sensor</h3>
<p>I have a tendency to use bumpers on the front of my robots for easy (bump and escape) navigation.&#160; Over the years I have created a couple of code sets that treat the bumper as one sensor even if I use two or more physical sensors to create it.&#160; This article shows why and how I created a class to hide the details of a “Front Bumper” implementation.</p>
<p><span id="more-361"></span><br />
<h3>Why create virtual sensors?</h3>
<p>There are times when one or more physical sensors need to work as a unit on the robot.&#160; Any combination of sensors that work as one should be considered for this treatment.&#160; </p>
<ul>
<li>Readings can be taken at the same time, and used after that to make decisions for the sensor group.</li>
<li>Different combinations and value readings from the sensor group can be combined into specialized output values </li>
<li>Different behaviors within the same program use one common set of methods for access data.</li>
</ul>
<h3></h3>
<h3>Two Switches to Make a Front Bumper</h3>
<ul>
<li>Two Bumpers connected to different ports – A good example is a left and right bumper pair on the front of a robot.</li>
</ul>
<p>In this case, the programmer may be concerned about a bump on the left, right or both.&#160; Most programs set up routines for reading the left and right bumpers separately.&#160; This works in most cases, but does introduce some problems.</p>
<ul>
<li>The sensors are read sequentially, so they are not processed at the same time which could lead to problems when programming correct actions.</li>
<li>The sensors are usually read in the same order, so the robot has a tendency to respond to the first positive hit and forget the second.</li>
<li>It is difficult to analyze when both bumpers are triggered.&#160; Is this a state that is interesting?&#160; It might be.</li>
<li>The programmer needs to understand the bumper implementation (normally-open/closed) and account for this in programs.</li>
<li>There is little code reuse.&#160; The programmer needs to reinvent the process for each robot.</li>
</ul>
<p>In the case of the “two bumpers/ two sensor port” scenario, I created a class that can be instantiated within a program that provides simple, easy to use methods.&#160; It hides the raw data and implementation.&#160; Here are the methods:</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:214e8744-1d0a-46eb-9b9e-e81a33343d98" class="wlWriterEditableSmartContent">
<pre style="width:788px;height:106px;background-color:#F7F8E9;overflow:visible;">
<div><span style="color:#008080;">1</span> <span style="color:#000000;">TwoBumper(_cls, r, l, rtyp, ltyp);                   </span><span style="color:#008000;">//</span><span style="color:#008000;">CREATES A NEW TWO BUMPER CLASS</span><span style="color:#008000;">
</span><span style="color:#008080;">2</span> <span style="color:#008000;"></span><span style="color:#0000FF;">void</span><span style="color:#000000;"> TwoBumper_Read(clsTwoBumper </span><span style="color:#000000;">&amp;</span><span style="color:#000000;">_bumper);          </span><span style="color:#008000;">//</span><span style="color:#008000;">READS SENSOR VALUES</span><span style="color:#008000;">
</span><span style="color:#008080;">3</span> <span style="color:#008000;"></span><span style="color:#0000FF;">bool</span><span style="color:#000000;"> TwoBumper_isBumpedRight(clsTwoBumper </span><span style="color:#000000;">&amp;</span><span style="color:#000000;">_bumper); </span><span style="color:#008000;">//</span><span style="color:#008000;">RETURNS IF RIGHT IS TRIGGERED</span><span style="color:#008000;">
</span><span style="color:#008080;">4</span> <span style="color:#008000;"></span><span style="color:#0000FF;">bool</span><span style="color:#000000;"> TwoBumper_isBumpedLeft(clsTwoBumper </span><span style="color:#000000;">&amp;</span><span style="color:#000000;">_bumper);  </span><span style="color:#008000;">//</span><span style="color:#008000;">RETURNS IF LEFT IS TRIGGERED</span><span style="color:#008000;">
</span><span style="color:#008080;">5</span> <span style="color:#008000;"></span><span style="color:#0000FF;">bool</span><span style="color:#000000;"> TwoBumper_isBumpedBoth(clsTwoBumper </span><span style="color:#000000;">&amp;</span><span style="color:#000000;">_bumper);  </span><span style="color:#008000;">//</span><span style="color:#008000;">RETURNS IF BOTH ARE TRIGGERED</span></div>
</pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>The class is created with TwoBumper(..).&#160; The Read() method takes readings from both switches, and sets values internally for use later when the values are retrieved.&#160; The rest of the methods are very self explanatory.&#160; They are used to retrieve the state of the TwoBumper virtual sensor.</p>
<p>Here is the sample code: <a href="http://dl.dropbox.com/u/12559457/Robot%20Code/TwoBumper.zip">TwoBumper.zip &#8211; Sample program and class file for a Two Bumper Virtual Sensor</a></p>
<br />Filed under: <a href='http://roachnet.wordpress.com/category/robotc-code/'>RobotC Code</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/roachnet.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/roachnet.wordpress.com/361/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/roachnet.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/roachnet.wordpress.com/361/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/roachnet.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/roachnet.wordpress.com/361/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/roachnet.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/roachnet.wordpress.com/361/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/roachnet.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/roachnet.wordpress.com/361/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/roachnet.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/roachnet.wordpress.com/361/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/roachnet.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/roachnet.wordpress.com/361/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roachnet.wordpress.com&amp;blog=8252109&amp;post=361&amp;subd=roachnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://roachnet.wordpress.com/2011/01/02/classes-for-virtual-sensorsbumpers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ec42eb9fd1f6929f16bd75139dfe0f9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Thom</media:title>
		</media:content>
	</item>
		<item>
		<title>Code Downloads Fixed!</title>
		<link>http://roachnet.wordpress.com/2010/12/30/code-downloads-fixed-2/</link>
		<comments>http://roachnet.wordpress.com/2010/12/30/code-downloads-fixed-2/#comments</comments>
		<pubDate>Thu, 30 Dec 2010 17:54:00 +0000</pubDate>
		<dc:creator>Thom Roach</dc:creator>
				<category><![CDATA[Information]]></category>
		<category><![CDATA[RobotC Code]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[information]]></category>
		<category><![CDATA[robotc]]></category>

		<guid isPermaLink="false">https://roachnet.wordpress.com/2010/12/30/code-downloads-fixed-2/</guid>
		<description><![CDATA[I moved the code files to another service that is much easier for me to control.&#160; The main framework code and the featured robot code in the following page should give you a good start. My Framework Code Thank you for your patience. Filed under: Information, RobotC Code<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roachnet.wordpress.com&amp;blog=8252109&amp;post=360&amp;subd=roachnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I moved the code files to another service that is much easier for me to control.&#160; The main framework code and the featured robot code in the following page should give you a good start.</p>
<p><a href="http://roachnet.wordpress.com/robotc-code-library/">My Framework Code</a></p>
<p>Thank you for your patience.</p>
<br />Filed under: <a href='http://roachnet.wordpress.com/category/information/'>Information</a>, <a href='http://roachnet.wordpress.com/category/robotc-code/'>RobotC Code</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/roachnet.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/roachnet.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/roachnet.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/roachnet.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/roachnet.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/roachnet.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/roachnet.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/roachnet.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/roachnet.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/roachnet.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/roachnet.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/roachnet.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/roachnet.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/roachnet.wordpress.com/360/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roachnet.wordpress.com&amp;blog=8252109&amp;post=360&amp;subd=roachnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://roachnet.wordpress.com/2010/12/30/code-downloads-fixed-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ec42eb9fd1f6929f16bd75139dfe0f9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Thom</media:title>
		</media:content>
	</item>
		<item>
		<title>Behavior-based Framework Code&#8211;Download</title>
		<link>http://roachnet.wordpress.com/2010/12/23/behavior-based-framework-codedownload/</link>
		<comments>http://roachnet.wordpress.com/2010/12/23/behavior-based-framework-codedownload/#comments</comments>
		<pubDate>Thu, 23 Dec 2010 13:18:00 +0000</pubDate>
		<dc:creator>Thom Roach</dc:creator>
				<category><![CDATA[RobotC Code]]></category>
		<category><![CDATA[behavior-based]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[robotc]]></category>

		<guid isPermaLink="false">https://roachnet.wordpress.com/2010/12/23/behavior-based-framework-codedownload/</guid>
		<description><![CDATA[I am in the process of updating the framework to 3.0, but in the mean-time, here is the latest production version. RobotC Behavior-Based Framework for Autonomous Robots 2.2 Other links on the site have not been corrected yet.&#160; Sorry for the inconvenience. Some of the features for 3.0 include: Robot behaviors collection in one place [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roachnet.wordpress.com&amp;blog=8252109&amp;post=347&amp;subd=roachnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am in the process of updating the framework to 3.0, but in the mean-time, here is the latest production version.</p>
<p><a title="RobotC Behavior-Based Framework Code for Autonomous Robots 2.2" href="http://dl.dropbox.com/u/12559457/Robot%20Code/BehaviorFramework2.zip" target="_blank">RobotC Behavior-Based Framework for Autonomous Robots 2.2</a></p>
<p>Other links on the site have not been corrected yet.&#160; Sorry for the inconvenience.</p>
<p>Some of the features for 3.0 include:</p>
<ul>
<li>Robot behaviors collection in one place with a core set of methods to operation on them.
<ul>
<li>Adding behaviors is easier now.&#160; Just update the Behaviors list and it will be automatically initialized in the collection. </li>
</ul>
</li>
<li>The arbitrator is now a class which means you can deploy more than one.&#160; This might be useful for a robot that moves and has an arm that needs arbitration.
<ul>
<li>Behaviors can be assigned to an arbitrator (or not) from the robot’s behavior pool. </li>
<li>The drive module was extracted from the original arbitrator so arbitrators can be used for anything. – The 2 drive parameters were made generic in the behavior class to support this as well. </li>
</ul>
</li>
</ul>
<p>&#8212; More to come.</p>
<br />Filed under: <a href='http://roachnet.wordpress.com/category/robotc-code/'>RobotC Code</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/roachnet.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/roachnet.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/roachnet.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/roachnet.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/roachnet.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/roachnet.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/roachnet.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/roachnet.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/roachnet.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/roachnet.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/roachnet.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/roachnet.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/roachnet.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/roachnet.wordpress.com/347/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roachnet.wordpress.com&amp;blog=8252109&amp;post=347&amp;subd=roachnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://roachnet.wordpress.com/2010/12/23/behavior-based-framework-codedownload/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ec42eb9fd1f6929f16bd75139dfe0f9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Thom</media:title>
		</media:content>
	</item>
		<item>
		<title>Robot Angle Functions</title>
		<link>http://roachnet.wordpress.com/2010/12/23/robot-angle-functions/</link>
		<comments>http://roachnet.wordpress.com/2010/12/23/robot-angle-functions/#comments</comments>
		<pubDate>Thu, 23 Dec 2010 13:11:00 +0000</pubDate>
		<dc:creator>Thom Roach</dc:creator>
				<category><![CDATA[RobotC Code]]></category>
		<category><![CDATA[angle]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[mod]]></category>
		<category><![CDATA[robotc]]></category>

		<guid isPermaLink="false">https://roachnet.wordpress.com/2010/12/23/robot-angle-functions/</guid>
		<description><![CDATA[One more article before I retire for the Christmas holiday.&#160; It is valuable at times to know the normalized degrees of rotation.&#160; I found some cool functions that take any number of degrees and converts them to either 0-359 degrees, or –180 to 179 degrees depending on your needs. This code uses the MOD operator [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roachnet.wordpress.com&amp;blog=8252109&amp;post=345&amp;subd=roachnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One more article before I retire for the Christmas holiday.&#160; It is valuable at times to know the normalized degrees of rotation.&#160; I found some cool functions that take any number of degrees and converts them to either 0-359 degrees, or –180 to 179 degrees depending on your needs.</p>
<p>This code uses the MOD operator in RobotC to return the number of degrees left over after dividing by 360.&#160; These are pretty handy functions.</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:290f0158-f173-43ab-a93f-96a1521d5d78" class="wlWriterEditableSmartContent">
<pre style="width:505px;height:187px;background-color:#F7F8E9;overflow:visible;">
<div><span style="color:#008080;"> 1</span> <span style="color:#008000;">//</span><span style="color:#008000;"> Returns an angle in degrees between 0 and 359</span><span style="color:#008000;">
</span><span style="color:#008080;"> 2</span> <span style="color:#008000;"></span><span style="color:#0000FF;">int</span><span style="color:#000000;"> norm_360(</span><span style="color:#0000FF;">int</span><span style="color:#000000;"> deg) {
</span><span style="color:#008080;"> 4</span> <span style="color:#000000;">  </span><span style="color:#0000FF;">return</span><span style="color:#000000;"> deg</span><span style="color:#000000;">%</span><span style="color:#800080;">360</span><span style="color:#000000;">;
</span><span style="color:#008080;"> 5</span> <span style="color:#000000;">}
</span><span style="color:#008080;"> 6</span> <span style="color:#000000;">
</span><span style="color:#008080;"> 7</span> <span style="color:#000000;"></span><span style="color:#008000;">//</span><span style="color:#008000;"> Returns an angle in degrees between -180 and 179</span><span style="color:#008000;">
</span><span style="color:#008080;"> 8</span> <span style="color:#008000;"></span><span style="color:#0000FF;">int</span><span style="color:#000000;"> norm_180(</span><span style="color:#0000FF;">int</span><span style="color:#000000;"> deg) {
</span><span style="color:#008080;"> 9</span> <span style="color:#000000;">  </span><span style="color:#0000FF;">return</span><span style="color:#000000;"> norm_360(deg </span><span style="color:#000000;">+</span><span style="color:#000000;"> </span><span style="color:#800080;">180</span><span style="color:#000000;">)</span><span style="color:#000000;">-</span><span style="color:#800080;">180</span><span style="color:#000000;">;
</span><span style="color:#008080;">10</span> <span style="color:#000000;">}
</span><span style="color:#008080;">11</span> <span style="color:#000000;"></span></div>
</pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>* Thanks Xander for the reminder about the RobotC mod operator.</p>
<br />Filed under: <a href='http://roachnet.wordpress.com/category/robotc-code/'>RobotC Code</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/roachnet.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/roachnet.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/roachnet.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/roachnet.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/roachnet.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/roachnet.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/roachnet.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/roachnet.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/roachnet.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/roachnet.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/roachnet.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/roachnet.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/roachnet.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/roachnet.wordpress.com/345/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roachnet.wordpress.com&amp;blog=8252109&amp;post=345&amp;subd=roachnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://roachnet.wordpress.com/2010/12/23/robot-angle-functions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ec42eb9fd1f6929f16bd75139dfe0f9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Thom</media:title>
		</media:content>
	</item>
		<item>
		<title>Weighted Average Class</title>
		<link>http://roachnet.wordpress.com/2010/12/22/weighted-average-class/</link>
		<comments>http://roachnet.wordpress.com/2010/12/22/weighted-average-class/#comments</comments>
		<pubDate>Thu, 23 Dec 2010 05:53:00 +0000</pubDate>
		<dc:creator>Thom Roach</dc:creator>
				<category><![CDATA[RobotC Code]]></category>
		<category><![CDATA[average]]></category>
		<category><![CDATA[Class]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[robotc]]></category>
		<category><![CDATA[running average]]></category>

		<guid isPermaLink="false">https://roachnet.wordpress.com/2010/12/22/weighted-average-class/</guid>
		<description><![CDATA[RobotC class code for Weighted Average calcuation.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roachnet.wordpress.com&amp;blog=8252109&amp;post=344&amp;subd=roachnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Continuing on my current fascination with math and code to implement it, I decided to write a class for weighted average monitoring.&#160; Creating a running average of a stream of numbers can be complicated, and consume many variables (depending on how many samples make up the average).&#160; It also means you have create some sort of queue so the values can shift such that the n most current samples are available for calculation.&#160; That can be a lot of work.</p>
<p><strong><em>Average = SUM(nSamples)/n&#160; </em></strong></p>
<p>I found a shortcut to all of that where an average value is maintained in the background, and a weighted percentage is applied to the newest input value and the previous average.&#160; I am sure this method is not as accurate as averaging the last n values, but the goal is not so much precision, but reducing spikes and anomalies.&#160; In other words, I don’t care what the actual average is; I care that the trend of values over time reduces the spikes and provides usable information to the robot with less error.</p>
<p><strong><em>Weighted Average = New Sample * %wt + (1-%wt)*Previous Average</em></strong></p>
<p>This class can help filter sensor data to a robot, making it react more slowly to large value changes.&#160; Try it and let me know what you think…</p>
<p>You can download the code here: <a title="Weighted Average RobotC Class code" href="http://dl.dropbox.com/u/12559457/Robot%20Code/WeightedAverage.c" target="_blank">WeightedAverage.c</a></p>
<br />Filed under: <a href='http://roachnet.wordpress.com/category/robotc-code/'>RobotC Code</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/roachnet.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/roachnet.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/roachnet.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/roachnet.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/roachnet.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/roachnet.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/roachnet.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/roachnet.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/roachnet.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/roachnet.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/roachnet.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/roachnet.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/roachnet.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/roachnet.wordpress.com/344/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roachnet.wordpress.com&amp;blog=8252109&amp;post=344&amp;subd=roachnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://roachnet.wordpress.com/2010/12/22/weighted-average-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ec42eb9fd1f6929f16bd75139dfe0f9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Thom</media:title>
		</media:content>
	</item>
		<item>
		<title>Leaky Integrator Class</title>
		<link>http://roachnet.wordpress.com/2010/12/22/leaky-integrator-class/</link>
		<comments>http://roachnet.wordpress.com/2010/12/22/leaky-integrator-class/#comments</comments>
		<pubDate>Wed, 22 Dec 2010 06:06:50 +0000</pubDate>
		<dc:creator>Thom Roach</dc:creator>
				<category><![CDATA[RobotC Code]]></category>
		<category><![CDATA[Class]]></category>
		<category><![CDATA[robotc]]></category>

		<guid isPermaLink="false">https://roachnet.wordpress.com/2010/12/22/leaky-integrator-class/</guid>
		<description><![CDATA[I have been working to update my framework lately and I ran across and interesting concept that can be used by robots to track recurring events and store them in a short-term memory that eventually fades.  This is useful, for instance, when a robot gets stuck in a corner, bumping left and them bumping right [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roachnet.wordpress.com&amp;blog=8252109&amp;post=337&amp;subd=roachnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have been working to update my framework lately and I ran across and interesting <a href="http://roachnet.files.wordpress.com/2010/12/leakyintegrator.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;float:right;padding-top:0;border:0;" title="LeakyIntegrator" src="http://roachnet.files.wordpress.com/2010/12/leakyintegrator_thumb.jpg?w=240&#038;h=218" border="0" alt="LeakyIntegrator" width="240" height="218" align="right" /></a>concept that can be used by robots to track recurring events and store them in a short-term memory that eventually fades.  This is useful, for instance, when a robot gets stuck in a corner, bumping left and them bumping right and repeating.  This behavior is called canyoning and seems to happen often.  The robot is essentially stuck in the corner, thrashing back and forth until something changes.</p>
<p>Using a Leaky Integrator allow the successive bumps to be summed in the short-term memory while at the same time leaking some bumps out of the bottom at a slower rate.  As the robot thrashes more the integrator is filled up.  This value could be used to adjust the spin angle for the robot so that the more times the robot bumps, the more it turns to get out of the corner.  As the robot escapes, the memory of the corner fades to prevent drastic actions on bumps later in its journey when it may not be stuck in a corner.</p>
<p>An analogy for the leaky integrator is a bucket with a drain in the side that can be opened to let some water out.  Water poured into the top fills the bucket if more water comes in than is let out the bottom.  If the water stops pouring in, eventually the level will decrease to the level of the side drain.  If too much water is poured in, the bucket will eventually have the maximum amount in it and the rest is lost over the top edges.</p>
<p>The RobotC code contains the class.  A sample program is commented out at the bottom.  It demonstrates instantiating the class and filling a bucket (as it tries to leak out) until the bucket is full.  Once full, the input is stopped, and the bucket drains.  Very simple, but might be useful to someone out there in Mindstorms land.</p>
<p>Download: <a title="Leaky Integrator RobotC Code" href="http://dl.dropbox.com/u/12559457/Robot%20Code/LeakyIntegrator.c" target="_blank">LeakyIntegrator.c</a></p>
<br />Filed under: <a href='http://roachnet.wordpress.com/category/robotc-code/'>RobotC Code</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/roachnet.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/roachnet.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/roachnet.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/roachnet.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/roachnet.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/roachnet.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/roachnet.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/roachnet.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/roachnet.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/roachnet.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/roachnet.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/roachnet.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/roachnet.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/roachnet.wordpress.com/337/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roachnet.wordpress.com&amp;blog=8252109&amp;post=337&amp;subd=roachnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://roachnet.wordpress.com/2010/12/22/leaky-integrator-class/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ec42eb9fd1f6929f16bd75139dfe0f9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Thom</media:title>
		</media:content>

		<media:content url="http://roachnet.files.wordpress.com/2010/12/leakyintegrator_thumb.jpg" medium="image">
			<media:title type="html">LeakyIntegrator</media:title>
		</media:content>
	</item>
		<item>
		<title>Framework Code Downloads &#8211; Having trouble again&#8230;</title>
		<link>http://roachnet.wordpress.com/2010/11/07/framework-code-downloads-having-trouble-again/</link>
		<comments>http://roachnet.wordpress.com/2010/11/07/framework-code-downloads-having-trouble-again/#comments</comments>
		<pubDate>Mon, 08 Nov 2010 01:29:46 +0000</pubDate>
		<dc:creator>Thom Roach</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://roachnet.wordpress.com/?p=316</guid>
		<description><![CDATA[I noticed my code downloads are on the fritz again. Drop me a line if you would like code listed in the articles. I plan to find a better place to store the code this winter. Thanks in advance for your patience. Thom Filed under: Uncategorized<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roachnet.wordpress.com&amp;blog=8252109&amp;post=316&amp;subd=roachnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I noticed my code downloads are on the fritz again.  Drop me a line if you would like code listed in the articles.  I plan to find a better place to store the code this winter.</p>
<p>Thanks in advance for your patience.<br />
Thom</p>
<br />Filed under: <a href='http://roachnet.wordpress.com/category/uncategorized/'>Uncategorized</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/roachnet.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/roachnet.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/roachnet.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/roachnet.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/roachnet.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/roachnet.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/roachnet.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/roachnet.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/roachnet.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/roachnet.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/roachnet.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/roachnet.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/roachnet.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/roachnet.wordpress.com/316/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roachnet.wordpress.com&amp;blog=8252109&amp;post=316&amp;subd=roachnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://roachnet.wordpress.com/2010/11/07/framework-code-downloads-having-trouble-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ec42eb9fd1f6929f16bd75139dfe0f9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Thom</media:title>
		</media:content>
	</item>
		<item>
		<title>My NXTCam v3 arrived last week!</title>
		<link>http://roachnet.wordpress.com/2010/09/08/my-nxtcam-v3-arrived-last-week/</link>
		<comments>http://roachnet.wordpress.com/2010/09/08/my-nxtcam-v3-arrived-last-week/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 03:05:00 +0000</pubDate>
		<dc:creator>Thom Roach</dc:creator>
				<category><![CDATA[Information]]></category>
		<category><![CDATA[mindsensors]]></category>
		<category><![CDATA[nxtcam]]></category>
		<category><![CDATA[sensor]]></category>

		<guid isPermaLink="false">https://roachnet.wordpress.com/2010/09/08/my-nxtcam-v3-arrived-last-week/</guid>
		<description><![CDATA[I started working on a new set of projects last week.&#160; I have been dreaming about the Mindsensors NXTCam for a very long time and now I finally have one.&#160; I thought I would kick this thread off by outlining some of the more obvious possibilities that are available when your robot is equipped with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roachnet.wordpress.com&amp;blog=8252109&amp;post=332&amp;subd=roachnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://roachnet.files.wordpress.com/2010/09/image.png"><img style="display:inline;margin-left:0;margin-right:0;border-width:0;" title="image" border="0" alt="image" align="left" src="http://roachnet.files.wordpress.com/2010/09/image_thumb.png?w=150&#038;h=144" width="150" height="144" /></a>
<p>I started working on a new set of projects last week.&#160; I have been dreaming about the <a title="Mindsensors NXTCam v3" href="http://www.mindsensors.com/index.php?module=pagemaster&amp;PAGE_user_op=view_page&amp;PAGE_id=78" target="_blank">Mindsensors NXTCam</a> for a very long time and now I finally have one.&#160; I thought I would kick this thread off by outlining some of the more obvious possibilities that are available when your robot is equipped with this FANTASTIC sensor! </p>
<p>I can’t wait to start building and programming.&#160; Thank you Mindsensors!</p>
<ul>
<li>Sorting objects by color </li>
<li>Finding a ball or balls and pursue it if it moves </li>
<li>Determine distance from a known object like a ball </li>
<li>Maintain a certain distance from an object </li>
<li>Use colored beacons for navigation around a room </li>
<li>Aim a turret at an object and track it side to side and up and down </li>
<li>Sequence by object color (Ex. find a red ball, then yellow ball, etc…) </li>
<li>Use the NXTCam as a range finder using a laser guide </li>
<li>Create a docking station and guide the robot in by “sight” </li>
<li>Follow a line, make decisions at markers, make decisions at forks and crossings </li>
</ul>
<p>Many people have done some really cool things with the NXTCam too…&#160; I will post some of the interesting stuff at a later date.</p>
<p>My first order of business is to try to understand how this sensor works and reviewing and extending a driver to make programming easier.&#160; There is a lot of documentation to look at.&#160; This sensor allows you to customize the firmware as well, but my initial review is that it might be best to leave that to the professionals.&#160; We will see.</p>
<br />Filed under: <a href='http://roachnet.wordpress.com/category/information/'>Information</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/roachnet.wordpress.com/332/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/roachnet.wordpress.com/332/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/roachnet.wordpress.com/332/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/roachnet.wordpress.com/332/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/roachnet.wordpress.com/332/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/roachnet.wordpress.com/332/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/roachnet.wordpress.com/332/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/roachnet.wordpress.com/332/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/roachnet.wordpress.com/332/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/roachnet.wordpress.com/332/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/roachnet.wordpress.com/332/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/roachnet.wordpress.com/332/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/roachnet.wordpress.com/332/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/roachnet.wordpress.com/332/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roachnet.wordpress.com&amp;blog=8252109&amp;post=332&amp;subd=roachnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://roachnet.wordpress.com/2010/09/08/my-nxtcam-v3-arrived-last-week/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ec42eb9fd1f6929f16bd75139dfe0f9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Thom</media:title>
		</media:content>

		<media:content url="http://roachnet.files.wordpress.com/2010/09/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>More fun with Math &#8211; Boolean Functions</title>
		<link>http://roachnet.wordpress.com/2010/08/06/more-fun-with-math-boolean-functions/</link>
		<comments>http://roachnet.wordpress.com/2010/08/06/more-fun-with-math-boolean-functions/#comments</comments>
		<pubDate>Sat, 07 Aug 2010 03:38:00 +0000</pubDate>
		<dc:creator>Thom Roach</dc:creator>
				<category><![CDATA[Information]]></category>
		<category><![CDATA[RobotC Code]]></category>
		<category><![CDATA[boolean]]></category>
		<category><![CDATA[logic functions]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[robotc]]></category>
		<category><![CDATA[utility]]></category>

		<guid isPermaLink="false">https://roachnet.wordpress.com/2010/08/06/more-fun-with-math-boolean-functions/</guid>
		<description><![CDATA[This is a quick post about some more math functions I found that might be useful. I found a reference on the net that defined some boolean functions.&#160; I added these to may math utility libary (just in case) and tested them. OR, AND &#38; NOT are already implemented in RobotC, but I included them [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roachnet.wordpress.com&amp;blog=8252109&amp;post=322&amp;subd=roachnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a quick post about some more math functions I found that might be useful.</p>
<p>I found a reference on the net that defined some boolean functions.&#160; I added these to may math utility libary (just in case) and tested them.</p>
<p><a href="http://roachnet.files.wordpress.com/2010/08/image3.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://roachnet.files.wordpress.com/2010/08/image_thumb3.png?w=240&#038;h=98" width="240" height="98" /></a> </p>
<p><strong>OR</strong>, <strong>AND</strong> &amp; <strong>NOT</strong> are already implemented in RobotC, but I included them because the math and logic to get the correct answer is kind of cool.&#160; </p>
<p>Let me know what you think.</p>
<p>(I added a couple more boolean functions to the list tonight…</p>
<br />Filed under: <a href='http://roachnet.wordpress.com/category/information/'>Information</a>, <a href='http://roachnet.wordpress.com/category/robotc-code/'>RobotC Code</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/roachnet.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/roachnet.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/roachnet.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/roachnet.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/roachnet.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/roachnet.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/roachnet.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/roachnet.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/roachnet.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/roachnet.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/roachnet.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/roachnet.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/roachnet.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/roachnet.wordpress.com/322/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roachnet.wordpress.com&amp;blog=8252109&amp;post=322&amp;subd=roachnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://roachnet.wordpress.com/2010/08/06/more-fun-with-math-boolean-functions/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ec42eb9fd1f6929f16bd75139dfe0f9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Thom</media:title>
		</media:content>

		<media:content url="http://roachnet.files.wordpress.com/2010/08/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
	</channel>
</rss>
