Installing SimSpark and RoboCup Soccer Simulation 安装 SimSpark 和 RoboCup3d 成功

    技术2025-01-12  11

    寒假在家,想把Robocup3d平台搭建好,本来学校里用的是OpenSuse11.2,在家里用OpenSuse11.3装了无数次,总是出各种各样的问题,而

     http://simspark.sourceforge.net/wiki/index.php/Installation_on_Linux

    上的关于OpenSuse的教程似乎也太过时了,于是在百般无奈之下转投Ubuntu了,使用的是Ubuntu 10.10 按照教程,安装成功

     

    I. Easiest way to install simspark and rcssserver3d is using the ubuntu robocup repository. You can simply install the server using following instructinos:

    $ sudo gedit /etc/apt/sources.list [ Follow instructions in the file to enable the Universe and Multiverse repositories, save and exit ] [ Add this line: deb http://ppa.launchpad.net/gnurubuntu/rubuntu/ubuntu lucid main ] [ change "lucid" to your own version ] $ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 02516F74 $ sudo apt-get update $ sudo apt-get install rcssserver3d

     

     

    II. Another way is to get the sources of the server and compile them. This small HowTo explains how to install the Robocup 3D simspark simulation server on Ubuntu (so not the old spheres server using spades). This work Hardy Heron (8.04) and Intrepid Ibex (8.10). The steps should be similar on other debian based distributions especially Debian itself, so hopefully it's also useful for other people.

    [ edit ]

    Requirement

    Enable Universe and Multiverse repositories:

     

    $ sudo gedit /etc/apt/sources.list [ Follow instructions in the file to enable the Universe and Multiverse repositories, save and exit ] $ sudo apt-get update

     

    Install dependencies:

     

    $ sudo apt-get install g++ subversion cmake libfreetype6-dev libode0-dev libsdl-dev ruby1.8 ruby1.8-dev  libdevil-dev libboost-dev libboost-thread-dev libboost-regex-dev

     

    Download the latest simspark and rcssserver3d packages as described here , or if you want to use latest code in SVN repository, check out the source from the source forge SVN repository:

     

    $ svn co https://simspark.svn.sourceforge.net/svnroot/simspark simspark

     

    Configure the package, generate build files and install the package: Note: type 'make uninstall' to uninstall the package Note: type 'make uninstall' to uninstall the package

    Simspark: Rcssserver3D:

    $ cd simspark/trunk/spark $ mkdir build $ cd build $ cmake .. $ make $ sudo make install $ sudo ldconfig

     

    [ set to the rcssserver3d directory (trunk/rcssserver3d) ] $ mkdir build $ cd build $ cmake .. $ make $ sudo make install $ sudo ldconfig

     

    Make sure the linker can find your shared libraries:

     

    $ sudo gedit /etc/ld.so.conf [ add the line '/usr/local/lib' if it isn't already there, save and close ] $ sudo ldconfig

     

    Run the simulation:

     

    $ rcsoccersim3d

     

     Ps:第六步很重要,与教程中贴出的不同,这才是最新的启动simulation的命令 本人按照教程上的两种方法均安装成功,发现略有区别,如果在编程中需要使用Simspark中的库文件,则需要按照第二种方法安装,否则,按照第一种方法,则可以快速简单的实现...

           第二步所需库文字较长,复制时注意是在一行,或可分多次安装。具体库略有调整的,按照提示进行调整。貌似libode0-dev就需要改成libode...

    最新回复(0)