Protocol


Server Client
<---------- 接続要求送信 <connect> <type>Client</type> <protocol_version>1.0</protocol_version> <nickname>[nickname]</nickname> <rc_id>[rcid]</rc_id> <vt_id>[vtid]</vt_id> </connect>
----------> 接続許可受信 <connect>true</connect>
----------> 接続要求受信 <connect> <type>Client</type> <protocol_version>1.0</protocol_version> <movement_mode>wheel_velocities</movement_mode> </connect>
<---------- 接続許可送信 <connect>true</connect>
----------> 世界情報受信 <WorldData> <time>5.25131</time> <agent_id>0</agent_id> <nickname>player1</nickname> <status>found</status> <max_agent>2</max_agent> <playMode>play on</playMode> <score> <yellow>0</yellow> <blue>0</blue> </score> <wheel_velocities> <right>0</right> <left>0</left> </wheel_velocities> <ball> <dist>117</dist> <angle>39</angle> </ball> <teamMate> <id>1</id> <nickname>player2</nickname> <status>found</status> <dist>89</dist> <angle>48</angle> <orientation>107</orientation> </teamMate> <opponent> <id>5</id> <nickname>player7</nickname> <status>found</status> <dist>167</dist> <angle>46</angle> <orientation>161</orientation> </opponent> <flag> <id>top_left_pole</id> <dist>152</dist> <angle>-59</angle> </flag> <flag> <id>bottom_left_pole</id> <dist>116</dist> <angle>-83</angle> </flag> <flag> <id>top_right_pole</id> <dist>310</dist> <angle>57</angle> </flag> <flag> <id>bottom_right_pole</id> <dist>294</dist> <angle>69</angle> </flag> <flag> <id>top_left_corner</id> <dist>236</dist> <angle>-40</angle> </flag> <flag> <id>bottom_left_corner</id> <dist>126</dist> <angle>-133</angle> </flag> <flag> <id>top_right_corner</id> <dist>359</dist> <angle>41</angle> </flag> <flag> <id>bottom_right_corner</id> <dist>298</dist> <angle>89</angle> </flag> <flag> <id>top_left_goal</id> <dist>148</dist> <angle>-8</angle> </flag> <flag> <id>bottom_left_goal</id> <dist>14</dist> <angle>85</angle> </flag> <flag> <id>top_right_goal</id> <dist>224</dist> <angle>36</angle> </flag> <flag> <id>bottom_right_goal</id> <dist>169</dist> <angle>78</angle> </flag> <flag> <id>top_left_small_area</id> <dist>83</dist> <angle>-74</angle> </flag> <flag> <id>bottom_left_small_area</id> <dist>128</dist> <angle>-48</angle> </flag> <flag> <id>top_right_small_area</id> <dist>259</dist> <angle>68</angle> </flag> <flag> <id>bottom_right_small_area</id> <dist>277</dist> <angle>55</angle> </flag> <flag> <id>middle_center</id> <dist>117</dist> <angle>39</angle> </flag> <flag> <id>top_center</id> <dist>229</dist> <angle>11</angle> </flag> <flag> <id>bottom_center</id> <dist>112</dist> <angle>112</angle> </flag> </WorldData>
<---------- 命令送信 <command> <kick> <angle>0.1</angle> <force>1</force> </kick> </command>
----------> 世界情報受信 ...
<---------- 命令送信 ...
----------> 世界情報受信 ...
<---------- 命令送信 ...
----------> 世界情報受信 ...
<---------- 命令送信 ...