Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > e7618febbb9cbed15bb79e326774c050 > files > 813

ompl-devel-0.9.5-1.fc14.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8"/>
<title>OMPL: ompl::geometric::KStarStrategy&lt; Milestone &gt; Class Template Reference</title>
<meta name="author" content="Ioan A. Șucan, Mark Moll, Lydia E. Kavraki">
<link rel="stylesheet" href="../css/screen.css" type="text/css" media="screen, projection">
<link rel="stylesheet" href="../css/print.css" type="text/css" media="print">
<!--[if lt IE 7]>
<script type="text/javascript" src="../js/jquery/jquery.js"></script>
<script type="text/javascript" src="../js/jquery/jquery.dropdown.js"></script>
<![endif]-->
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-9156598-2']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search API');
--></script>
<div class="navigation" id="top">
  <div class="tabs" id="ompltitle">
    <ul class="tablist">
      <li>The Open Motion Planning Library</li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search API" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)"
               onblur="searchBox.OnSearchFieldFocus(false)"
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>

  <ul id="nav" class="dropdown">
    <li class="first"><a href="index.html">Home</a></li>
    <li><a href="download.html">Download</a></li>
    <li><a href="documentation.html">Documentation</a></li>
    <li><span class="dir">Code API</span>
      <ul>
        <li><a href="api_overview.html">API Overview</a></li>
        <li><a href="namespaces.html">Namespaces</a></li>
        <li><a href="annotated.html">Classes</a></li>
        <li><a href="files.html">Files</a></li>
        <li><a href="dirs.html">Directories</a></li>
      </ul>
    </li>
    <li><span class="dir">Community</span>
      <ul>
        <li><a href="developers.html">Developers</a></li>
        <li><a href="thirdparty.html">Contributions</a></li>
        <li><a href="education.html">Education</a></li>
        <li><a href="gallery.html">Gallery</a></li>
      </ul>
    </li>
    <li><span class="dir">About</span>
      <ul>
        <li><a href="license.html">License</a></li>
        <li><a href="citations.html">Citations</a></li>
        <li><a href="acknowledgements.html">Acknowledgments</a></li>
        <li><a href="contact.html">Contact Us</a></li>
      </ul>
    </li>
  </ul>
</div>

<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
  onmouseover="return searchBox.OnSearchSelectShow()"
  onmouseout="return searchBox.OnSearchSelectHide()"
  onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
  <iframe src="" frameborder="0"name="MSearchResults" id="MSearchResults"></iframe>
</div>

<div class="container">
  <div class="span-22 push-2 first last">
  <div>
<!-- Generated by Doxygen 1.7.4 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceompl.html">ompl</a>      </li>
      <li class="navelem"><a class="el" href="namespaceompl_1_1geometric.html">geometric</a>      </li>
      <li class="navelem"><a class="el" href="classompl_1_1geometric_1_1KStarStrategy.html">KStarStrategy</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle">
<div class="title">ompl::geometric::KStarStrategy&lt; Milestone &gt; Class Template Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="ompl::geometric::KStarStrategy" --><!-- doxytag: inherits="ompl::geometric::KStrategy" -->
<p>Make the minimal number of connections required to ensure asymptotic optimality.  
 <a href="classompl_1_1geometric_1_1KStarStrategy.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="ConnectionStrategy_8h_source.html">ConnectionStrategy.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for ompl::geometric::KStarStrategy&lt; Milestone &gt;:</div>
<div class="dyncontent">
<div class="center"><img src="classompl_1_1geometric_1_1KStarStrategy__inherit__graph.png" border="0" usemap="#ompl_1_1geometric_1_1KStarStrategy_3_01Milestone_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="ompl_1_1geometric_1_1KStarStrategy_3_01Milestone_01_4_inherit__map" id="ompl_1_1geometric_1_1KStarStrategy_3_01Milestone_01_4_inherit__map">
<area shape="rect" id="node2" href="classompl_1_1geometric_1_1KStrategy.html" title="ompl::geometric::KStrategy\&lt; Milestone \&gt;" alt="" coords="17,5,279,35"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classompl_1_1geometric_1_1KStarStrategy-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">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classompl_1_1geometric_1_1KStarStrategy.html#adc2852f930022938255d7d32d985e841">KStarStrategy</a> (const boost::function0&lt; unsigned int &gt; &amp;n, const boost::shared_ptr&lt; <a class="el" href="classompl_1_1NearestNeighbors.html">NearestNeighbors</a>&lt; Milestone &gt; &gt; &amp;nn, const unsigned int d=1)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="#adc2852f930022938255d7d32d985e841"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7fbc135288c491912eda4b6761a4011b"></a><!-- doxytag: member="ompl::geometric::KStarStrategy::operator()" ref="a7fbc135288c491912eda4b6761a4011b" args="(const Milestone &amp;m)" -->
std::vector&lt; Milestone &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classompl_1_1geometric_1_1KStarStrategy.html#a7fbc135288c491912eda4b6761a4011b">operator()</a> (const Milestone &amp;m)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Given a milestone <em>m</em>, find the number of nearest neighbors connection attempts that should be made from it, according to the connection strategy. <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="anchor" id="ae760d7552b878c0a553ae62723e2f731"></a><!-- doxytag: member="ompl::geometric::KStarStrategy::n_" ref="ae760d7552b878c0a553ae62723e2f731" args="" -->
const boost::function0<br class="typebreak"/>
&lt; unsigned int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classompl_1_1geometric_1_1KStarStrategy.html#ae760d7552b878c0a553ae62723e2f731">n_</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Function returning the number of milestones added to the roadmap so far. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1d691a6307f4efb9586fa85af739e0e9"></a><!-- doxytag: member="ompl::geometric::KStarStrategy::kPRMConstant_" ref="a1d691a6307f4efb9586fa85af739e0e9" args="" -->
const double&#160;</td><td class="memItemRight" valign="bottom"><b>kPRMConstant_</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><h3>template&lt;class Milestone&gt;<br/>
class ompl::geometric::KStarStrategy&lt; Milestone &gt;</h3>

<p>Make the minimal number of connections required to ensure asymptotic optimality. </p>
<p>This connection strategy attempts to connect a milestone to its k-nearest neighbors where k is a function of the number of milestones that have already been added to the roadmap (n).</p>
<p>k(n) = kPRMConstant * log(n)</p>
<p>where</p>
<p>kPRMConstant &gt; kStarPRMConstant = e(1 + 1/d)</p>
<p>and d is the number of dimensions in the state space. Note that kPRMConstant = 2e is a valid choice for any problem instance and so, if d is not provided, this value is used.</p>
<p>The user must provide a function that returns the value of n.</p>
<dl class="user"><dt><b>External documentation</b></dt><dd>S. Karaman and E. Frazzoli Sampling-based algorithms for optimal motion planning, <em>Int. Journal of Robotics Research</em> Volume 30, Number 7, June 2010 </dd></dl>

<p>Definition at line <a class="el" href="ConnectionStrategy_8h_source.html#l00126">126</a> of file <a class="el" href="ConnectionStrategy_8h_source.html">ConnectionStrategy.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="adc2852f930022938255d7d32d985e841"></a><!-- doxytag: member="ompl::geometric::KStarStrategy::KStarStrategy" ref="adc2852f930022938255d7d32d985e841" args="(const boost::function0&lt; unsigned int &gt; &amp;n, const boost::shared_ptr&lt; NearestNeighbors&lt; Milestone &gt; &gt; &amp;nn, const unsigned int d=1)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Milestone&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classompl_1_1geometric_1_1KStarStrategy.html">ompl::geometric::KStarStrategy</a>&lt; Milestone &gt;::<a class="el" href="classompl_1_1geometric_1_1KStarStrategy.html">KStarStrategy</a> </td>
          <td>(</td>
          <td class="paramtype">const boost::function0&lt; unsigned int &gt; &amp;&#160;</td>
          <td class="paramname"><em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const boost::shared_ptr&lt; <a class="el" href="classompl_1_1NearestNeighbors.html">NearestNeighbors</a>&lt; Milestone &gt; &gt; &amp;&#160;</td>
          <td class="paramname"><em>nn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned int&#160;</td>
          <td class="paramname"><em>d</em> = <code>1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructor. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">n</td><td>a function that returns the number of milestones that have already been added to the roadmap </td></tr>
    <tr><td class="paramname">nn</td><td>the nearest neighbors datastruture to use </td></tr>
    <tr><td class="paramname">d</td><td>the dimensionality of the state space. The default is 1, which will make kPRMConstant=2e which is valid for all problem instances. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="ConnectionStrategy_8h_source.html#l00139">139</a> of file <a class="el" href="ConnectionStrategy_8h_source.html">ConnectionStrategy.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/ompl/geometric/planners/prm/<a class="el" href="ConnectionStrategy_8h_source.html">ConnectionStrategy.h</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div>

<div class="footer span-22 push-2 last">
  <a href="http://www.kavrakilab.org">Physical and Biological Computing Group</a> &bull;
  <a href="http://www.cs.rice.edu">Department of Computer Science</a> &bull;
  <a href="http://www.rice.edu">Rice University</a><br>
  <div class="gray">Generated on Sun Oct 9 2011 23:04:43 by&#160;<a href="http://www.doxygen.org/index.html">doxygen</a> 1.7.4</div>
</div>
</div>
</body>
</html>