当前位置: 主页 > 程序 >

ubuntu下3D仿真机器人环境搭建(一)

时间:2015-06-16  作者:haden   点击:
【摘要】详细教程,如何安装simspark,rcssagent3d,搭建环境
文章来源http://simspark.sourceforge.net/wiki/index.php/Installation_on_Linux#Optional


 
  • 1Enable 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

 

  • 2Install dependencies:
(安装软件运行需要的环境)

 

     $ sudo apt-get install g++ subversion cmake libfreetype6-dev libode-dev libsdl-dev ruby ruby-dev libdevil-dev libboost-dev libboost-thread-dev libboost-regex-dev libboost-system-dev

 

  • 3Download 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的地址已经更改,请使用新地址:https://svn.code.sf.net/p/simspark/svn/)
($svn co https://svn.code.sf.net/p/simspark/svn/ simspark)

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

 

  • 4Configure the package, generate build files and install the package:
(安装软件)
(可能会遇到/usr/bin/ld:cannot find -lxxx,解决方法见另外文章)

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

 

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

 

     $ simspark

 

  • Run test agent:

 

     $ rcssagent3d

顶一下
(3)
100%
踩一下
(0)
0%
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
验证码: 点击我更换图片

推荐内容