Player/Stage 安装官方指南|Player 2.1.1 / Stage 3.0.* (official release)
来源:互联网 发布:快乐赚幸运28源码 编辑:程序博客网 时间:2024/05/17 08:48
Created: 07.14.2008
Last updated: 08.02.2008
Old version of this document here.
Translated: 03.08.2009
Installation on Fedora 9
提示:这是基于Fedora 9平台的安装过程;如果在Fedora 8下安装,则stage 3.0.0版本比3.0.1更兼容
First of all
首先需要一个合适的linux发行版:如Fedora 8/9/10; Ubuntu 8.04, Debian等, 来安装Player
Robotics Interface及Stage 2.5D Mobile Robotics Simulator.接下来的步骤是在Fedora 9系统下的安装过程。
参考Personal Fedora 9 Installation Guide来安装配置好Fedora 9 (另外参考 greattips for F9),同时需要添加
“Development Support”以便编译Player/Stage及其依赖软件包。
提示:为了安装方便,最好配置好YUM及其源。
Prerequisites
上述步骤完成后依然需要安装几个没有被默认安装的软件包:
libtool-ltdl-devel-1.5.24-6.fc9.i386.rpm - The GNU Portable Library Tool development package
cmake-2.4.8-2.fc9.i386.rpm
- CMake is used to control the software compilation process using
simple platform and compiler independent configuration files (only for Stage).fltk-1.1.8-1.fc9.i386.rpm
- FLTK is a cross-platform C++ GUI toolkit (only for Stage).fltk-devel-1.1.8-1.fc9.i386.rpm
- Development package of the FLTK (only for Stage).
通过Yum来安装:
$ yum install libtool-ltdl-devel
$ yum install cmake
$ yum install fltk fltk-devel
另外,Player需要libboost_thread.so,这个库没有随着libboost-devel默认安装上,要创建一个symbolic link:
$ ln -s /usr/lib/libboost_thread-mt.so /usr/lib/libboost_thread.so
还有些可选的prerequisites:
gsl-1.10.tar.gz -GNU Scientific Library for acml driver
opencv-1.0.0.tar.gz- Real time computer vision
libraw1394-1.3.0-7.fc9.i386.rpm- Library providing low-level IEEE-1394 access for camera1394 driver
libraw1394-devel-1.3.0-7.fc9.i386.rpm -Development libs for libraw1394
libavc1394-0.5.3-2.fc9.i386.rpm - Audio/Video Control library for IEEE-1394 devices for camera1394 driver
libavc1394-devel-0.5.3-2.fc9.i386.rpm- Development libs for libavc1394
libdc1394-2.0.2-1.fc9.i386.rpm
libdc1394-devel-2.0.2-1.fc9.i386.rpm
libjpeg-6b-41.fc9.i386*- A library for manipulating JPEG image format files for cameracompress driver
libjpeg-devel-6b-41.fc9.i386* - Development tools for libjpeg
<linux/joystick.h>* -The Linux joystick support for linuxjoystick driver
(*) already installed with the above Fedora 9 configuration
在安装以下各包时,都有两种方式:源码包安装和Yum install *.rpm。为方便起见,尽量通过Yum安装:
$ yum install gsl gsl-devel
$ yum install opencv opencv-devel
$ yum install libraw1394 libraw1394-devel
$ yum install libavc1394 libavc1394-devel
$ yum install libdc1394 libdc1394-devel
Python bindings for Player/Stage (最好选上):
$mkdir -p /usr/local/lib/python2.5/
$ cd /usr/local/lib/python2.5/$ ln -s /usr/lib/python2.5/site-packages
设置环境变量:将以下语句添加到 /etc/bashrc文件中:
export PATH=/usr/local/bin:$PATH
export CPATH=/usr/local/include:$CPATH
export LIBRARY_PATH=/usr/local/lib:$LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATHexport PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
For Python bindings:
export PYTHONPATH=/usr/local/lib/python2.5/site-packages:$PYTHONPATH
提示:尽量选择安装所有的prerequisites。比如,libavc1394, libdc1394, libraw1394是支持IEEE1394摄像头的驱动。
如果没有安装,则无法通过player来驱动IEEE1394摄像头。
Install Player 2.1.1 as root(需要root权限)
安装命令:
$ tar xvzf player-2.1.1.tar.gz
$ cd player-2.1.1
$ ./configure
$ make$ make install
完成后打开一个.cfg文件测试一下:
$ player /usr/local/share/player/config/pioneer.cfg
输出为:
[root@localhost ~]# player /usr/local/share/player/config/pioneer.cfg
Player v.2.1.1
* Part of the Player/Stage/Gazebo Project [http://playerstage.sourceforge.net].
* Copyright (C) 2000 - 2006 Brian Gerkey, Richard Vaughan, Andrew Howard,
* Nate Koenig, and contributors. Released under the GNU General Public License.
* Player comes with ABSOLUTELY NO WARRANTY. This is free software, and you
* are welcome to redistribute it under certain conditions; see COPYING
* for details.
Listening on ports: 6665
Install Stage 3.0.1 as root(需要root权限)
安装命令:
$ tar xvzf Stage-3.0.1-Source.tar.gz
$ cd Stage-3.0.1-Source
$ cmake .
$ make
$ make install
运行命令:
$ stage worlds/fasr.world
Stage perspective view
- Player/Stage 安装官方指南|Player 2.1.1 / Stage 3.0.* (official release)
- Player/Stage
- player stage robot ---tcp client
- Ubuntu 8.10安装Gazebo-0.8pre3 [Player/Stage/Gazebo]
- Fedora 7安装Gazebo-0.7.0 [player/stage/gazebo]
- 在debian lenny下安装player/stage仿真软件
- Player /Stage Installed on Ubuntu 7.04|Player-2.0.4在Ubuntu 7.0.4下的安装
- My experience on Player/stage/gazebo installation
- Ubuntu 12.04(32位/64位)下安装Player/Stage
- 如何区分Babel中的stage-0,stage-1,stage-2以及stage-3(一)
- player
- javafx.stage.Stage
- javafx.stage.Stage方法
- Lua Player 指南
- Stage 1 — Contributing Dependently
- Game Development Stage 1(Goal)
- hapter 1: Setting the Stage
- Unity Official Tutorial OF PICKING UP COLLECTABLES --- Camera Follows Player
- C#按钮事件中有循环,用另一个按钮控制停止,暂停,继续程序执行
- oracle基础整理一
- 聚焦WCF行为的扩展
- lua环境配置
- Handling Disconnects with WCF
- Player/Stage 安装官方指南|Player 2.1.1 / Stage 3.0.* (official release)
- 对不起你
- 今天出差去石家庄,明天转去济南
- 图像旋转系列文章的源代码下载
- 系统程序员成长计划-容器与算法(一)(上)
- 还哈
- Mapx常见问题
- 改变Windows资源管理器的默认路径
- 40 个轻量级 JavaScript 库 (下)