robocup uva老版本代碼改寫

老代碼Uva或者二進制不能鏈接,解決問題看這裏:http://sourceforge.net/forum/forum.php?thread_id=2055268&forum_id=76439php

針對這個問題的解答,我摘錄到這裏css

Almost all past binaries and source code are not compatible with the version 12 simulator. This problem is caused by overflow of an array that keeps heterogeneous player types. If you want to run old binaries that cannot deal with the number of player types correctly, you need to change the following parameters in ~/.rcssserver/player.conf.html

player::player_types = 7 (default : 18)
player::pt_max = 3 (default : 1)
player::allow_mult_default_type = true default : false)數組

翻譯爲:.net

幾乎全部過去的二進制可執行文件和源代碼和版本12的模擬器不兼容。 這個問題是有一個保存異構球員類型的數組越界所引發的。若是你想要與你運行那些不能正確處理隊員類型數目的二進制文件,你須要修改~/.rcssserver/player.conf(即主目錄下隱藏文件夾rcssserver下的player.conf)的以下參數翻譯

player::player_types = 7 (default : 18)
player::pt_max = 3 (default : 1)
player::allow_mult_default_type = true default : false)code

下邊我須要看下,如何將本身的代碼成爲可以正確處理隊員類型數目的代碼呢?server

加油htm

呵呵,二十分鐘以後,我又看到這篇blog

https://sourceforge.net/forum/forum.php?thread_id=1962875&forum_id=76439

原來改變代碼到能夠到新server下,更加簡單,不用修改~/.rcssserver/player.conf文件,

If you use the UvA base code, you need to change the following value in SoccerTypes.h and compile the code again.

old: #define MAX_HETERO_PLAYERS 7 /*!< Maximum number of hetero players*/

new: #define MAX_HETERO_PLAYERS 18 /*!< Maximum number of hetero players*/

若是你用的是Uva代碼,你須要把SoccerType.h文件按下免提是修改,而後編譯代碼。

old: #define MAX_HETERO_PLAYERS 7 /*!< Maximum number of hetero players*/

new: #define MAX_HETERO_PLAYERS 18 /*!< Maximum number of hetero players*/

哈哈,能夠玩了

                                                                                 ---------------fromhttp://fangzhzh.info/blog/robocup-uva-rcssserver-12-segment-fault.html

相關文章
相關標籤/搜索