Player /Stage Installed on Ubuntu 7.04|Player-2.0.4在Ubuntu 7.0.4下的安装

这里把Player 安装过程中需要用到的命令写到bash脚本中执行。


#!/bin/bash

#This script installs the packages required by player and stage,
#downloads and unzips player and stage, and installs both.
#The script is tested in Ubuntu (version 7.04 - Feisty Fawn)
#Created 01/10-08 by MS

#If you are using a proxy server, set it up first
#export http_proxy=http://<proxyserver>:<port>

#Update ubuntu installation
sudo apt-get update
sudo apt-get upgrade

#Install the necessary dependencies

sudo apt-get install autotools-dev build-essential cpp libboost-dev libboost-thread-dev libboost-thread1.33.1 libboost-signals-dev libboost-signals1.33.1 libltdl3 libltdl3-dev libgnomecanvas2-0 libgsl0 libgsl0-dev libgtk2.0-dev libjpeg62-dev libtool swig

#Download the installation files
cd ~
mkdir playerstage_download
cd playerstage_download

wget http://dfn.dl.sourceforge.net/sourceforge/playerstage/player-2.0.4.tar.bz2
wget http://dfn.dl.sourceforge.net/sourceforge/playerstage/stage-2.0.3.tar.bz2

tar xjvf player-2.0.4.tar.bz2
tar xjvf stage-2.0.3.tar.bz2

#Configure and install player and stage in the $user/playerstage directory
cd player-2.0.4

./configure --prefix=/home/$USER/playerstage

make
make install

cd ..
cd stage-2.0.3

./configure --prefix=/home/$USER/playerstage
make
make install

#It is also possible to download and install the debian package by
#The package needs to be downloaded first, and then installed by:
#sudo dpkg -i player_2.0.4-thjc1_i386.deb

#Setting the path be appending to .bashrc
echo "" >> ~/.bashrc
echo "export PATH=/"/$PATH:/home/$USER/playerstage/bin/"" >> ~/.bashrc
echo "export PLAYERPATH=/"/$PATH:/home/$USER/playerstage/share/stage/worlds/"" >> ~/.bashrc

source ~/.bashrc

#Checking if the colour description file is at the right place
if [ -f /usr/X11R6/lib/X11/rgb.txt ];
then
echo
else
echo "/usr/X11R6/lib/X11/rgb.txt does not exist - creating a symbolic link"
sudo ln -s /usr/lib/X11/rgb.txt /usr/X11R6/lib/X11/rgb.txt
fi

#Remove installation files
echo "Removing installation files"

cd ~
rm -rf playerstage_download
echo "Done installing player and stage"

#To test the installation the following can be used:
#
#Start stage
#player ~/playerstage/share/stage/worlds/simple.cfg
#Start a simulation
#~/playerstage/share/player/examples/libplayerc++/./laserobstacleavoid
#

#Here is an other test
#stest playerstage/share/stage/worlds/simple.world robot1

Cited from:
http://www.control.aau.dk/~ms/playerstage/playerstage_install
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 14
    评论
评论 14
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值