Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 2f6559b7006594cad03af173263c219e > files > 3393

mrpt-doc-0.9.4-0.1.20110110svn2383.fc15.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>The MRPT project: mrpt::hmtslam::CTopLCDetectorBase 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.2 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div 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 id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
          <span 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>
          </span><span class="right"></span>
        </div>
      </li>
    </ul>
  </div>
  <div 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="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath">
    <ul>
      <li><a class="el" href="namespacemrpt.html">mrpt</a>      </li>
      <li><a class="el" href="namespacemrpt_1_1hmtslam.html">hmtslam</a>      </li>
      <li><a class="el" href="classmrpt_1_1hmtslam_1_1_c_top_l_c_detector_base.html">CTopLCDetectorBase</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle">
<h1>mrpt::hmtslam::CTopLCDetectorBase Class Reference</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="mrpt::hmtslam::CTopLCDetectorBase" --><hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>The virtual base class for Topological Loop-closure Detectors; used in HMT-SLAM. </p>
<dl class="see"><dt><b>See also:</b></dt><dd>mrpt::slam::CHMTSLAM </dd></dl>

<p>Definition at line <a class="el" href="_c_top_l_c_detector_base_8h_source.html#l00046">46</a> of file <a class="el" href="_c_top_l_c_detector_base_8h_source.html">CTopLCDetectorBase.h</a>.</p>

<p><code>#include &lt;<a class="el" href="_c_top_l_c_detector_base_8h_source.html">mrpt/hmtslam/CTopLCDetectorBase.h</a>&gt;</code></p>
<!-- startSectionHeader --><div class="dynheader">
Inheritance diagram for mrpt::hmtslam::CTopLCDetectorBase:<!-- endSectionHeader --></div>
<!-- startSectionSummary --><!-- endSectionSummary --><!-- startSectionContent --><div class="dyncontent">
<div class="center"><img src="classmrpt_1_1hmtslam_1_1_c_top_l_c_detector_base__inherit__graph.png" border="0" usemap="#mrpt_1_1hmtslam_1_1_c_top_l_c_detector_base_inherit__map" alt="Inheritance graph"/></div>
<map name="mrpt_1_1hmtslam_1_1_c_top_l_c_detector_base_inherit__map" id="mrpt_1_1hmtslam_1_1_c_top_l_c_detector_base_inherit__map">
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center><!-- endSectionContent --></div>

<p><a href="classmrpt_1_1hmtslam_1_1_c_top_l_c_detector_base-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1hmtslam_1_1_c_top_l_c_detector_base.html#acf6bb7e4a951d4e0d47c9c25af9303ac">~CTopLCDetectorBase</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A class factory, to be implemented in derived classes.  <a href="#acf6bb7e4a951d4e0d47c9c25af9303ac"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1hmtslam_1_1_c_top_l_c_detector_base.html#a6a489ca853dea8add48eeeb08e116060">reset</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reset the internal state of the TLCD, if any.  <a href="#a6a489ca853dea8add48eeeb08e116060"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="structmrpt_1_1poses_1_1_c_pose3_d_p_d_f_ptr.html">CPose3DPDFPtr</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1hmtslam_1_1_c_top_l_c_detector_base.html#afbc367b6caf7229a78d0131ad386eba7">computeTopologicalObservationModel</a> (const <a class="el" href="namespacemrpt_1_1hmtslam.html#a6a8c7a5cb874400f4df9d1fd6b6ff9ee">THypothesisID</a> &amp;hypID, const <a class="el" href="structmrpt_1_1hmtslam_1_1_c_h_m_h_map_node_ptr.html">CHMHMapNodePtr</a> &amp;currentArea, const <a class="el" href="structmrpt_1_1hmtslam_1_1_c_h_m_h_map_node_ptr.html">CHMHMapNodePtr</a> &amp;refArea, double &amp;out_log_lik)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">This method must compute the topological observation model.  <a href="#afbc367b6caf7229a78d0131ad386eba7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1hmtslam_1_1_c_top_l_c_detector_base.html#ae30df0af1bc6d818e2890c7f6192c3f2">computeSSOBetweenObservations</a> (const <a class="el" href="namespacemrpt_1_1hmtslam.html#a6a8c7a5cb874400f4df9d1fd6b6ff9ee">THypothesisID</a> &amp;hypID, const <a class="el" href="namespacemrpt_1_1hmtslam.html#afc45e3c745da87655acd25af131343bf">TPoseID</a> &amp;poseID1, const <a class="el" href="namespacemrpt_1_1hmtslam.html#afc45e3c745da87655acd25af131343bf">TPoseID</a> &amp;poseID2, double &amp;out_SSO)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">If implemented, this method provides the evaluation of an additional term to be added to the SSO between each pair of observations.  <a href="#ae30df0af1bc6d818e2890c7f6192c3f2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1hmtslam_1_1_c_top_l_c_detector_base.html#ab30aae9e38f985976dedfc5fa0376e6b">OnNewPose</a> (const <a class="el" href="namespacemrpt_1_1hmtslam.html#afc45e3c745da87655acd25af131343bf">TPoseID</a> &amp;poseID, const <a class="el" href="classmrpt_1_1slam_1_1_c_sensory_frame.html">CSensoryFrame</a> *SF)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Hook method for being warned about the insertion of a new poses into the maps.  <a href="#ab30aae9e38f985976dedfc5fa0376e6b"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1hmtslam_1_1_c_top_l_c_detector_base.html#a5ed6393e890f89ef98759002f3a44ba8">CTopLCDetectorBase</a> (<a class="el" href="classmrpt_1_1hmtslam_1_1_c_h_m_t_s_l_a_m.html">CHMTSLAM</a> *htmslam_obj)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Instances can be generated through a class factory only.  <a href="#a5ed6393e890f89ef98759002f3a44ba8"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmrpt_1_1hmtslam_1_1_c_h_m_t_s_l_a_m.html">CHMTSLAM</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1hmtslam_1_1_c_top_l_c_detector_base.html#a148d369add8df9d47e5e57062048d492">m_hmtslam</a></td></tr>
</table>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a5ed6393e890f89ef98759002f3a44ba8"></a><!-- doxytag: member="mrpt::hmtslam::CTopLCDetectorBase::CTopLCDetectorBase" ref="a5ed6393e890f89ef98759002f3a44ba8" args="(CHMTSLAM *htmslam_obj)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">mrpt::hmtslam::CTopLCDetectorBase::CTopLCDetectorBase </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classmrpt_1_1hmtslam_1_1_c_h_m_t_s_l_a_m.html">CHMTSLAM</a> *&#160;</td>
          <td class="paramname"> <em>htmslam_obj</em>&#160;)</td>
          <td><code> [inline, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Instances can be generated through a class factory only. </p>

<p>Definition at line <a class="el" href="_c_top_l_c_detector_base_8h_source.html#l00052">52</a> of file <a class="el" href="_c_top_l_c_detector_base_8h_source.html">CTopLCDetectorBase.h</a>.</p>

</div>
</div>
<a class="anchor" id="acf6bb7e4a951d4e0d47c9c25af9303ac"></a><!-- doxytag: member="mrpt::hmtslam::CTopLCDetectorBase::~CTopLCDetectorBase" ref="acf6bb7e4a951d4e0d47c9c25af9303ac" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual mrpt::hmtslam::CTopLCDetectorBase::~CTopLCDetectorBase </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A class factory, to be implemented in derived classes. </p>
<p>Destructor </p>

<p>Definition at line <a class="el" href="_c_top_l_c_detector_base_8h_source.html#l00059">59</a> of file <a class="el" href="_c_top_l_c_detector_base_8h_source.html">CTopLCDetectorBase.h</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ae30df0af1bc6d818e2890c7f6192c3f2"></a><!-- doxytag: member="mrpt::hmtslam::CTopLCDetectorBase::computeSSOBetweenObservations" ref="ae30df0af1bc6d818e2890c7f6192c3f2" args="(const THypothesisID &amp;hypID, const TPoseID &amp;poseID1, const TPoseID &amp;poseID2, double &amp;out_SSO)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool mrpt::hmtslam::CTopLCDetectorBase::computeSSOBetweenObservations </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespacemrpt_1_1hmtslam.html#a6a8c7a5cb874400f4df9d1fd6b6ff9ee">THypothesisID</a> &amp;&#160;</td>
          <td class="paramname"> <em>hypID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespacemrpt_1_1hmtslam.html#afc45e3c745da87655acd25af131343bf">TPoseID</a> &amp;&#160;</td>
          <td class="paramname"> <em>poseID1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespacemrpt_1_1hmtslam.html#afc45e3c745da87655acd25af131343bf">TPoseID</a> &amp;&#160;</td>
          <td class="paramname"> <em>poseID2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"> <em>out_SSO</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>If implemented, this method provides the evaluation of an additional term to be added to the SSO between each pair of observations. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">out_SSO</td><td>The output, in the range [0,1]. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if computed SSO is meaningful. The default virtual method returns false. </dd></dl>

<p>Definition at line <a class="el" href="_c_top_l_c_detector_base_8h_source.html#l00083">83</a> of file <a class="el" href="_c_top_l_c_detector_base_8h_source.html">CTopLCDetectorBase.h</a>.</p>

</div>
</div>
<a class="anchor" id="afbc367b6caf7229a78d0131ad386eba7"></a><!-- doxytag: member="mrpt::hmtslam::CTopLCDetectorBase::computeTopologicalObservationModel" ref="afbc367b6caf7229a78d0131ad386eba7" args="(const THypothesisID &amp;hypID, const CHMHMapNodePtr &amp;currentArea, const CHMHMapNodePtr &amp;refArea, double &amp;out_log_lik)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="structmrpt_1_1poses_1_1_c_pose3_d_p_d_f_ptr.html">CPose3DPDFPtr</a> mrpt::hmtslam::CTopLCDetectorBase::computeTopologicalObservationModel </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespacemrpt_1_1hmtslam.html#a6a8c7a5cb874400f4df9d1fd6b6ff9ee">THypothesisID</a> &amp;&#160;</td>
          <td class="paramname"> <em>hypID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structmrpt_1_1hmtslam_1_1_c_h_m_h_map_node_ptr.html">CHMHMapNodePtr</a> &amp;&#160;</td>
          <td class="paramname"> <em>currentArea</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structmrpt_1_1hmtslam_1_1_c_h_m_h_map_node_ptr.html">CHMHMapNodePtr</a> &amp;&#160;</td>
          <td class="paramname"> <em>refArea</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"> <em>out_log_lik</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This method must compute the topological observation model. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">out_log_lik</td><td>The output, a log-likelihood. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>NULL (an empty smart pointer), or a PDF of the estimated translation between the two areas (can be a multi-modal PDF). </dd></dl>

<p>Implemented in <a class="el" href="classmrpt_1_1hmtslam_1_1_c_top_l_c_detector___fab_map.html#a1fd334766c7b8b7a0ad790513689d9a7">mrpt::hmtslam::CTopLCDetector_FabMap</a>, and <a class="el" href="classmrpt_1_1hmtslam_1_1_c_top_l_c_detector___grid_matching.html#a55c15e76d47524eeb9cbba9de5f47f05">mrpt::hmtslam::CTopLCDetector_GridMatching</a>.</p>

</div>
</div>
<a class="anchor" id="ab30aae9e38f985976dedfc5fa0376e6b"></a><!-- doxytag: member="mrpt::hmtslam::CTopLCDetectorBase::OnNewPose" ref="ab30aae9e38f985976dedfc5fa0376e6b" args="(const TPoseID &amp;poseID, const CSensoryFrame *SF)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void mrpt::hmtslam::CTopLCDetectorBase::OnNewPose </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespacemrpt_1_1hmtslam.html#afc45e3c745da87655acd25af131343bf">TPoseID</a> &amp;&#160;</td>
          <td class="paramname"> <em>poseID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classmrpt_1_1slam_1_1_c_sensory_frame.html">CSensoryFrame</a> *&#160;</td>
          <td class="paramname"> <em>SF</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Hook method for being warned about the insertion of a new poses into the maps. </p>
<p>This should be independent of hypothesis IDs. </p>

<p>Reimplemented in <a class="el" href="classmrpt_1_1hmtslam_1_1_c_top_l_c_detector___fab_map.html#a9fe35c9919c08187733053f830b71662">mrpt::hmtslam::CTopLCDetector_FabMap</a>, and <a class="el" href="classmrpt_1_1hmtslam_1_1_c_top_l_c_detector___grid_matching.html#abc73ff14c32e2bf562ac03931506062e">mrpt::hmtslam::CTopLCDetector_GridMatching</a>.</p>

<p>Definition at line <a class="el" href="_c_top_l_c_detector_base_8h_source.html#l00096">96</a> of file <a class="el" href="_c_top_l_c_detector_base_8h_source.html">CTopLCDetectorBase.h</a>.</p>

</div>
</div>
<a class="anchor" id="a6a489ca853dea8add48eeeb08e116060"></a><!-- doxytag: member="mrpt::hmtslam::CTopLCDetectorBase::reset" ref="a6a489ca853dea8add48eeeb08e116060" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void mrpt::hmtslam::CTopLCDetectorBase::reset </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reset the internal state of the TLCD, if any. </p>
<p>This is needed since the objects are created while loading HMT-SLAM options, but the algorithm may be re-started after that at any time. </p>

<p>Definition at line <a class="el" href="_c_top_l_c_detector_base_8h_source.html#l00064">64</a> of file <a class="el" href="_c_top_l_c_detector_base_8h_source.html">CTopLCDetectorBase.h</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a148d369add8df9d47e5e57062048d492"></a><!-- doxytag: member="mrpt::hmtslam::CTopLCDetectorBase::m_hmtslam" ref="a148d369add8df9d47e5e57062048d492" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classmrpt_1_1hmtslam_1_1_c_h_m_t_s_l_a_m.html">CHMTSLAM</a>* <a class="el" href="classmrpt_1_1hmtslam_1_1_c_top_l_c_detector_base.html#a148d369add8df9d47e5e57062048d492">mrpt::hmtslam::CTopLCDetectorBase::m_hmtslam</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_c_top_l_c_detector_base_8h_source.html#l00049">49</a> of file <a class="el" href="_c_top_l_c_detector_base_8h_source.html">CTopLCDetectorBase.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.2</a> for MRPT 0.9.4 SVN: at Mon Jan 10 22:30:30 UTC 2011</td><td></td> <td width="100"> </td> <td width="150">  </td></tr> </table> </body></html>