Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 4bc66056a634db26a1f4d0845dc41ca6 > files > 5145

mrpt-doc-0.9.5-0.1.20110925svn2670.fc16.i686.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>mrpt::slam::CSinCosLookUpTableFor2DScans Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<div align="left"><a href="http://www.mrpt.org/">Main MRPT website</a> &gt; <b>C++ reference</b> </div>
<div align="right">
<a href="index.html"><img border="0" src="mrpt_logo.png" alt="MRPT logo"></a>
</div>
<!-- Generated by Doxygen 1.7.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
          <div class="left">
            <form id="FSearchBox" action="search.php" method="get">
              <img id="MSearchSelect" src="search/mag.png" alt=""/>
              <input type="text" id="MSearchField" name="query" value="Search" size="20" accesskey="S" 
                     onfocus="searchBox.OnSearchFieldFocus(true)" 
                     onblur="searchBox.OnSearchFieldFocus(false)"/>
            </form>
          </div><div class="right"></div>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespacemrpt.html">mrpt</a>      </li>
      <li class="navelem"><a class="el" href="namespacemrpt_1_1slam.html">slam</a>      </li>
      <li class="navelem"><a class="el" href="classmrpt_1_1slam_1_1_c_sin_cos_look_up_table_for2_d_scans.html">CSinCosLookUpTableFor2DScans</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">mrpt::slam::CSinCosLookUpTableFor2DScans Class Reference<div class="ingroups"><a class="el" href="group__mrpt__obs__grp.html">[mrpt-obs]</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="mrpt::slam::CSinCosLookUpTableFor2DScans" --><hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A smart look-up-table (LUT) of sin/cos values for 2D laser scans. </p>
<p>Refer to the main method <a class="el" href="classmrpt_1_1slam_1_1_c_sin_cos_look_up_table_for2_d_scans.html#a37ce96e277e14c564f6caf361ab6b9da" title="Return two vectors with the cos and the sin of the angles for each of the rays in a scan...">CSinCosLookUpTableFor2DScans::getSinCosForScan()</a></p>
<p>This class is used in <a class="el" href="classmrpt_1_1slam_1_1_c_points_map.html" title="A cloud of points in 2D or 3D, which can be built from a sequence of laser scans or other sensors...">mrpt::slam::CPointsMap</a> </p>
</div>
<p><code>#include &lt;<a class="el" href="_c_sin_cos_look_up_table_for2_d_scans_8h_source.html">mrpt/slam/CSinCosLookUpTableFor2DScans.h</a>&gt;</code></p>

<p><a href="classmrpt_1_1slam_1_1_c_sin_cos_look_up_table_for2_d_scans-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1slam_1_1_c_sin_cos_look_up_table_for2_d_scans_1_1_t_sin_cos_values.html">TSinCosValues</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A pair of vectors with the cos and sin values.  <a href="structmrpt_1_1slam_1_1_c_sin_cos_look_up_table_for2_d_scans_1_1_t_sin_cos_values.html#details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structmrpt_1_1slam_1_1_c_sin_cos_look_up_table_for2_d_scans_1_1_t_sin_cos_values.html">TSinCosValues</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1slam_1_1_c_sin_cos_look_up_table_for2_d_scans.html#a37ce96e277e14c564f6caf361ab6b9da">getSinCosForScan</a> (const <a class="el" href="classmrpt_1_1slam_1_1_c_observation2_d_range_scan.html">CObservation2DRangeScan</a> &amp;scan)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return two vectors with the cos and the sin of the angles for each of the rays in a scan, computing them only the first time and returning a cached copy the rest.  <a href="#a37ce96e277e14c564f6caf361ab6b9da"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classstd_1_1map.html">std::map</a>&lt; <a class="el" href="structmrpt_1_1slam_1_1_t2_d_scan_properties.html">T2DScanProperties</a>, <br class="typebreak"/>
<a class="el" href="structmrpt_1_1slam_1_1_c_sin_cos_look_up_table_for2_d_scans_1_1_t_sin_cos_values.html">TSinCosValues</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1slam_1_1_c_sin_cos_look_up_table_for2_d_scans.html#af503decfe5be43c5e0078b110e2442c8">m_cache</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The cache of known scans and their sin/cos tables.  <a href="#af503decfe5be43c5e0078b110e2442c8"></a><br/></td></tr>
</table>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a37ce96e277e14c564f6caf361ab6b9da"></a><!-- doxytag: member="mrpt::slam::CSinCosLookUpTableFor2DScans::getSinCosForScan" ref="a37ce96e277e14c564f6caf361ab6b9da" args="(const CObservation2DRangeScan &amp;scan)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="structmrpt_1_1slam_1_1_c_sin_cos_look_up_table_for2_d_scans_1_1_t_sin_cos_values.html">TSinCosValues</a>&amp; mrpt::slam::CSinCosLookUpTableFor2DScans::getSinCosForScan </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classmrpt_1_1slam_1_1_c_observation2_d_range_scan.html">CObservation2DRangeScan</a> &amp;&#160;</td>
          <td class="paramname"><em>scan</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return two vectors with the cos and the sin of the angles for each of the rays in a scan, computing them only the first time and returning a cached copy the rest. </p>
<p>Usage: </p>
<div class="fragment"><pre class="fragment">   CSinCosLookUpTableFor2DScans cache;
   ...
   <span class="keyword">const</span> CSinCosLookUpTableFor2DScans::TSinCosValues &amp; sincos_vals = cache.getSinCosForScan( scan );
</pre></div> 
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="af503decfe5be43c5e0078b110e2442c8"></a><!-- doxytag: member="mrpt::slam::CSinCosLookUpTableFor2DScans::m_cache" ref="af503decfe5be43c5e0078b110e2442c8" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classstd_1_1map.html">std::map</a>&lt;<a class="el" href="structmrpt_1_1slam_1_1_t2_d_scan_properties.html">T2DScanProperties</a>,<a class="el" href="structmrpt_1_1slam_1_1_c_sin_cos_look_up_table_for2_d_scans_1_1_t_sin_cos_values.html">TSinCosValues</a>&gt; <a class="el" href="classmrpt_1_1slam_1_1_c_sin_cos_look_up_table_for2_d_scans.html#af503decfe5be43c5e0078b110e2442c8">mrpt::slam::CSinCosLookUpTableFor2DScans::m_cache</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The cache of known scans and their sin/cos tables. </p>

<p>Definition at line <a class="el" href="_c_sin_cos_look_up_table_for2_d_scans_8h_source.html#l00063">63</a> of file <a class="el" href="_c_sin_cos_look_up_table_for2_d_scans_8h_source.html">CSinCosLookUpTableFor2DScans.h</a>.</p>

</div>
</div>
</div>
<br><hr><br> <table border="0" width="100%"> <tr> <td> Page generated by <a href="http://www.doxygen.org" target="_blank">Doxygen 1.7.5</a> for MRPT 0.9.5 SVN: at Sun Sep 25 17:20:18 UTC 2011</td><td></td> <td width="100"> </td> <td width="150">  </td></tr> </table>  </body></html>