Installation of Playerstage For The Implementation of BMO
Installation of Playerstage For The Implementation of BMO
1 Introduction
Nature includes enormous number of species into it.Each one has its own
mechanism of survival and continue to extend their species.Butterflies is one of
the prominent species which has a special type of mechanism in mating.Many
complex activities involved in the process of butterfly mating.This paved the
path for the implementation of BMO(butterlfly mating optimization) in real
time applications.For the implementaton of this process a software is requred.Here
comes the importance of player project.
The Player Project (formerly the Player/Stage Project) is a project to
create free software for research into robotics and sensor systems.[1] Its compo-
nents include the Player network server and the Stage robot platform simulators.
Although accurate statistics are hard to obtain, Player is one of the most pop-
ular open-source robot interfaces in research and post-secondary education.[2]
Most of the major intelligent robotics journals and conferences regularly pub-
lish papers featuring real and simulated robot experiments using Player and
Stage. The Player Project is an umbrella under which two robotics-related
software projects are currently developed. These include the Player networked
robotics server, and the Stage 2D robot simulation environment. The project
was founded in 2000 by Brian Gerkey, Richard Vaughan and Andrew Howard
at the University of Southern California at Los Angeles, and is widely used in
robotics research and education.[3] It releases its software under the GNU Gen-
eral Public License with documentation under the GNU Free Documentation
License.
1
2 WHAT IS PLAYER/STAGE?
2.1 Player
The Player software runs on Microsoft Windows and POSIX-compatible
operating systems, including Linux, Mac OS X, Solaris, and the BSD variants.
Player can be described as a ’robot abstraction layer,’ in that all devices are
abstracted into a set of pre-defined interfaces.
Player supports a wide variety of hardware (sensor devices and robot
platforms alike).[4] It also contains client library support for a number of pro-
gramming languages including C, C++, Python and Ruby. Third-party client
libraries are available in languages like Java and Tcl. Additional features in-
clude a minimal and flexible design, support for interfacing with multiple devices
concurrently, and on-the-fly server configuration.
2.2 Stage
The Stage simulator is a 2D multiple-robot simulation environment built
on top of FLTK. Stage provides a basic simulation environment that can be
scaled to model one to hundreds of robots at a time. Stage can be used alone
to simulate robot behaviors via user-defined control programs. Stage can also
interface with Player, allowing users of the Player to access simulated sensors
and devices through the Player interfaces.
2.3 Gazebo
The Gazebo 3D robot simulator was a component in the Player Project
from 2004 through 2011. Gazebo integrated the ODE physics engine, OpenGL
rendering, and support code for sensor simulation and actuator control. In 2011,
Gazebo became an independent project support by Willow Garage.
2
3 working of player/stage
Player is a network server for robot control. It provides an interface to the
robot’s sensors and actuators over the IP network. Your client program talks
to Player over a TCP socket, reading data from sensors, writing commands to
actuators and configuring devices on the fly.
4 Installation of player/stage
Install Player first, then Stage, using the standard GNU autotools build system:
download and extract the tarballs, then ./configure ; make install.
Standard installation procedure:
To install Stage in the default location, follow these steps:
• If you plan to use Player with Stage, make sure Player is installed and
working. See the Player documentation for instructions.
• Download the latest Stage source tarball (stage-src-¡version¿.tgz) from
http://playerstage.sf.net
• Uncompress and expand the tarball: tarxzvf stage− < version > .tgz‘cd0 intoStage0 ssourcedirectory :
cd stage-¡version¿
3
• To configure Stage with default settings: ”./configure”
• Compile Stage: ”make”
• Test to see if Stage works by running the stest program: src/stest worlds/simple.world
robot1
• If you see a robot running around, your build was successful. If not, you
need to debug. See the website and user groups for debugging help.
• Install Stage. By default, Stage will be installed in /usr/local so you need
to become root for this step. Remember to return to your normal user ID
afterwards. make install
4
Figure 3: player project
6 Building a world
We can run a world and configuration file that comes bundled with Stage. By
default, it’s in the /usr/local/share/stage/worlds folder. Once in the correct
folder, you can run the following command: ”player simple.cfg”.
5
Figure 4: working of player stage
A worldfile is a list of models that describes all the stuff in the simulation, in-
cluding the basic environment, robots and other objects.
Let’s look at map.inc for an example.
include ”map.inc”
configure the GUI window
window
(size[700.000700.000]//sizeof thesimulationwindowinpixels[widthheight]scale41//howmanypixelseachmeter
windows ize/f loorplansize)
load an environment bitmap
floorplan
( bitmap ”bitmaps/cave.png” can by type bmp, jpeg, gif or png size [15 15 1.5]
size in meters [x y z] dimensions )
Writing a Configuration (.cfg) File
For each model in the simulation or device on the robot that you want to in-
teract with, you will need to specify a driver. The driver specification is in the
form:
driver
In your configuration file (.cfg), it always starts with the following for simu-
lation:
driver
(
name ”stage” there is a driver called stage plugin ”stageplugin” in the stage-
plugin library
6
)
The input to the provides parameter is a ”device address”, which has the
format ”key:host:robot:interface:index” and parameters are separated by white
space. For Stage, the key field doesn’t need to be used. The default host is
”localhost” which means the computer on which Player is running. The robot
field is the port number. The default port is 6665. The interface and index
fields are mandatory.
driver
( name ”stage”
provides [”6665:position2d:0”
”6665:sonar:0”
”6665:blobfinder:0”
”6665:laser:0” ]
model ”bot1”
)
7 Conclusions
This paper presented the various phases in the installation and working of
player/stage for the implementation of BMO(Butterfly mating optimization).