⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 class_r_v_o_1_1_r_v_o_simulator.html

📁 多机器人路径规划算法
💻 HTML
📖 第 1 页 / 共 5 页
字号:
      <table class="memname">        <tr>          <td class="memname">int RVO::RVOSimulator::addObstacle           </td>          <td>(</td>          <td class="paramtype">const <a class="el" href="class_r_v_o_1_1_vector2.html">Vector2</a> &amp;&nbsp;</td>          <td class="paramname"> <em>point1</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">const <a class="el" href="class_r_v_o_1_1_vector2.html">Vector2</a> &amp;&nbsp;</td>          <td class="paramname"> <em>point2</em></td><td>&nbsp;</td>        </tr>        <tr>          <td></td>          <td>)</td>          <td></td><td></td><td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p>Adds a line segment obstacle to the simulation. The line segment may not intersect previously added line segments in their interior. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>point1</em>&nbsp;</td><td>The position of the first endpoint of the line segment obstacle </td></tr>    <tr><td valign="top"></td><td valign="top"><em>point2</em>&nbsp;</td><td>The position of the second endpoint of the line segment obstacle </td></tr>  </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>The function returns the ID of the obstacle that has been added. It returns an errorcode when the function is called after the simulation has been initialized. </dd></dl></div></div><p><a class="anchor" name="ed6d7b2d27b469e61deb6ecb7c6fae60"></a><!-- doxytag: member="RVO::RVOSimulator::setRoadmapAutomatic" ref="ed6d7b2d27b469e61deb6ecb7c6fae60" args="(bool automatic=true)" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void RVO::RVOSimulator::setRoadmapAutomatic           </td>          <td>(</td>          <td class="paramtype">bool&nbsp;</td>          <td class="paramname"> <em>automatic</em> = <code>true</code>          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p>Sets whether the mutually visible vertices of the roadmap should automatically be connected by edges when the simulation is initialized. Default is false. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>automatic</em>&nbsp;</td><td>If true, the mutually visible vertices will be connected in addition to manually specified edges. If false, no edges will created in addition to the manually specified ones. </td></tr>  </table></dl></div></div><p><a class="anchor" name="821b8c6f524c7eda2f54f81ba225a467"></a><!-- doxytag: member="RVO::RVOSimulator::addRoadmapVertex" ref="821b8c6f524c7eda2f54f81ba225a467" args="(const Vector2 &amp;position)" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">int RVO::RVOSimulator::addRoadmapVertex           </td>          <td>(</td>          <td class="paramtype">const <a class="el" href="class_r_v_o_1_1_vector2.html">Vector2</a> &amp;&nbsp;</td>          <td class="paramname"> <em>position</em>          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p>Adds a vertex to the roadmap of environment. The roadmap is used for global planning for the agents around obstacles. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>position</em>&nbsp;</td><td>The position of the roadmap vertex </td></tr>  </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>The function returns the ID of the roadmap vertex that has been added. It returns an errorcode when the function is called after the simulation has been initialized. </dd></dl></div></div><p><a class="anchor" name="a00529f80bf422bc5a12844399993cf7"></a><!-- doxytag: member="RVO::RVOSimulator::addRoadmapEdge" ref="a00529f80bf422bc5a12844399993cf7" args="(int vertexID1, int vertexID2)" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">int RVO::RVOSimulator::addRoadmapEdge           </td>          <td>(</td>          <td class="paramtype">int&nbsp;</td>          <td class="paramname"> <em>vertexID1</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">int&nbsp;</td>          <td class="paramname"> <em>vertexID2</em></td><td>&nbsp;</td>        </tr>        <tr>          <td></td>          <td>)</td>          <td></td><td></td><td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p>Adds an edge between two vertices of the roadmap. The roadmap is undirected. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>vertexID1</em>&nbsp;</td><td>The ID of the first vertex of the edge </td></tr>    <tr><td valign="top"></td><td valign="top"><em>vertexID2</em>&nbsp;</td><td>The ID of the second vertex of the edge </td></tr>  </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>The function returns <a class="el" href="_r_v_o_simulator_8h.html#9434ab35beac846cb175acd06bb48c1a">RVO_SUCCESS</a> when successful, and an errorcode when the function is called after the simulation has been initialized. </dd></dl></div></div><p><a class="anchor" name="4db589555c45186b6ac1c50f94c4cd95"></a><!-- doxytag: member="RVO::RVOSimulator::initSimulation" ref="4db589555c45186b6ac1c50f94c4cd95" args="()" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void RVO::RVOSimulator::initSimulation           </td>          <td>(</td>          <td class="paramtype">void&nbsp;</td>          <td class="paramname">          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p>Processes the input (goals, agents, obstacles and roadmap) of the simulation. After initialization, no content can be added anymore to the environment. </div></div><p><a class="anchor" name="1bf620a40a55daa9207cfbb3a1feea5c"></a><!-- doxytag: member="RVO::RVOSimulator::doStep" ref="1bf620a40a55daa9207cfbb3a1feea5c" args="()" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">int RVO::RVOSimulator::doStep           </td>          <td>(</td>          <td class="paramname">          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p>Causes the simulator to take another simulation step. Modifies position, velocity and orientation of agents. Updates the global time of the simulation, and sets a 'reached goal' flag when all of the agents have reached their goal. <dl class="return" compact><dt><b>Returns:</b></dt><dd>The function returns <a class="el" href="_r_v_o_simulator_8h.html#9434ab35beac846cb175acd06bb48c1a">RVO_SUCCESS</a> on success, and an errorcode when the simulation has not been initialized, or when the global parameters have not been set. </dd></dl></div></div><p><a class="anchor" name="e6feb9aeb0acd4a6b773b80d928cdd89"></a><!-- doxytag: member="RVO::RVOSimulator::getReachedGoal" ref="e6feb9aeb0acd4a6b773b80d928cdd89" args="() const " --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">bool RVO::RVOSimulator::getReachedGoal           </td>          <td>(</td>          <td class="paramname">          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"> const<code> [inline]</code></td>        </tr>      </table></div><div class="memdoc"><p><dl class="return" compact><dt><b>Returns:</b></dt><dd>The function returns true when all agents have reached their goal. Returns false otherwise. </dd></dl></div></div><p><a class="anchor" name="ba7c0330e2e539a58fec59d5d40d2ade"></a><!-- doxytag: member="RVO::RVOSimulator::getGlobalTime" ref="ba7c0330e2e539a58fec59d5d40d2ade" args="() const " --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">float RVO::RVOSimulator::getGlobalTime           </td>          <td>(</td>          <td class="paramname">          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"> const<code> [inline]</code></td>        </tr>      </table></div><div class="memdoc"><p><dl class="return" compact><dt><b>Returns:</b></dt><dd>The function returns the current global time of the simulation. Is initially 0. </dd></dl></div></div><p><a class="anchor" name="f4e13e2b336c01626fdc3d9693402625"></a><!-- doxytag: member="RVO::RVOSimulator::getTimeStep" ref="f4e13e2b336c01626fdc3d9693402625" args="() const " --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">float RVO::RVOSimulator::getTimeStep           </td>          <td>(</td>          <td class="paramname">          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"> const<code> [inline]</code></td>        </tr>      </table></div><div class="memdoc"><p><dl class="return" compact><dt><b>Returns:</b></dt><dd>The function returns the currently set time step of the simulation. </dd></dl></div></div><p><a class="anchor" name="8f17c944e96b256d1a5e731817fc7f75"></a><!-- doxytag: member="RVO::RVOSimulator::setTimeStep" ref="8f17c944e96b256d1a5e731817fc7f75" args="(float stepSize)" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void RVO::RVOSimulator::setTimeStep           </td>          <td>(</td>          <td class="paramtype">float&nbsp;</td>          <td class="paramname"> <em>stepSize</em>          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"><code> [inline]</code></td>        </tr>      </table></div><div class="memdoc"><p>Sets the time step of the simulation. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>stepSize</em>&nbsp;</td><td>The new time step of the simulation. </td></tr>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -