Sophie

Sophie

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

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::Discretization&lt; Motion &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_1Discretization.html">Discretization</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">ompl::geometric::Discretization&lt; Motion &gt; Class Template Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="ompl::geometric::Discretization" -->
<p>One-level discretization used for KPIECE.  
 <a href="classompl_1_1geometric_1_1Discretization.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="Discretization_8h_source.html">Discretization.h</a>&gt;</code></p>

<p><a href="classompl_1_1geometric_1_1Discretization-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="structompl_1_1geometric_1_1Discretization_1_1CellData.html">CellData</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The data held by a cell in the grid of motions.  <a href="structompl_1_1geometric_1_1Discretization_1_1CellData.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structompl_1_1geometric_1_1Discretization_1_1OrderCellsByImportance.html">OrderCellsByImportance</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Definintion of an operator passed to the <a class="el" href="classompl_1_1Grid.html" title="Representation of a simple grid.">Grid</a> structure, to order cells by importance.  <a href="structompl_1_1geometric_1_1Discretization_1_1OrderCellsByImportance.html#details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac21186181755603cb91938f280e9dbc3"></a><!-- doxytag: member="ompl::geometric::Discretization::Grid" ref="ac21186181755603cb91938f280e9dbc3" args="" -->
typedef <a class="el" href="classompl_1_1GridB.html">GridB</a>&lt; <a class="el" href="structompl_1_1geometric_1_1Discretization_1_1CellData.html">CellData</a> <br class="typebreak"/>
*, <a class="el" href="structompl_1_1geometric_1_1Discretization_1_1OrderCellsByImportance.html">OrderCellsByImportance</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classompl_1_1geometric_1_1Discretization.html#ac21186181755603cb91938f280e9dbc3">Grid</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The datatype for the maintained grid datastructure. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a810ca49dd7278f5699560d2af1a4bc26"></a><!-- doxytag: member="ompl::geometric::Discretization::Cell" ref="a810ca49dd7278f5699560d2af1a4bc26" args="" -->
typedef <a class="el" href="structompl_1_1Grid_1_1Cell.html">Grid::Cell</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classompl_1_1geometric_1_1Discretization.html#a810ca49dd7278f5699560d2af1a4bc26">Cell</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The datatype for the maintained grid cells. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a685f1b61176111a7a248f20350f421e7"></a><!-- doxytag: member="ompl::geometric::Discretization::Coord" ref="a685f1b61176111a7a248f20350f421e7" args="" -->
typedef <a class="el" href="classompl_1_1GridB.html#ae1ffa2705f26a8916307afa7b020ba49">Grid::Coord</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classompl_1_1geometric_1_1Discretization.html#a685f1b61176111a7a248f20350f421e7">Coord</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The datatype for the maintained grid coordinates. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a68ecdad46dcce89216b417b81d1fa57a"></a><!-- doxytag: member="ompl::geometric::Discretization::FreeMotionFn" ref="a68ecdad46dcce89216b417b81d1fa57a" args="" -->
typedef boost::function1&lt; void, <br class="typebreak"/>
Motion * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classompl_1_1geometric_1_1Discretization.html#a68ecdad46dcce89216b417b81d1fa57a">FreeMotionFn</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The signature of a function that frees the memory for a motion. <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"><a class="anchor" id="a604655d05eb1625b3e60fd2b9a2dda9d"></a><!-- doxytag: member="ompl::geometric::Discretization::Discretization" ref="a604655d05eb1625b3e60fd2b9a2dda9d" args="(const FreeMotionFn &amp;freeMotion)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>Discretization</b> (const <a class="el" href="classompl_1_1geometric_1_1Discretization.html#a68ecdad46dcce89216b417b81d1fa57a">FreeMotionFn</a> &amp;freeMotion)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aac6dfc7acc8db082a84b7bbdadb78e87"></a><!-- doxytag: member="ompl::geometric::Discretization::setBorderFraction" ref="aac6dfc7acc8db082a84b7bbdadb78e87" args="(double bp)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classompl_1_1geometric_1_1Discretization.html#aac6dfc7acc8db082a84b7bbdadb78e87">setBorderFraction</a> (double bp)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the fraction of time for focusing on the border (between 0 and 1). This is the minimum fraction used to select cells that are exterior (minimum because if 95% of cells are on the border, they will be selected with 95% chance, even if this fraction is set to 90%) <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa8bad537b028cf076e379cc11b81aec4"></a><!-- doxytag: member="ompl::geometric::Discretization::getBorderFraction" ref="aa8bad537b028cf076e379cc11b81aec4" args="(void) const " -->
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classompl_1_1geometric_1_1Discretization.html#aa8bad537b028cf076e379cc11b81aec4">getBorderFraction</a> (void) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the fraction of time for focusing on the border (between 0 and 1). <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acfdbc5b059330490b55185dda00f0eb1"></a><!-- doxytag: member="ompl::geometric::Discretization::setDimension" ref="acfdbc5b059330490b55185dda00f0eb1" args="(unsigned int dim)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classompl_1_1geometric_1_1Discretization.html#acfdbc5b059330490b55185dda00f0eb1">setDimension</a> (unsigned int dim)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the dimension of the grid to be maintained. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a70dc618627b2b7921d9294d2a43da994"></a><!-- doxytag: member="ompl::geometric::Discretization::clear" ref="a70dc618627b2b7921d9294d2a43da994" args="(void)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classompl_1_1geometric_1_1Discretization.html#a70dc618627b2b7921d9294d2a43da994">clear</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Restore the discretization to its original form. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac9cfbff884d174b25a64b1458efa945c"></a><!-- doxytag: member="ompl::geometric::Discretization::countIteration" ref="ac9cfbff884d174b25a64b1458efa945c" args="(void)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>countIteration</b> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa955f337e407c5e56aa61ea5ebbb9037"></a><!-- doxytag: member="ompl::geometric::Discretization::getMotionCount" ref="aa955f337e407c5e56aa61ea5ebbb9037" args="(void)" -->
std::size_t&#160;</td><td class="memItemRight" valign="bottom"><b>getMotionCount</b> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3d8c325bbe68df6b09aa60e640b3fc88"></a><!-- doxytag: member="ompl::geometric::Discretization::getCellCount" ref="a3d8c325bbe68df6b09aa60e640b3fc88" args="(void)" -->
std::size_t&#160;</td><td class="memItemRight" valign="bottom"><b>getCellCount</b> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a47602ef0c42c4afa40f8655f899e94f6"></a><!-- doxytag: member="ompl::geometric::Discretization::freeMemory" ref="a47602ef0c42c4afa40f8655f899e94f6" args="(void)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classompl_1_1geometric_1_1Discretization.html#a47602ef0c42c4afa40f8655f899e94f6">freeMemory</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Free the memory for the motions contained in a grid. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6ac71e099d8a69dc6c2ee5ff1736a277"></a><!-- doxytag: member="ompl::geometric::Discretization::addMotion" ref="a6ac71e099d8a69dc6c2ee5ff1736a277" args="(Motion *motion, const Coord &amp;coord, double dist=0.0)" -->
unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classompl_1_1geometric_1_1Discretization.html#a6ac71e099d8a69dc6c2ee5ff1736a277">addMotion</a> (Motion *motion, const <a class="el" href="classompl_1_1geometric_1_1Discretization.html#a685f1b61176111a7a248f20350f421e7">Coord</a> &amp;coord, double dist=0.0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a motion to the grid containing motions. As a hint, <em>dist</em> specifies the distance to the goal from the state of the motion being added. The function returns the number of cells created to accommodate the new motion (0 or 1). The discretization takes ownership of the motion passed as argument, and the memory for the motion is freed by calling the function passed to the constructor. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8db183fa4a3231509336ffb7057805df"></a><!-- doxytag: member="ompl::geometric::Discretization::selectMotion" ref="a8db183fa4a3231509336ffb7057805df" args="(Motion *&amp;smotion, Cell *&amp;scell)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classompl_1_1geometric_1_1Discretization.html#a8db183fa4a3231509336ffb7057805df">selectMotion</a> (Motion *&amp;smotion, <a class="el" href="structompl_1_1Grid_1_1Cell.html">Cell</a> *&amp;scell)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Select a motion and the cell it is part of from the grid of motions. This is where preference is given to cells on the boundary of the grid. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acf20bd83a291fc4637177555187cee09"></a><!-- doxytag: member="ompl::geometric::Discretization::removeMotion" ref="acf20bd83a291fc4637177555187cee09" args="(Motion *motion, const Coord &amp;coord)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>removeMotion</b> (Motion *motion, const <a class="el" href="classompl_1_1geometric_1_1Discretization.html#a685f1b61176111a7a248f20350f421e7">Coord</a> &amp;coord)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a37dd9f85e52c63de7c29aac8a3a0da5a"></a><!-- doxytag: member="ompl::geometric::Discretization::updateCell" ref="a37dd9f85e52c63de7c29aac8a3a0da5a" args="(Cell *cell)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>updateCell</b> (<a class="el" href="structompl_1_1Grid_1_1Cell.html">Cell</a> *cell)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad1c76084b9e15e5282bbc27346816066"></a><!-- doxytag: member="ompl::geometric::Discretization::getGrid" ref="ad1c76084b9e15e5282bbc27346816066" args="(void) const " -->
const <a class="el" href="classompl_1_1GridB.html">Grid</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getGrid</b> (void) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa2dbdea494c26c5f65b700b2d218dfe0"></a><!-- doxytag: member="ompl::geometric::Discretization::getPlannerData" ref="aa2dbdea494c26c5f65b700b2d218dfe0" args="(base::PlannerData &amp;data, int tag) const " -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>getPlannerData</b> (<a class="el" href="classompl_1_1base_1_1PlannerData.html">base::PlannerData</a> &amp;data, int tag) const </td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename Motion&gt;<br/>
class ompl::geometric::Discretization&lt; Motion &gt;</h3>

<p>One-level discretization used for KPIECE. </p>

<p>Definition at line <a class="el" href="Discretization_8h_source.html#l00058">58</a> of file <a class="el" href="Discretization_8h_source.html">Discretization.h</a>.</p>
</div><hr/>The documentation for this class was generated from the following file:<ul>
<li>src/ompl/geometric/planners/kpiece/<a class="el" href="Discretization_8h_source.html">Discretization.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>