classdynamicobject.html
来自「仿真人工智能是指用人工的方法和技术」· HTML 代码 · 共 686 行 · 第 1/3 页
HTML
686 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>DynamicObject class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body bgcolor="#ffffff"><!-- Generated by Doxygen 1.2.12 --><center><a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center><hr><h1>DynamicObject Class Reference</h1><code>#include <<a class="el" href="Objects_8h-source.html">Objects.h</a>></code><p>Inheritance diagram for DynamicObject:<p><center><img src="classDynamicObject__inherit__graph.gif" border="0" usemap="#DynamicObject__inherit__map" alt="Inheritance graph"></center><map name="DynamicObject__inherit__map"><area href="classBallObject.html" shape="rect" coords="14,147,83,166" alt=""><area href="classPlayerObject.html" shape="rect" coords="107,147,190,166" alt=""><area href="classObject.html" shape="rect" coords="74,14,122,32" alt=""><area href="classAgentObject.html" shape="rect" coords="109,214,189,232" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for DynamicObject:<p><center><img src="classDynamicObject__coll__graph.gif" border="0" usemap="#DynamicObject__coll__map" alt="Collaboration graph"></center><map name="DynamicObject__coll__map"><area href="classObject.html" shape="rect" coords="205,151,253,169" alt=""><area href="classVecPosition.html" shape="rect" coords="30,13,107,32" alt=""><area href="classTime.html" shape="rect" coords="349,13,389,32" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classDynamicObject-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0><tr><td colspan=2><br><h2>Public Methods</h2></td></tr><tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classDynamicObject.html#a0">DynamicObject</a> ()</td></tr><tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classDynamicObject.html#a1">setRelativeDistanceChange</a> (double d, <a class="el" href="classTime.html">Time</a> time)</td></tr><tr><td nowrap align=right valign=top>double </td><td valign=bottom><a class="el" href="classDynamicObject.html#a2">getRelativeDistanceChange</a> () const</td></tr><tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classDynamicObject.html#a3">setRelativeAngleChange</a> (double d, <a class="el" href="classTime.html">Time</a> time)</td></tr><tr><td nowrap align=right valign=top>double </td><td valign=bottom><a class="el" href="classDynamicObject.html#a4">getRelativeAngleChange</a> () const</td></tr><tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classDynamicObject.html#a5">setTimeChangeInformation</a> (<a class="el" href="classTime.html">Time</a> time)</td></tr><tr><td nowrap align=right valign=top><a class="el" href="classTime.html">Time</a> </td><td valign=bottom><a class="el" href="classDynamicObject.html#a6">getTimeChangeInformation</a> () const</td></tr><tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classDynamicObject.html#a7">setGlobalVelocity</a> (<a class="el" href="classVecPosition.html">VecPosition</a> v, <a class="el" href="classTime.html">Time</a> time)</td></tr><tr><td nowrap align=right valign=top><a class="el" href="classVecPosition.html">VecPosition</a> </td><td valign=bottom><a class="el" href="classDynamicObject.html#a8">getGlobalVelocity</a> () const</td></tr><tr><td nowrap align=right valign=top>double </td><td valign=bottom><a class="el" href="classDynamicObject.html#a9">getSpeed</a> () const</td></tr><tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classDynamicObject.html#a10">setTimeGlobalVelocity</a> (<a class="el" href="classTime.html">Time</a> time)</td></tr><tr><td nowrap align=right valign=top><a class="el" href="classTime.html">Time</a> </td><td valign=bottom><a class="el" href="classDynamicObject.html#a11">getTimeGlobalVelocity</a> () const</td></tr><tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr><tr><td nowrap align=right valign=top><a class="el" href="classVecPosition.html">VecPosition</a> </td><td valign=bottom><a class="el" href="classDynamicObject.html#n0">vecGlobalVelocity</a></td></tr><tr><td nowrap align=right valign=top><a class="el" href="classTime.html">Time</a> </td><td valign=bottom><a class="el" href="classDynamicObject.html#n1">timeGlobalVelocity</a></td></tr><tr><td nowrap align=right valign=top>double </td><td valign=bottom><a class="el" href="classDynamicObject.html#n2">dRelativeDistanceChange</a></td></tr><tr><td nowrap align=right valign=top>double </td><td valign=bottom><a class="el" href="classDynamicObject.html#n3">dRelativeAngleChange</a></td></tr><tr><td nowrap align=right valign=top><a class="el" href="classTime.html">Time</a> </td><td valign=bottom><a class="el" href="classDynamicObject.html#n4">timeChangeInformation</a></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Class DynamicObject contains RoboCup information that is available for objects that can move (players, ball). Different variables are added to the superclass <a class="el" href="classObject.html">Object</a> <p><p>Definition at line <a class="el" href="Objects_8h-source.html#l00139">139</a> of file <a class="el" href="Objects_8h-source.html">Objects.h</a>.<hr><h2>Constructor & Destructor Documentation</h2><a name="a0" doxytag="DynamicObject::DynamicObject"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> DynamicObject::DynamicObject </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This is the constructor for DynamicObject. A DynamicObject is created with all the variables initialized by (illegal) default values <p>Definition at line <a class="el" href="Objects_8C-source.html#l00309">309</a> of file <a class="el" href="Objects_8C-source.html">Objects.C</a>.<p>References <a class="el" href="Objects_8h-source.html#l00149">dRelativeAngleChange</a>, <a class="el" href="Objects_8h-source.html#l00148">dRelativeDistanceChange</a>, and <a class="el" href="SoccerTypes_8h-source.html#l00088">UnknownDoubleValue</a>. </td> </tr></table><hr><h2>Member Function Documentation</h2><a name="a8" doxytag="DynamicObject::getGlobalVelocity"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classVecPosition.html">VecPosition</a> DynamicObject::getGlobalVelocity </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method returns the global velocity of this object. The time of this information is related to the time returned by <a class="el" href="classDynamicObject.html#a11">getTimeGlobalVelocity</a>(). <dl compact><dt><b>Returns: </b><dd>global position of this object </dl><p>Definition at line <a class="el" href="Objects_8C-source.html#l00333">333</a> of file <a class="el" href="Objects_8C-source.html">Objects.C</a>.<p>References <a class="el" href="Objects_8h-source.html#l00144">vecGlobalVelocity</a>.<p>Referenced by <a class="el" href="WorldModel_8C-source.html#l00554">WorldModel::getAgentGlobalVelocity</a>(), <a class="el" href="WorldModel_8C-source.html#l00634">WorldModel::getBallDirection</a>(), <a class="el" href="WorldModel_8C-source.html#l00627">WorldModel::getBallSpeed</a>(), and <a class="el" href="WorldModel_8C-source.html#l00689">WorldModel::getGlobalVelocity</a>(). </td> </tr></table><a name="a4" doxytag="DynamicObject::getRelativeAngleChange"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> double DynamicObject::getRelativeAngleChange </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method returns the relative angle change of this object. This information belongs to the server time that is returned by <a class="el" href="classDynamicObject.html#a6">getTimeChangeInformation</a>(). <dl compact><dt><b>Returns: </b><dd>relative angle change of object in the last cycle </dl><p>Definition at line <a class="el" href="Objects_8C-source.html#l00403">403</a> of file <a class="el" href="Objects_8C-source.html">Objects.C</a>.<p>References <a class="el" href="Objects_8h-source.html#l00149">dRelativeAngleChange</a>.<p>Referenced by <a class="el" href="WorldModelUpdate_8C-source.html#l01533">WorldModel::calculateVelocityDynamicObject</a>(), <a class="el" href="WorldModelUpdate_8C-source.html#l01386">WorldModel::checkParticlesBall</a>(), and <a class="el" href="WorldModelUpdate_8C-source.html#l01319">WorldModel::initParticlesBall</a>(). </td> </tr></table><a name="a2" doxytag="DynamicObject::getRelativeDistanceChange"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> double DynamicObject::getRelativeDistanceChange </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method returns the relative distance change of this object. Note that this value is zero when object is at the same distance, but at a complete different angle. This occurs when an object has moved a lot in one cycle. This information belongs to the server time that is returned by <a class="el" href="classDynamicObject.html#a6">getTimeChangeInformation</a>(). <dl compact><dt><b>Returns: </b><dd>relative distance change of object in the last cycle </dl><p>Definition at line <a class="el" href="Objects_8C-source.html#l00382">382</a> of file <a class="el" href="Objects_8C-source.html">Objects.C</a>.<p>References <a class="el" href="Objects_8h-source.html#l00148">dRelativeDistanceChange</a>.<p>Referenced by <a class="el" href="WorldModelUpdate_8C-source.html#l01533">WorldModel::calculateVelocityDynamicObject</a>(), <a class="el" href="WorldModelUpdate_8C-source.html#l01386">WorldModel::checkParticlesBall</a>(), and <a class="el" href="WorldModelUpdate_8C-source.html#l01319">WorldModel::initParticlesBall</a>(). </td> </tr></table><a name="a9" doxytag="DynamicObject::getSpeed"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> double DynamicObject::getSpeed </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method returns the speed of this object. The speed is the magnitude of the global velocity of the object <dl compact><dt><b>Returns: </b><dd>speed of this object (zero for non-moving objects) </dl><p>Definition at line <a class="el" href="Objects_8C-source.html#l00341">341</a> of file <a class="el" href="Objects_8C-source.html">Objects.C</a>.<p>References <a class="el" href="Geometry_8C-source.html#l00614">VecPosition::getMagnitude</a>(), and <a class="el" href="Objects_8h-source.html#l00144">vecGlobalVelocity</a>.<p>Referenced by <a class="el" href="WorldModel_8C-source.html#l00561">WorldModel::getAgentSpeed</a>(). </td> </tr></table><a name="a6" doxytag="DynamicObject::getTimeChangeInformation"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?