📄 params.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"><title>RVO: Parameter Description</title><link href="doxygen.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.5.5 --><div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="index.html">RVO Library Documentation</a> </div></div><div class="contents"><h1><a class="anchor" name="params">Parameter Description </a></h1>In this section, we give an overview of all parameters of all objects in the simulation.<h2><a class="anchor" name="global">Global Parameters</a></h2> <table border="0" cellpadding="3" width="100%"> <tr> <td valign="top" width="150"><strong>Parameter</strong></td> <td valign="top" width="150"><strong>Type (unit)</strong></td> <td valign="top"><strong>Meaning</strong></td> </tr> <tr> <td valign="top">timeStep</td> <td valign="top">float (time)</td> <td valign="top">The time step of the simulation.</td> </tr></table><h2><a class="anchor" name="goal">Goal Parameters</a></h2> <table border="0" cellpadding="3" width="100%"> <tr> <td valign="top" width="150"><strong>Parameter</strong></td> <td valign="top" width="150"><strong>Type (unit)</strong></td> <td valign="top"><strong>Meaning</strong></td> </tr> <tr> <td valign="top" width="150">position</td> <td valign="top" width="150">Vector2 (distance, distance)</td> <td valign="top">The position of the goal.</td> </tr></table><h2><a class="anchor" name="agent">Agent Parameters</a></h2> <table border="0" cellpadding="3" width="100%"> <tr> <td valign="top" width="150"><strong>Parameter</strong></td> <td valign="top" width="150"><strong>Type (unit)</strong></td> <td valign="top"><strong>Meaning</strong></td> </tr> <tr> <td valign="top" width="150">position</td> <td valign="top" width="150">Vector2 (distance, distance)</td> <td valign="top">The (current) position of the agent.</td> </tr> <tr> <td valign="top">goalID</td> <td valign="top">int</td> <td valign="top">The ID of the goal of the agent.</td> </tr> <tr> <td valign="top">velSampleCount</td> <td valign="top">int</td> <td valign="top">The number of candidate velocities the agent samples in each time step of the simulation. The higher the number, the more accurate the simulation. The running time of the simulation increases linearly with this number.</td> </tr> <tr> <td valign="top">neighborDist</td> <td valign="top">float (distance)</td> <td valign="top">The distance within which other agents and obstacles are taken into account in selecting a velocity. The larger this number, the larger the running time of the simulation. If the number is too low, the simulation will not be safe.</td> </tr> <tr> <td valign="top">maxNeighbors</td> <td valign="top">int</td> <td valign="top"> The maximum number of neighboring agents and obstacles that are taken into account in selecting a velocity. The larger this number, the larger the running time of the simulation. If the number is too low, the simulation will not be safe.</td> </tr> <tr> <td valign="top">radius</td> <td valign="top">float (distance)</td> <td valign="top">The radius of the agent.</td> </tr> <tr> <td valign="top">goalRadius</td> <td valign="top">float (distance)</td> <td valign="top">The radius of the goal region around the goal position of the agent. An agent is defined to have reached its goal when it is within a distance goalRadius from its goal position.</td> </tr> <tr> <td valign="top">prefSpeed</td> <td valign="top">float (distance/time)</td> <td valign="top">The preferred speed of the agent.</td> </tr> <tr> <td valign="top">maxSpeed</td> <td valign="top">float (distance/time)</td> <td valign="top">The maximum speed of the agent.</td> </tr> <tr> <td valign="top">safetyFactor</td> <td valign="top">float (distance)</td> <td valign="top">The weight that is given to the "time to collision" when penalizing a candidate velocity for the agent (vs. the distance to the preferred velocity). The higher this value, the "safer" or the "shyer" the agent is. The lower this value, the more "aggressive" and "reckless" the agent is. Its unit is distance.</td> </tr> <tr> <td valign="top">maxAccel</td> <td valign="top">float (distance/time<sup>2</sup>)</td> <td valign="top">The maximum acceleration of the agent.</td> </tr> <tr> <td valign="top" width="150">velocity</td> <td valign="top" width="150">Vector2 (distance/time, distance/time)</td> <td valign="top">The (current) velocity of the agent.</td> </tr> <tr> <td valign="top">orientation</td> <td valign="top">float (radians)</td> <td valign="top">The (current) orientation of the agent.</td> </tr> <tr> <td valign="top">class</td> <td valign="top">int</td> <td valign="top">The class of the agent. The class can be used by a visualizer to distinguish among different classes of agents. Its value does not have any effect on the simulation.</td> </tr></table><h2><a class="anchor" name="obst">Obstacle Parameters</a></h2> <table border="0" cellpadding="3" width="100%"> <tr> <td valign="top" width="150"><strong>Parameter</strong></td> <td valign="top" width="150"><strong>Type (unit)</strong></td> <td valign="top"><strong>Meaning</strong></td> </tr> <tr> <td valign="top" width="150">point1</td> <td valign="top" width="150">Vector2 (distance, distance)</td> <td valign="top">The first endpoint of the line segment obstacle.</td> </tr> <tr> <td valign="top" width="150">point2</td> <td valign="top" width="150">Vector2 (distance, distance)</td> <td valign="top">The second endpoint of the line segment obstacle.</td> </tr></table><h2><a class="anchor" name="roadmap">Roadmap Parameters</a></h2> <table border="0" cellpadding="3" width="100%"> <tr> <td valign="top" width="150"><strong>Parameter</strong></td> <td valign="top" width="150"><strong>Type (unit)</strong></td> <td valign="top"><strong>Meaning</strong></td> </tr> <tr> <td valign="top">automatic</td> <td valign="top">bool</td> <td valign="top">Indicates whether the mutually visible vertices of the roadmap should automatically be connected upon initializing the simulation.</td> </tr></table><h2><a class="anchor" name="vertex">Roadmap Vertex Parameters</a></h2> <table border="0" cellpadding="3" width="100%"> <tr> <td valign="top" width="150"><strong>Parameter</strong></td> <td valign="top" width="150"><strong>Type (unit)</strong></td> <td valign="top"><strong>Meaning</strong></td> </tr> <tr> <td valign="top" width="150">position</td> <td valign="top" width="150">Vector2 (distance, distance)</td> <td valign="top">The position of the roadmap vertex.</td> </tr></table><h2><a class="anchor" name="edge">Roadmap Edge Parameters</a></h2> <table border="0" cellpadding="3" width="100%"> <tr> <td valign="top" width="150"><strong>Parameter</strong></td> <td valign="top" width="150"><strong>Type (unit)</strong></td> <td valign="top"><strong>Meaning</strong></td> </tr> <tr> <td valign="top">vertexID1</td> <td valign="top">int</td> <td valign="top">The ID of the first roadmap vertex of the edge.</td> </tr> <tr> <td valign="top">vertexID2</td> <td valign="top">int</td> <td valign="top">The ID of the second roadmap vertex of the edge.</td> </tr></table><p>Note that the edges are undirected. </div><hr size="1"><address style="text-align: right;"><small>Generated on Sun May 25 17:16:13 2008 for RVO by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -