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

相关文章
相关标签/搜索