classfixedobject.html
来自「仿真人工智能是指用人工的方法和技术」· HTML 代码 · 共 176 行
HTML
176 行
<!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>FixedObject 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>FixedObject Class Reference</h1><code>#include <<a class="el" href="Objects_8h-source.html">Objects.h</a>></code><p>Inheritance diagram for FixedObject:<p><center><img src="classFixedObject__inherit__graph.gif" border="0" usemap="#FixedObject__inherit__map" alt="Inheritance graph"></center><map name="FixedObject__inherit__map"><area href="classObject.html" shape="rect" coords="29,14,77,33" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for FixedObject:<p><center><img src="classFixedObject__coll__graph.gif" border="0" usemap="#FixedObject__coll__map" alt="Collaboration graph"></center><map name="FixedObject__coll__map"><area href="classObject.html" shape="rect" coords="107,144,155,163" alt=""><area href="classVecPosition.html" shape="rect" coords="14,14,91,32" alt=""><area href="classTime.html" shape="rect" coords="191,14,231,32" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classFixedObject-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><a class="el" href="classVecPosition.html">VecPosition</a> </td><td valign=bottom><a class="el" href="classFixedObject.html#a0">getGlobalPosition</a> (<a class="el" href="SoccerTypes_8h.html#a246">SideT</a> s, double dGoalWidth=14.02) const</td></tr><tr><td nowrap align=right valign=top><a class="el" href="Geometry_8h.html#a2">AngDeg</a> </td><td valign=bottom><a class="el" href="classFixedObject.html#a1">getGlobalAngle</a> (<a class="el" href="SoccerTypes_8h.html#a246">SideT</a> s)</td></tr><tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classFixedObject.html#a2">show</a> (ostream &os=cout)</td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Class FixedObject contains RoboCup information that is available for objects that cannot move (flags, goals, lines). No additional information is 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#l00122">122</a> of file <a class="el" href="Objects_8h-source.html">Objects.h</a>.<hr><h2>Member Function Documentation</h2><a name="a1" doxytag="FixedObject::getGlobalAngle"></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="Geometry_8h.html#a2">AngDeg</a> FixedObject::getGlobalAngle </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="SoccerTypes_8h.html#a246">SideT</a> </td> <td class="mdname1" valign="top" nowrap> <em>s</em> </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 methods returns the global angle of this fixed object in the world. Only works when the fixed object is a line. The angle for the left team rises clockwise, i.e. left=0, bottom=90, etc. For the right team this is counterclockwise: right=0, top=90, etc) <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>s</em> </td><td>side of agent (angles differ for left and right side) </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>global angle of this line in the world. </dl><p>Definition at line <a class="el" href="Objects_8C-source.html#l00298">298</a> of file <a class="el" href="Objects_8C-source.html">Objects.C</a>.<p>References <a class="el" href="Geometry_8h-source.html#l00052">AngDeg</a>, <a class="el" href="SoccerTypes_8C-source.html#l01448">SoccerTypes::getGlobalAngleLine</a>(), <a class="el" href="Objects_8C-source.html#l00102">Object::getType</a>(), and <a class="el" href="SoccerTypes_8h-source.html#l00287">SideT</a>. </td> </tr></table><a name="a0" doxytag="FixedObject::getGlobalPosition"></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> FixedObject::getGlobalPosition </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="SoccerTypes_8h.html#a246">SideT</a> </td> <td class="mdname" nowrap> <em>s</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>double </td> <td class="mdname" nowrap> <em>dGoalWidth</em> = 14.02</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"> const</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method returns the global position of this fixed object. Only works when the object type equals a flag or a goal. Furthermore the side of the agent has to be passed since the global positions differ for the left and the right side. For some flags the size of the goal is important. So this value can be passed also. Otherwise the default value is 14.02. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>s</em> </td><td>side of agent (global position differs for left and right side) </td></tr><tr><td valign=top><em>dGoalWidth</em> </td><td>width of a goal, needed for pole objects next to goal </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>global position of this fixed object. </dl><p>Definition at line <a class="el" href="Objects_8C-source.html#l00287">287</a> of file <a class="el" href="Objects_8C-source.html">Objects.C</a>.<p>References <a class="el" href="SoccerTypes_8C-source.html#l01308">SoccerTypes::getGlobalPositionFlag</a>(), and <a class="el" href="SoccerTypes_8h-source.html#l00287">SideT</a>. </td> </tr></table><a name="a2" doxytag="FixedObject::show"></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"> void FixedObject::show </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">ostream & </td> <td class="mdname1" valign="top" nowrap> <em>os</em> = cout </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method prints all the information about this FixedObject to the specified output stream <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>os</em> </td><td>output stream to print all relevant information to. </td></tr></table></dl><p>Reimplemented from <a class="el" href="classObject.html#a1">Object</a>.<p>Definition at line <a class="el" href="Objects_8C-source.html#l00266">266</a> of file <a class="el" href="Objects_8C-source.html">Objects.C</a>.<p>References <a class="el" href="SoccerTypes_8h-source.html#l00073">DEFAULT_TEAM_NAME</a>, <a class="el" href="Geometry_8C-source.html#l00625">VecPosition::getDirection</a>(), <a class="el" href="Geometry_8C-source.html#l00614">VecPosition::getMagnitude</a>(), <a class="el" href="SoccerTypes_8C-source.html#l00859">SoccerTypes::getObjectStr</a>(), <a class="el" href="SoccerTypes_8h-source.html#l00070">MAX_TEAM_NAME_LENGTH</a>, <a class="el" href="Objects_8h-source.html#l00060">Object::objectType</a>, <a class="el" href="Objects_8h-source.html#l00065">Object::posRelative</a>, <a class="el" href="Objects_8h-source.html#l00061">Object::timeLastSeen</a>, and <a class="el" href="Objects_8h-source.html#l00066">Object::timeRelativePosition</a>. </td> </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="Objects_8h-source.html">Objects.h</a><li><a class="el" href="Objects_8C-source.html">Objects.C</a></ul><hr><address><small>Generated on Thu Mar 7 00:37:54 2002 for UvA Trilearn 2001 by<a href="http://www.doxygen.org/index.html"><img src="doxygen.gif" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.12 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, © 1997-2001</small></address></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?