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

寒假在家,想把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

  1. Enable Universe and Multiverse repositories:
  2.  

         $ 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
    
    
    
    
    
    

     

  3. Install dependencies:
  4.  

         $ 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

     

  5. 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:
  6.  

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

     

  7. 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
  8. 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
    
    
    
    
    
    

     

  9. Make sure the linker can find your shared libraries:
  10.  

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

     

  11. Run the simulation:
  12.  

       $ rcsoccersim3d 
    
    
    
    
    

     

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

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

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值