classobject.html
来自「仿真人工智能是指用人工的方法和技术」· HTML 代码 · 共 1,188 行 · 第 1/4 页
HTML
1,188 行
</td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method returns the relative position of this object. The time of this information is related to the time returned by <a class="el" href="classObject.html#a11">getTimeRelativePosition</a>(), but is not checked. So if you want to know the relevance of this position use this method. <dl compact><dt><b>Returns: </b><dd>relative position of this object </dl><p>Definition at line <a class="el" href="Objects_8C-source.html#l00138">138</a> of file <a class="el" href="Objects_8C-source.html">Objects.C</a>.<p>References <a class="el" href="Objects_8h-source.html#l00065">posRelative</a>.<p>Referenced by <a class="el" href="WorldModel_8C-source.html#l00716">WorldModel::getRelativePosition</a>(). </td> </tr></table><a name="a19" doxytag="Object::getTimeGlobalPosDerivedFromSee"></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="classTime.html">Time</a> Object::getTimeGlobalPosDerivedFromSee </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 time that the global position was calculated using a see message. <dl compact><dt><b>Returns: </b><dd>time of the global position of this object during the last see </dl><p>Definition at line <a class="el" href="Objects_8C-source.html#l00235">235</a> of file <a class="el" href="Objects_8C-source.html">Objects.C</a>.<p>References <a class="el" href="Objects_8h-source.html#l00068">timeGlobalPosDerivedFromSee</a>.<p>Referenced by <a class="el" href="WorldModelUpdate_8C-source.html#l01254">WorldModel::calculateStateBall</a>(), and <a class="el" href="WorldModelUpdate_8C-source.html#l01947">WorldModel::calculateStateBall2</a>(). </td> </tr></table><a name="a15" doxytag="Object::getTimeGlobalPosition"></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="classTime.html">Time</a> Object::getTimeGlobalPosition </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 time that corresponds to the global position of this object. <dl compact><dt><b>Returns: </b><dd>time of the global position of this object </dl><p>Definition at line <a class="el" href="Objects_8C-source.html#l00194">194</a> of file <a class="el" href="Objects_8C-source.html">Objects.C</a>.<p>References <a class="el" href="Objects_8h-source.html#l00064">timeGlobalPosition</a>.<p>Referenced by <a class="el" href="WorldModel_8C-source.html#l00643">WorldModel::getTimeGlobalPosition</a>(), <a class="el" href="WorldModelUpdate_8C-source.html#l00410">WorldModel::updateAll</a>(), and <a class="el" href="WorldModelUpdate_8C-source.html#l00896">WorldModel::updateObjectRelativeFromGlobal</a>(). </td> </tr></table><a name="a21" doxytag="Object::getTimeLastSeen"></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="classTime.html">Time</a> Object::getTimeLastSeen </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 time that corresponds to the time this object was located in the last see message. <dl compact><dt><b>Returns: </b><dd>time of the last see message that was used to update this object </dl><p>Definition at line <a class="el" href="Objects_8C-source.html#l00253">253</a> of file <a class="el" href="Objects_8C-source.html">Objects.C</a>.<p>References <a class="el" href="Objects_8h-source.html#l00061">timeLastSeen</a>.<p>Referenced by <a class="el" href="WorldModel_8C-source.html#l00903">WorldModel::getTimeLastSeen</a>(), <a class="el" href="WorldModelHighLevel_8C-source.html#l00574">WorldModel::isVisible</a>(), <a class="el" href="WorldModelUpdate_8C-source.html#l01702">WorldModel::mapUnknownPlayers</a>(), <a class="el" href="WorldModel_8C-source.html#l01150">WorldModel::show</a>(), and <a class="el" href="WorldModel_8C-source.html#l01185">WorldModel::showObjects</a>(). </td> </tr></table><a name="a11" doxytag="Object::getTimeRelativePosition"></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="classTime.html">Time</a> Object::getTimeRelativePosition </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 time that corresponds to the relative position of this object. <dl compact><dt><b>Returns: </b><dd>time of the relative position of this object </dl><p>Definition at line <a class="el" href="Objects_8C-source.html#l00155">155</a> of file <a class="el" href="Objects_8C-source.html">Objects.C</a>.<p>References <a class="el" href="Objects_8h-source.html#l00066">timeRelativePosition</a>.<p>Referenced by <a class="el" href="WorldModelUpdate_8C-source.html#l01319">WorldModel::initParticlesBall</a>(). </td> </tr></table><a name="a6" doxytag="Object::getType"></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="SoccerTypes_8h.html#a240">ObjectT</a> Object::getType </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 type of this object. <dl compact><dt><b>Returns: </b><dd>type of this object </dl><p>Definition at line <a class="el" href="Objects_8C-source.html#l00102">102</a> of file <a class="el" href="Objects_8C-source.html">Objects.C</a>.<p>References <a class="el" href="SoccerTypes_8h-source.html#l00102">ObjectT</a>, and <a class="el" href="Objects_8h-source.html#l00060">objectType</a>.<p>Referenced by <a class="el" href="WorldModel_8C-source.html#l00502">WorldModel::getAgentObjectType</a>(), <a class="el" href="Objects_8C-source.html#l00298">FixedObject::getGlobalAngle</a>(), <a class="el" href="WorldModel_8C-source.html#l00110">WorldModel::getObjectPtrFromType</a>(), <a class="el" href="WorldModelHighLevel_8C-source.html#l00786">WorldModel::getOffsideX</a>(), <a class="el" href="WorldModel_8C-source.html#l00835">WorldModel::getOppGoalieType</a>(), <a class="el" href="WorldModel_8C-source.html#l00873">WorldModel::getOwnGoalieType</a>(), and <a class="el" href="WorldModelUpdate_8C-source.html#l01702">WorldModel::mapUnknownPlayers</a>(). </td> </tr></table><a name="a12" doxytag="Object::setGlobalPosition"></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"> bool Object::setGlobalPosition </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classVecPosition.html">VecPosition</a> </td> <td class="mdname" nowrap> <em>p</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classTime.html">Time</a> </td> <td class="mdname" nowrap> <em>time</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method sets the global position and the time this information was calculated. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>p</em> </td><td>new global position </td></tr><tr><td valign=top><em>time</em> </td><td>time global position was received </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether the values were set </dl><p>Definition at line <a class="el" href="Objects_8C-source.html#l00165">165</a> of file <a class="el" href="Objects_8C-source.html">Objects.C</a>.<p>References <a class="el" href="Objects_8h-source.html#l00063">posGlobal</a>, and <a class="el" href="Objects_8C-source.html#l00185">setTimeGlobalPosition</a>().<p>Referenced by <a class="el" href="WorldModelUpdate_8C-source.html#l00232">WorldModel::processPerfectHearInfo</a>(), <a class="el" href="WorldModelUpdate_8C-source.html#l00207">WorldModel::processPerfectHearInfoBall</a>(), <a class="el" href="WorldModelUpdate_8C-source.html#l00063">WorldModel::processSeeGlobalInfo</a>(), <a class="el" href="WorldModelUpdate_8C-source.html#l00659">WorldModel::updateAgentAndBallAfterSense</a>(), <a class="el" href="WorldModelUpdate_8C-source.html#l00552">WorldModel::updateAgentObjectAfterSee</a>(), <a class="el" href="WorldModelUpdate_8C-source.html#l00781">WorldModel::updateBallAfterKick</a>(), <a class="el" href="WorldModelUpdate_8C-source.html#l00839">WorldModel::updateBallForCollision</a>(), <a class="el" href="WorldModelUpdate_8C-source.html#l00579">WorldModel::updateDynamicObjectAfterSee</a>(), and <a class="el" href="WorldModelUpdate_8C-source.html#l00813">WorldModel::updateDynamicObjectForNextCycle</a>(). </td> </tr></table><a name="a16" doxytag="Object::setGlobalPositionLastSee"></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"> bool Object::setGlobalPositionLastSee </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classVecPosition.html">VecPosition</a> </td> <td class="mdname" nowrap> <em>p</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classTime.html">Time</a> </td> <td class="mdname" nowrap> <em>time</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method sets the global position calculated using the last see message and the time of this see message. This opposed to the "normal" global position that is also updated when no see message has arrived in a new cycle. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>p</em> </td><td>new global position </td></tr><tr><td valign=top><em>time</em> </td><td>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?