Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 727fa15453fcace956b835e2377d4269 > files > 545

player-doc-3.0.2-5.fc14.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">

<html>
<!-- $Id: header.html 8799 2010-06-28 04:12:42Z jpgr87 $ -->

<HEAD>


<meta HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=utf-8">
<meta name="keywords" content="stage, robot, simulation, player, player/stage">
<link href="doxygen.css" rel="stylesheet" type="text/css">

<style type="text/css">

.floatright { float: right; margin: 0 0 1em 1em; }

body {
  font-family: sans-serif;
  #font-family: Geneva, Verdana, Helvetica, Arial, sans-serif;
  background-color: #FFF;
  color:#000;
}


a:link { 
	color: #A00;
}

a:visited { 
	color: #800;
}

a { text-decoration: none; }
a:hover { text-decoration: underline; }


.timestamp { text-align:right; background-color: #DDD; font-size:75%;}

h1 { 
  font-size:160%; 
}

h2 {
  font-size:110%;
  #color: #FFF;
  #background-color: #666;
  #padding:3px;
}

h3 { text-align:left; }

img {
  border: 0;
}

ul.menu { 
    position:relative;
    left:-2.5em;
    margin-bottom:0px;
    margin-top:0px;
}

ul.menu1 { 
    position:relative;
    left:-2.1em;
    margin-bottom:0px;
    margin-top:0px;
}

li.menu { 
    list-style-type: none;
    position:relative;
    #left:-0.5em;
}


#sidebar { position: absolute; left:0px; padding:2em; top:0em; width:12em;}

#content { position: absolute; left:12em; top:0em; padding-left:3em; padding-right:3em; padding-bottom:2em; margin-top:1em; margin-right:2em; }

div.box { background-color:#EEE; border: 1px solid #000; padding: 0.5ex 0.4em 0.5ex 0.6em; margin:1em;  }
div.title { font-weight:bold; background-color:#eee; margin-bottom:2px;}

div.topbar { position: absolute; top:0px; left:9em; margin:1em; }

</style>

<TITLE>Player Manual</TITLE>

</HEAD>

<body>

<div id="sidebar"> 

<h2 style="text-align:center;">
<a href="index.html">
<img width=140 src="http://playerstage.sourceforge.net/images/player_button_v3.png" alt="Player logo"><br></a>
</h2>



<div class="box">
<div class=title>Player</div>

<ul class=menu>
<li class=menu><a href="index.html">Frontpage</a>
<li class=menu><a href="modules.html">Contents</a>
</ul>
</div>

<div class="box">
<div class=title>User</div>

<ul class=menu>
<li class=menu><a href="install.html">Installation</a>
<li class=menu><a href="start.html">Quick start</a>
<li class=menu><a href="supported_hardware.html">Supported&nbsp;devices</a>
<li class=menu><a href="group__tutorials.html">Tutorials</a>
<li class=menu><a href="group__utils.html">Utilities</a>
<li class=menu><a href="group__clientlibs.html">Client&nbsp;libraries</a>
<li class=menu><a href="http://playerstage.sourceforge.net/wiki/Basic_FAQ">FAQ</a>
<li class=menu><a href="help.html">Help</a>

</ul>
</div>

<div class=box>
<div class="title">Developer</div>
<ul class=menu>
<li class=menu><a href="architecture.html">Architecture</a>
<li class=menu><a href="group__libplayercore.html">libplayercore</a>
<ul class=menu1>
<li class=menu><a href="group__interfaces.html">interfaces</a></li>
</ul>
<li class=menu><a href="group__libplayerdrivers.html">libplayerdrivers</a>
<ul class=menu1>
<li class=menu><a href="group__drivers.html">drivers</a></li>
</ul>
<li class=menu><a href="group__libplayercommon.html">libplayercommon</a>
<li class=menu><a href="group__libplayerutils.html">libplayerutils</a>
<li class=menu><a href="group__libplayersd.html">libplayersd</a>
<li class=menu><a href="group__libplayertcp.html">libplayertcp</a>
<li class=menu><a href="group__libplayerxdr.html">libplayerxdr</a>
<li class=menu><a href="todo.html">TODO</a>
</ul>
</div>

<div class=box>
<!-- <a href="http://sourceforge.net"><img border=0 src="http://sourceforge.net/sflogo.php?group_id=42445&type=1"></a> -->
<div class="title">Online</div>
<a href="http://playerstage.sourceforge.net">Homepage</a><br>
<a href="http://sourceforge.net/project/showfiles.php?group_id=42445">Download</a><br>
<a href="http://sourceforge.net/projects/playerstage">Project</a><br>
<a href="http://sourceforge.net/tracker/?group_id=42445">Bugs</a><br>
<a href="http://sourceforge.net/mail/?group_id=42445">Help</a>
</div>


</div>

<div id="content" >
<!-- Generated by Doxygen 1.7.1 -->
<div class="header">
  <div class="headertitle">
<h1>amcl<br/>
<small>
[<a class="el" href="group__drivers.html">Drivers</a>]</small>
</h1>  </div>
</div>
<div class="contents">

<p>Adaptive Monte Carlo localization.  
<a href="#_details">More...</a></p>
<table class="memberdecls">
</table>
<p>Adaptive Monte Carlo localization. </p>
<p>The <code>amcl</code> driver implements the Adaptive Monte-Carlo Localization algorithm described by Dieter Fox.</p>
<p>At the conceptual level, the <code>amcl</code> driver maintains a probability distribution over the set of all possible robot poses, and updates this distribution using data from odometry, sonar and/or laser range-finders. The driver also requires a pre-defined map of the environment against which to compare observed sensor values.</p>
<p>At the implementation level, the <code>amcl</code> driver represents the probability distribution using a particle filter. The filter is "adaptive" because it dynamically adjusts the number of particles in the filter: when the robot's pose is highly uncertain, the number of particles is increased; when the robot's pose is well determined, the number of particles is decreased. The driver is therefore able make a trade-off between processing speed and localization accuracy.</p>
<p>As an example, consider the sequence of images shown below. This sequence shows the filter converging from an initial configuration in which the pose of the robot is entirely unknown to a final configuration in which the pose of the robot is well determined. At the same time, the number of particles in the filter decreases from 100,000 to less than 100. Convergence in this case is relatively slow.</p>
<div align="center">
<img src="amcl-phe200-0010.jpg" alt="amcl-phe200-0010.jpg"/>
<p><strong>t = 1 sec, approx 100,000 particles</strong></p></div>
<div align="center">
<img src="amcl-phe200-0400.jpg" alt="amcl-phe200-0400.jpg"/>
<p><strong>t = 40 sec, approx 1,000 particles</strong></p></div>
<div align="center">
<img src="amcl-phe200-0800.jpg" alt="amcl-phe200-0800.jpg"/>
<p><strong>t = 80 sec, approx 100 particles</strong></p></div>
<div align="center">
<img src="amcl-phe200-1200.jpg" alt="amcl-phe200-1200.jpg"/>
<p><strong>t = 120 sec, approx 100 particles</strong></p></div>
<p> The <code>amcl</code> driver has the the usual features -- and failures -- associated with simple Monte-Carlo Localization techniques:</p>
<ul>
<li>If the robot's initial pose is specified as being completely unknown, the driver's estimate will usually converge to correct pose. This assumes that the particle filter starts with a large number of particles (to cover the space of possible poses), and that the robot is driven some distance through the environment (to collect observations).</li>
<li>If the robot's initial pose is specified accurately, but incorrectly, or if the robot becomes lost (e.g., by picking it up and replacing it elsewhere) the driver's estimate will not converge on the correct pose. Such situations require the use of more advanced techniques that have not yet been implemented.</li>
</ul>
<p>The <code>amcl</code> driver also has some slightly unusual temporal behavior:</p>
<ul>
<li>When the number of particles in the filter is large, data may arrive from the sensors faster than it can be processed. When this happens, data is queued up for later processing, but the driver continues to generate an up-to-date estimate for the robot pose. Thus, for example, at time t = 10 sec, the driver may have only processed sensor readings up until time t = 5 sec, but will nevertheless generate an estimate (prediction) of where the robot is at t = 10 sec. The adaptive nature of the algorithm more-or-less guarantees that the driver will eventual "catch up": as more sensor readings are processed, the number of particles will generally decrease, and the sensor update step of the algorithm will run faster.</li>
</ul>
<dl class="user"><dt><b>Caveats</b></dt><dd></dd></dl>
<p>At the time of writing, this driver is still evolving. The sensor models, in particular, are currently over-simplified and under-parameterized (there are lots of magic numbers lurking about the place). Consequently, while this driver is known to work for certain hardware configurations (think Pioneer2DX with a SICKLMS200 laser range-finder), other configurations may require some refinement of the sensor models.</p>
<dl class="user"><dt><b>Provides</b></dt><dd></dd></dl>
<ul>
<li><a class="el" href="group__interface__localize.html">localize</a> : this interface provides a (sort of) representative sample of the current pose hypotheses, weighted by likelihood.</li>
<li><a class="el" href="group__interface__position2d.html">position2d</a> : this interface provides just the most-likely hypothesis, formatted as position data, which you can (at your peril) pretend came from a perfect odometry system</li>
</ul>
<dl class="user"><dt><b>Requires</b></dt><dd></dd></dl>
<p>The <code>amcl</code> driver requires the following interfaces, some of them named:</p>
<ul>
<li>"odometry" <a class="el" href="group__interface__position2d.html">position2d</a> : source of odometry information</li>
<li><a class="el" href="group__interface__laser.html">laser</a> : source of laser scans</li>
<li>"laser" <a class="el" href="group__interface__map.html">map</a> : a map in which to localize the robot, by fusing odometry and laser/sonar data.</li>
<li>In principle supported, but currently disabled are:<ul>
<li><a class="el" href="group__interface__fiducial.html">fiducial</a></li>
<li>"imu" <a class="el" href="group__interface__position2d.html">position2d</a></li>
<li><a class="el" href="group__interface__sonar.html">sonar</a></li>
<li><a class="el" href="group__interface__gps.html">gps</a></li>
<li><a class="el" href="group__interface__wifi.html">wifi</a></li>
</ul>
</li>
</ul>
<dl class="user"><dt><b>Configuration requests</b></dt><dd></dd></dl>
<ul>
<li>TODO</li>
</ul>
<dl class="user"><dt><b>Configuration file options</b></dt><dd></dd></dl>
<ul>
<li>Particle filter settings:<ul>
<li>odom_init (integer)<ul>
<li>Default: 1</li>
<li>Use the odometry device as the "action" sensor</li>
</ul>
</li>
<li>pf_min_samples (integer)<ul>
<li>Default: 100</li>
<li>Lower bound on the number of samples to maintain in the particle filter.</li>
</ul>
</li>
<li>pf_max_samples (integer)<ul>
<li>Default: 10000</li>
<li>Upper bound on the number of samples to maintain in the particle filter.</li>
</ul>
</li>
<li>pf_err (float)<ul>
<li>Default: 0.01</li>
<li>Control parameter for the particle set size. See notes below.</li>
</ul>
</li>
<li>pf_z (float)<ul>
<li>Default: 3</li>
<li>Control parameter for the particle set size. See notes below.</li>
</ul>
</li>
<li>init_pose (tuple: [length length angle])<ul>
<li>Default: [0 0 0] (m m rad)</li>
<li>Initial pose estimate (mean value) for the robot.</li>
</ul>
</li>
<li>init_pose_var (tuple: [length length angle])<ul>
<li>Default: [1 1 2pi] (m m rad)</li>
<li>Uncertainty in the initial pose estimate.</li>
</ul>
</li>
<li>update_thresh (tuple: [length angle])<ul>
<li>Default: [0.2 pi/6] (m rad)</li>
<li>Minimum change required in action sensor to force update in particle filter.</li>
</ul>
</li>
<li>odom_drift[0-2] (float tuples)<ul>
<li>Default:<ul>
<li>odom_drift[0] [0.2 0.0 0.0]</li>
<li>odom_drift[1] [0.0 0.2 0.0]</li>
<li>odom_drift[2] [0.2 0.0 0.2]</li>
</ul>
</li>
<li>Set the 3 rows of the covariance matrix used for odometric drift.</li>
</ul>
</li>
</ul>
</li>
<li>Laser settings:<ul>
<li>laser_pose (length tuple)<ul>
<li>Default: [0 0 0]</li>
<li>Pose of the laser sensor in the robot's coordinate system</li>
</ul>
</li>
<li>laser_max_beams (integer)<ul>
<li>Default: 6</li>
<li>Maximum number of range readings being used</li>
</ul>
</li>
<li>laser_range_max (length)<ul>
<li>Default: 8.192 m</li>
<li>Maximum range returned by laser</li>
</ul>
</li>
<li>laser_range_var (length)<ul>
<li>Default: 0.1 m</li>
<li>Variance in range data returned by laser</li>
</ul>
</li>
<li>laser_range_bad (float)<ul>
<li>Default 0.1</li>
<li>???</li>
</ul>
</li>
</ul>
</li>
<li>Debugging:<ul>
<li>enable_gui (integer)<ul>
<li>Default: 0</li>
<li>Set this to 1 to enable the built-in driver GUI (useful for debugging). Player must also be built with <code>configure</code> <code>--enable-rtkgui</code> for this option to have any effect.</li>
</ul>
</li>
</ul>
</li>
</ul>
<dl class="user"><dt><b>Notes</b></dt><dd></dd></dl>
<ul>
<li>Coordinate System: The origin of the global coordinate system corresponds to the center of occupancy grid map. Standard coordinate orientation is used; i.e., positive x is towards the right of the map, positive y towards the top of the map.</li>
</ul>
<ul>
<li>Number of particles: The number of particles in the filter can be controlled using the configuration file parameters <code>pf_err</code> and <code>pf_z</code>. Specifically, <code>pf_err</code> is the maximum allowed error between the true distribution and the estimated distribution, while <code>pf_z</code> is the upper standard normal quantile for (1 - p), where p is the probability that the error on the estimated distribution will be less than <code>pf_err</code>. If you dont know what that means, dont worry, I'm not exactly sure either. See Fox's paper for a more meaningful explanation.</li>
</ul>
<ul>
<li>Speed: Many factors affect the speed at which the <code>amcl</code> driver runs, but the following tips might be helpful:<ul>
<li>Reducing the number of laser range readings being used (<code>laser_max_beams</code> in the configuration file) will significantly increase driver speed, but may also lead to slower convergence and/or less accurate localization.</li>
<li>Increasing the allowed error <code>pf_err</code> and reducing the quantile <code>pf_z</code> will lead to smaller particle sets and will hence increase driver speed. This may also lead, however, to over-convergence. As a benchmark, this driver has been successfully deployed on a Pioneer2DX equipped with a SICK LMS200 and a 266MHz Mobile Pentium with 32Mb of RAM.</li>
</ul>
</li>
</ul>
<ul>
<li>Memory: The two key factors affecting memory usage are:<ul>
<li>The size and resolution of the map.</li>
<li>The maximum number of particles. As currently configured, the <code>amcl</code> driver will typically use 10 to 20Mb of memory. On embedded systems, where memory is at a premium, users may have to decrease the map resolution or the maximum number of particles to achieve acceptable preformance.</li>
</ul>
</li>
</ul>
<dl class="user"><dt><b>Example: Using the amcl driver with a Pioneer robot</b></dt><dd></dd></dl>
<p>The following configuration file illustrates the use of the <code>amcl</code> driver on a Pioneer robot equipped with a SICK LMS200 scanning laser range finder: </p>
<div class="fragment"><pre class="fragment">
driver
(
  name "p2os_position"
  provides ["odometry:::position2d:0"]
  port "/dev/ttyS0"
)
driver
(
  name "sicklms200"
  provides ["laser:0"]
  port "/dev/ttyS2"
)
driver
(
  name "mapfile"
  provides ["map:0"]
  resolution 0.05
  filename "mymap.pgm"
)
driver
(
  name "amcl"
  provides ["localize:0"]
  requires ["odometry:::position2d:0" "laser:0" "laser:::map:0"]
)
</pre></div><p> Naturally, the <code>port</code>, <code>filename</code> and <code>resolution</code> values should be changed to match your particular configuration.</p>
<dl class="author"><dt><b>Author:</b></dt><dd>Andrew Howard</dd></dl>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000024">Todo:</a></b></dt><dd><ul>
<li>Implement / update other sensor models</li>
</ul>
</dd></dl>
</div>
<!-- render the modification time of the source file -->


<div class="timestamp">
<hr>

<table style="width:100%;">
<tr>
<td style="text-align:left;">
Last updated 12 September 2005 21:38:45
<!--
<td style="text-align:right;">
<a href="http://validator.w3.org/check/referer"><img style="vertical-align:middle;border:0;width:88px;height:31px"
          src="http://www.w3.org/Icons/valid-html401"
          alt="Valid HTML 4.01!"></a>

 <a href="http://jigsaw.w3.org/css-validator/">
  <img style="vertical-align:middle;border:0;width:88px;height:31px"
       src="http://jigsaw.w3.org/css-validator/images/vcss"
       alt="Valid CSS!">
 </a>
-->
</tr>
</table>
</div>


</tr>
</table>

</BODY>
</HTML>