<?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>
        See the API.zip download ... they are now incorporated into that file.&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.roborealm.com/downloads/API.zip&quot; target=&quot;_blank&quot;&gt;http://www.roborealm.com/&lt;wbr&gt;downloads/&lt;wbr&gt;API.zip&lt;/a&gt;&lt;br&gt;&lt;br&gt;STeven.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3597</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3597</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        where are the c++ files        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3597</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3597</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>Wrapper classes for reading variables from RR_API</title>
        <description>
        I&apos;m attaching three files of C++. These put wrappers around variables to be read from RR using the RR_API. These classes only do reads, so far, since that is all I&apos;ve needed to date. I&apos;ll add writing at some point in the future but though some might find limited routines these useful before I get write opeartions.&lt;br&gt;&lt;br&gt;The first class is RoboRealmVar which wraps individual variables. Its a template class. I&apos;ve created specific instanctiations for int, float and string. It should be easy to add more if necessary. The only thing you might have to write is a simple conversion from ascii to data type routine. See the string instatiation for how it was done there. &lt;br&gt;&lt;br&gt;To declare a var is done by:&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;rrIntVar mCogX;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;rrIntVar mCogBoxSize;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;rrIntVar mImageWidth;&lt;br&gt;&lt;br&gt;Instatiate it with &lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mCogX(&quot;COG_X&quot;, mRoboRealm),&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mImageWidth(&quot;IMAGE_WIDTH&quot;, mRoboRealm),&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mCogBoxSize(&quot;COG_BOX_SIZE&quot;, mRoboRealm),&lt;br&gt;&lt;br&gt;where mRoboRealm is the instance of RR from RR_API. &lt;br&gt;&lt;br&gt;All the examples are for the COG module and are using class members, hence the &apos;m&apos; prefix. &lt;br&gt;&lt;br&gt;You can retrieve the values with:&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp; int cogX =&amp;nbsp;&amp;nbsp;mCogX();&lt;br&gt;&lt;br&gt;which uses an overload of operator();&lt;br&gt;&lt;br&gt;If you want to retrieve mutliple variables with one call use the class RoboRealmVars. You may have noticed the class RoboRealmVarBase which is a base class for RoboRealmVars. It is used to provide an interface to individual vars when working with multiple vars.&lt;br&gt;&lt;br&gt;Do this for multiple variables:&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;RoboRealmVars mCogVars;&lt;br&gt;&lt;br&gt;then:&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mCogVars(mRoboRealm)&lt;br&gt;&lt;br&gt;and then:&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mCogVars.add(mCogX);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mCogVars.add(mImageWidth);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mCogVars.add(mCogBoxSize);&lt;br&gt;&lt;br&gt;and finally:&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mCogVars();&lt;br&gt;&lt;br&gt;which is another operator() overload for reading multiple vars. All the individual vars then have values that can be accessed as shown above in the individual var example. &lt;br&gt;&lt;br&gt;Hope someone finds these useful. I know reading multiple vars took a lot of detail chasing that this new class how hides. &lt;br&gt;&lt;br&gt;[image1]&lt;br&gt;[image2]&lt;br&gt;[image3]&lt;br&gt;         </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3597</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3597</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
</channel>
</rss>
