📄 classsoccertypes.html
字号:
<td><p>This method returns the string representation of a CommandT as is used in the Robocup Soccer Simulation <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>com</em> </td><td>CommandT that should be converted </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>pointer to the string (enough memory should be allocated) </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l01722">1722</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="namespace_3globalScope_4.html#a247a185">CMD_CATCH</a>, <a class="el" href="namespace_3globalScope_4.html#a247a184">CMD_CHANGEVIEW</a>, <a class="el" href="namespace_3globalScope_4.html#a247a181">CMD_DASH</a>, <a class="el" href="namespace_3globalScope_4.html#a247a180">CMD_ILLEGAL</a>, <a class="el" href="namespace_3globalScope_4.html#a247a186">CMD_KICK</a>, <a class="el" href="namespace_3globalScope_4.html#a247a187">CMD_MOVE</a>, <a class="el" href="namespace_3globalScope_4.html#a247a189">CMD_SAY</a>, <a class="el" href="namespace_3globalScope_4.html#a247a188">CMD_SENSEBODY</a>, <a class="el" href="namespace_3globalScope_4.html#a247a182">CMD_TURN</a>, <a class="el" href="namespace_3globalScope_4.html#a247a183">CMD_TURNNECK</a>, and <a class="el" href="SoccerTypes_8h-source.html#l00295">CommandT</a>. </td> </tr></table><a name="d18" doxytag="SoccerTypes::getGlobalAngleLine"></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> SoccerTypes::getGlobalAngleLine </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="SoccerTypes_8h.html#a240">ObjectT</a> </td> <td class="mdname" nowrap> <em>o</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="SoccerTypes_8h.html#a246">SideT</a> </td> <td class="mdname" nowrap> <em>s</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method returns the global angle of a lines on the field. The global angle differs for the left and right side. For both teams the line behind the opponent goal is seen with global angle 0. Only for the left team this is the right line and for the right team this is the left line. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>o</em> </td><td>one of the four line objects </td></tr><tr><td valign=top><em>s</em> </td><td>side on which the team was started </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>AngDeg global angle of this line. </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l01448">1448</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="Geometry_8h-source.html#l00052">AngDeg</a>, <a class="el" href="Geometry_8C-source.html#l00875">VecPosition::normalizeAngle</a>(), <a class="el" href="namespace_3globalScope_4.html#a240a30">OBJECT_LINE_B</a>, <a class="el" href="namespace_3globalScope_4.html#a240a28">OBJECT_LINE_L</a>, <a class="el" href="namespace_3globalScope_4.html#a240a29">OBJECT_LINE_R</a>, <a class="el" href="namespace_3globalScope_4.html#a240a31">OBJECT_LINE_T</a>, <a class="el" href="SoccerTypes_8h-source.html#l00102">ObjectT</a>, <a class="el" href="namespace_3globalScope_4.html#a246a178">SIDE_RIGHT</a>, <a class="el" href="SoccerTypes_8h-source.html#l00287">SideT</a>, and <a class="el" href="SoccerTypes_8h-source.html#l00089">UnknownAngleValue</a>.<p>Referenced by <a class="el" href="WorldModel_8C-source.html#l00790">WorldModel::getGlobalAngle</a>(), and <a class="el" href="Objects_8C-source.html#l00298">FixedObject::getGlobalAngle</a>(). </td> </tr></table><a name="d17" doxytag="SoccerTypes::getGlobalPositionFlag"></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> SoccerTypes::getGlobalPositionFlag </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="SoccerTypes_8h.html#a240">ObjectT</a> </td> <td class="mdname" nowrap> <em>o</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><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"><code> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method returns the global position on the field of a flag (a goal is also a flag). Since the global positions for both teams differ, the side of the agent team is also needed. Note that the global positions of the flags will not change in the second half. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>o</em> </td><td>flag of which global position should be determined </td></tr><tr><td valign=top><em>s</em> </td><td>side of your team. </td></tr><tr><td valign=top><em>dGoalWidth</em> </td><td>for some flags the goalWidth is necessary (default 14.02) </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd><a class="el" href="classVecPosition.html">VecPosition</a> representing the global position. x and y value are both UnknownDoubleValue when o is not a flag or goal. </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l01308">1308</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="Geometry_8C-source.html#l00542">VecPosition::getX</a>(), <a class="el" href="Geometry_8C-source.html#l00558">VecPosition::getY</a>(), <a class="el" href="SoccerTypes_8C-source.html#l01196">isFlag</a>(), <a class="el" href="SoccerTypes_8C-source.html#l01213">isGoal</a>(), <a class="el" href="namespace_3globalScope_4.html#a240a62">OBJECT_FLAG_B_0</a>, <a class="el" href="namespace_3globalScope_4.html#a240a63">OBJECT_FLAG_B_L_10</a>, <a class="el" href="namespace_3globalScope_4.html#a240a64">OBJECT_FLAG_B_L_20</a>, <a class="el" href="namespace_3globalScope_4.html#a240a65">OBJECT_FLAG_B_L_30</a>, <a class="el" href="namespace_3globalScope_4.html#a240a66">OBJECT_FLAG_B_L_40</a>, <a class="el" href="namespace_3globalScope_4.html#a240a67">OBJECT_FLAG_B_L_50</a>, <a class="el" href="namespace_3globalScope_4.html#a240a60">OBJECT_FLAG_B_R_10</a>, <a class="el" href="namespace_3globalScope_4.html#a240a59">OBJECT_FLAG_B_R_20</a>, <a class="el" href="namespace_3globalScope_4.html#a240a58">OBJECT_FLAG_B_R_30</a>, <a class="el" href="namespace_3globalScope_4.html#a240a57">OBJECT_FLAG_B_R_40</a>, <a class="el" href="namespace_3globalScope_4.html#a240a56">OBJECT_FLAG_B_R_50</a>, <a class="el" href="namespace_3globalScope_4.html#a240a84">OBJECT_FLAG_C</a>, <a class="el" href="namespace_3globalScope_4.html#a240a61">OBJECT_FLAG_C_B</a>, <a class="el" href="namespace_3globalScope_4.html#a240a39">OBJECT_FLAG_C_T</a>, <a class="el" href="namespace_3globalScope_4.html#a240a72">OBJECT_FLAG_G_L_B</a>, <a class="el" href="namespace_3globalScope_4.html#a240a74">OBJECT_FLAG_G_L_T</a>, <a class="el" href="namespace_3globalScope_4.html#a240a51">OBJECT_FLAG_G_R_B</a>, <a class="el" href="namespace_3globalScope_4.html#a240a49">OBJECT_FLAG_G_R_T</a>, <a class="el" href="namespace_3globalScope_4.html#a240a73">OBJECT_FLAG_L_0</a>, <a class="el" href="namespace_3globalScope_4.html#a240a68">OBJECT_FLAG_L_B</a>, <a class="el" href="namespace_3globalScope_4.html#a240a71">OBJECT_FLAG_L_B_10</a>, <a class="el" href="namespace_3globalScope_4.html#a240a70">OBJECT_FLAG_L_B_20</a>, <a class="el" href="namespace_3globalScope_4.html#a240a69">OBJECT_FLAG_L_B_30</a>, <a class="el" href="namespace_3globalScope_4.html#a240a32">OBJECT_FLAG_L_T</a>, <a class="el" href="namespace_3globalScope_4.html#a240a75">OBJECT_FLAG_L_T_10</a>, <a class="el" href="namespace_3globalScope_4.html#a240a76">OBJECT_FLAG_L_T_20</a>, <a class="el" href="namespace_3globalScope_4.html#a240a77">OBJECT_FLAG_L_T_30</a>, <a class="el" href="namespace_3globalScope_4.html#a240a80">OBJECT_FLAG_P_L_B</a>, <a class="el" href="namespace_3globalScope_4.html#a240a79">OBJECT_FLAG_P_L_C</a>, <a class="el" href="namespace_3globalScope_4.html#a240a78">OBJECT_FLAG_P_L_T</a>, <a class="el" href="namespace_3globalScope_4.html#a240a83">OBJECT_FLAG_P_R_B</a>, <a class="el" href="namespace_3globalScope_4.html#a240a82">OBJECT_FLAG_P_R_C</a>, <a class="el" href="namespace_3globalScope_4.html#a240a81">OBJECT_FLAG_P_R_T</a>, <a class="el" href="namespace_3globalScope_4.html#a240a50">OBJECT_FLAG_R_0</a>, <a class="el" href="namespace_3globalScope_4.html#a240a55">OBJECT_FLAG_R_B</a>, <a class="el" href="namespace_3globalScope_4.html#a240a52">OBJECT_FLAG_R_B_10</a>, <a class="el" href="namespace_3globalScope_4.html#a240a53">OBJECT_FLAG_R_B_20</a>, <a class="el" href="namespace_3globalScope_4.html#a240a54">OBJECT_FLAG_R_B_30</a>, <a class="el" href="namespace_3globalScope_4.html#a240a45">OBJECT_FLAG_R_T</a>, <a class="el" href="namespace_3globalScope_4.html#a240a48">OBJECT_FLAG_R_T_10</a>, <a class="el" href="namespace_3globalScope_4.html#a240a47">OBJECT_FLAG_R_T_20</a>, <a class="el" href="namespace_3globalScope_4.html#a240a46">OBJECT_FLAG_R_T_30</a>, <a class="el" href="namespace_3globalScope_4.html#a240a38">OBJECT_FLAG_T_0</a>, <a class="el" href="namespace_3globalScope_4.html#a240a37">OBJECT_FLAG_T_L_10</a>, <a class="el" href="namespace_3globalScope_4.html#a240a36">OBJECT_FLAG_T_L_20</a>, <a class="el" href="namespace_3globalScope_4.html#a240a35">OBJECT_FLAG_T_L_30</a>, <a class="el" href="namespace_3globalScope_4.html#a240a34">OBJECT_FLAG_T_L_40</a>, <a class="el" href="namespace_3globalScope_4.html#a240a33">OBJECT_FLAG_T_L_50</a>, <a class="el" href="namespace_3globalScope_4.html#a240a40">OBJECT_FLAG_T_R_10</a>, <a class="el" href="namespace_3globalScope_4.html#a240a41">OBJECT_FLAG_T_R_20</a>, <a class="el" href="namespace_3globalScope_4.html#a240a42">OBJECT_FLAG_T_R_30</a>, <a class="el" href="namespace_3globalScope_4.html#a240a43">OBJECT_FLAG_T_R_40</a>, <a class="el" href="namespace_3globalScope_4.html#a240a44">OBJECT_FLAG_T_R_50</a>, <a class="el" href="namespace_3globalScope_4.html#a240a25">OBJECT_GOAL_L</a>, <a class="el" href="namespace_3globalScope_4.html#a240a26">OBJECT_GOAL_R</a>, <a class="el" href="SoccerTypes_8h-source.html#l00102">ObjectT</a>, <a class="el" href="SoccerTypes_8h-source.html#l00078">PENALTY_AREA_LENGTH</a>, <a class="el" href="SoccerTypes_8h-source.html#l00079">PENALTY_AREA_WIDTH</a>, <a class="el" href="SoccerTypes_8h-source.html#l00075">PITCH_LENGTH</a>, <a class="el" href="SoccerTypes_8h-source.html#l00077">PITCH_MARGIN</a>, <a class="el" href="SoccerTypes_8h-source.html#l00076">PITCH_WIDTH</a>, <a class="el" href="Geometry_8C-source.html#l00572">VecPosition::setVecPosition</a>(), <a class="el" href="namespace_3globalScope_4.html#a246a178">SIDE_RIGHT</a>, <a class="el" href="SoccerTypes_8h-source.html#l00287">SideT</a>, and <a class="el" href="SoccerTypes_8h-source.html#l00088">UnknownDoubleValue</a>.<p>Referenced by <a class="el" href="Player_8C-source.html#l00278">Player::deMeer5_goalie</a>(), <a class="el" href="WorldModel_8C-source.html#l00658">WorldModel::getGlobalPosition</a>(), <a class="el" href="Objects_8C-source.html#l00287">FixedObject::getGlobalPosition</a>(), <a class="el" href="WorldModel_8C-source.html#l00928">WorldModel::getPosOpponentGoal</a>(), <a class="el" href="WorldModel_8C-source.html#l00938">WorldModel::getPosOwnGoal</a>(), <a class="el" href="WorldModel_8C-source.html#l00964">WorldModel::getRelAngleOpponentGoal</a>(), <a class="el" href="WorldModel_8C-source.html#l00948">WorldModel::getRelDistanceOpponentGoal</a>(), <a class="el" href="WorldModelHighLevel_8C-source.html#l00675">WorldModel::isInOwnPenaltyArea</a>(), and <a class="el" href="WorldModelHighLevel_8C-source.html#l00692">WorldModel::isInTheirPenaltyArea</a>(). </td> </tr></table><a name="d7" doxytag="SoccerTypes::getGoalOpponent"></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> SoccerTypes::getGoalOpponent </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><code> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method returns the object representing the opponent goal <dl compact><dt><b>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -