关于robocup3d在linux上的安装//详细信息http://simspark.sourceforge.net/wiki/index.php/Installation_on_Linux#Opti

 

Fedora

The most easy way on Fedora systems to install simspark, is to open a terminal and type "yum install rcssserver3d" (if you want to develop agents using rcssserver3d's libraries, "run yum install rcssserver3d rcssserver3d-devel" instead). Thanks to the community members, the simspark packages have been included in Fedora's repositories as a part of Fedora Robotics SIG activities, as an effort to allow for easy development of robotics applications on Fedora.

In case you wanted to do the hard way (compile the simulator from source), continue reading:

  1. Install dependencies:

    There are dependencies for the simulator, ie. other libraries that simulator uses. These are:

    boost: A collection of (currently) 58 libraries for multiple purposes. This is a giant library...
    boost-devel: Development files for using boost library
    FreeType (which should be installed by default for X Window System)
    FreeType-devel
    ruby: A dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write.
    ruby-devel: Development files for using ruby language
    SDL: (A multimedia library, installed by default): Preferably all the SDL packages
    SDL-devel: Development files for using SDL
    DevIL: (Developers Image library)
    DevIL-devel: Development files for using DevIL
    ode: Open Dynamics Engine, A physics engine
    ode-devel: Development files to use for developing applications to use ode

    If you have a ready internet connection, you can have it done like this with yum:

         $ sudo yum -y install boost boost-devel freetype freetype-devel freeglut freeglut-devel ruby ruby-devel SDL* DevIL DevIL-devel ode ode-devel
    

    Otherwise, the best option is to download the packages from one of Fedora mirrors. This link points to the list of all Fedora mirrors, Pick one of the mirrors, and search and download the packages listed above, then install it.
    If there was error installing them, check these two: 1) Are you root? or at least doing it with sudo? 2) Does the package need any other dependency? you can guess it by rpm output

    • I forgot to say to newbies: installation is like this: If you are in graphic mode (X Window System), find the package on installation media, double click it, otherwise, login to a terminal, go to installation media's directory, and type rpm -ivh <filename>


  2. Now its the time for simulator itself:

    Get the latest simspark package (take a look at downloading page if you don't know where to get it) and extract it. There are 4 folders, which currently they need to be built seperately. The building process is described below, it is the same for all the packages. First you should open a terminal and change to spark folder, and execute these commands:

     $ mkdir build
     $ cd build
     $ cmake ..
     $ make
     $ sudo make install
    


    Then change folder to rcssserver3d, execute the commands. Next is the simspark-utilitis, and last is optional, rsgedit.

    • Note for newbies: DO NOT TYPE THE $ SIGN! It is indicator of shell prompt.


Congratulations, your build is complete!

[ edit]

OpenSuse

NOTICE: OpenSuse repository is outdated. For now, you can install from the source code.

This is the easiest way for installing the simulator. Currently these linux distributions are supported with this method:
OpenSuse 10.2
OpenSuse 10.3

To enable installation and update support for simspark on your linux Visit the Repository WebSite, select your linux distribution and copy 'home:hedayat.repo' to /etc/yum.repos.d/
Now you can use any yum frontend to install/update simspark.

  1. The command for installing simulator using command line yum is:
     yum install rcssserver3d
    
  2. and for rsg-edit is:
     yum install rcssserver3d-rsgedit
    
  3. Updating is done with this:
     yum update rcssserver3d
    
  4. and for rsg-edit
     yum update rcssserver3d-rsgedit
    

[ edit]

Ubuntu

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

     [ You should enable the Universe and Multiverse repositories before! ]
     $ sudo apt-add-repository ppa:gnurubuntu/rubuntu
     $ sudo apt-get update
     $ sudo apt-get install rcssserver3d

rcssserver3d-dev and simspark-dev are also available at the repository. If the new version of simspark & server has been released, you can upgrade them by:

     $ 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:

         $ 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
    

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

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

  4. Configure the package, generate build files and install the package:

    Simspark:

         $ cd simspark/trunk/spark
         $ mkdir build
         $ cd build
         $ cmake ..
         $ make
         $ sudo make install
         $ sudo ldconfig
    
    • Note: type 'make uninstall' to uninstall the package

    Rcssserver3D:

         [ set to the rcssserver3d directory (trunk/rcssserver3d) ]
         $ mkdir build
         $ cd build
         $ cmake ..
         $ make
         $ sudo make install
         $ sudo ldconfig
    
    • Note: type 'make uninstall' to uninstall the package

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

  6. Run the simulation:

         $ simspark
    

  7. Run test agent:

         $ rcssagent3d
    

[ edit]

Optional

[ edit]
Documentations
  1. Install dependencies:

         $ sudo apt-get install tetex-extra latex2html imagemagick
         [ for developers manual ]
         $ sudo apt-get install doxygen
         [ for API documentations ]
    

  2. Create documentations:

         [ in build directories of spark and rcssserver3d type ]
         $ make pdf
         $ make doc
         [ to create user (user-manual.pdf) and developer (devel.pdf) manual and API documentations ]
    

[ edit]
Rsgedit
  1. Install dependencies:

         $ sudo apt-get install libwxgtk2.8-dev
    

  2. Configure the package, generate build files and install the package:

         [ set to the rsgedit direcditory (trunk/rsgedit) ]
         $ mkdir build
         $ cd build
         $ cmake ..
         $ make
         $ sudo make install
    

  3. Run rsgedit:

         $ rsgedit
    

[ edit]
Simspark-utilities
  1. Configure the package, generate build files and install the package:

         [ set to the simspark-utilities directory (trunk/simspark-utilities) ]
         $ mkdir build
         $ cd build
         $ cmake ..
         $ make
         $ sudo make install
    

  2. Run utilities:

         $ gendot
         $ monitorspark
         $ sampleagent
         $ samplesim
    

[ edit]

Arch Linux

  • Install yaourt to use aur. See Archlinux wiki for details
  • Install server with the following command and follow instructions
     $ yaourt -S rcssserver3d
[ edit]

Generic Linux Instructions

[ edit]

Installing Ruby

Download Ruby version 1.8.0 or newer (tested and working with versions 1.8.6 and 1.9) and then configure with parameter --enable-shared.

[ edit]

Installing Boost

Download Boost version 1.30.2, 1.31.0 or 1.3x.x. Extract the package and copy folder boost_1_33_1/boost to /usr/local/include/boost. (No configuration is required)

[ edit]

Installing ODE

Download and install any of the working versions.(0.5 or higher, 0.9 strongly recommended). For better stability, configure with option --enable-double-precision. For 64-bit system, configure with CFLAGS and CXXFLAGS set to "-g -O2 -fPIC".

[ edit]

Running the simulation

Configure Simspark by

./configure

Debug mode might be disbaled as well to speed up the configuration process.

./configure --disable-debug

Next you have to add the rcssserver3d library path to your environment variables using

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/rcssserver3d

In SUSE 10.0 you should either edit the make file or link the required libraries by entering the following lines into console command window :

cd /usr/lib
ln -s /usr/X11R6/lib/libXi.so.6.0 libXi.so
ln -s /usr/X11R6/lib/libXmu.so.6.2 libXmu.so

For running simspark go to [Server3dDIR]/app/simspark and run simspark with

./simspark

Click on the Kerosin window that appears and drag the mouse on the window to change your view of field. Then go to agentsapark directory ( [Server3dDIR]/app/agentspark ) and run agentspark:

./agentspark

You should see the humanoid agent behind the ball.

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值