ssh –XY <username>@cetus15.cs.utk.edu
If you’re using a Windows machine to login remotely, you won’t be able to run the simulator unless you’ve installed an X server. For instructions on how to do this, see www.cs.utk.edu/~cs302/hints/Xhelp.html
The following instructions show you how to set up your shell environment, start the Player/Stage simulator, and run an example program.
If you don’t know what your default shell is, try typing “echo $SHELL” in a terminal window. Depending on which shell you’re using, you will need to add one of the following lines:
If you use the bash or zsh shell, add this to .bashrc or .zshrc in your home directory:
export PATH=”$PATH:/research/playerstage/bin”
If you use csh or tcsh, add this to .cshrc or .tcshrc in your home directory:
setenv PATH $PATH:/research/playerstage/bin
Once the correct file has been modified, you will need to logout and login again for the changes to take effect.
Make sure that PATH has been set correctly by typing in the terminal window:
which player
If it returns “/research/playerstage/bin/player”, you’re path has been set correctly.
For .bashrc or .zshrc:
export PLAYERPATH=”/research/playerstage/lib”
For .cshrc or .tcshrc:
setenv PLAYERPATH /research/playerstage/lib
For .bashrc or .zshrc:
export PYTHONPATH=”$PYTHONPATH:/research/playerstage/lib/python2.4/site-packages”
export CLASSPATH=”$CLASSPATH:/research/playerstage/src/javaclient/classes:.”
For .cshrc or .tcshrc:
setenv PYTHONPATH $PYTHONPATH:/research/playerstage/lib/python2.4/site-packages
setenv CLASSPATH $CLASSPATH:/research/playerstage/src/javaclient/classes:.
environments: This contains the maps and configuration files for three environments (small, medium, and large).
example: This contains an example program in each of the available languages (C, C++, Python, and Java). It’s a simple obstacle avoidance program that demonstrates how to use the Player functions that you’ll need to read sensor data and move the robot.
skel: This contains a skeleton program for each of the four languages. It doesn’t do anything, but you can use it as a starting point for your program since it has the required include files and creates the devices that you’ll be using to control the robot.
player small.cfg
This should open a Stage simulator window with a robot in the middle of the map. Later, you can test the medium or large environments by replacing “small.cfg” with “med.cfg” or “large.cfg”.
./laserobstacleavoid
If you see the robot moving through the environment, everything is set up correctly.
javac LaserObstacleAvoid.java
java LaserObstacleAvoid
For Python, use the following command:
python laserobstacleavoid.py
When you’re ready to start writing your own client program, you can use the skeleton program for your chosen language in the skel directory as a starting point. The C and C++ versions have a sample makefile that will need to be modified if you create additional source files.