examples.dlife.robot.player
Class PlayerSimulationHemiWander

java.lang.Object
  extended by examples.dlife.robot.player.PlayerSimulationHemiWander

public class PlayerSimulationHemiWander
extends Object

Example that creates, starts, and runs a Player/Stage simulation without using the ControlCenter. A PlayerSimulation is created for a Hemisson with a proximity sensor in an empty room. The Hemisson is controlled by the HemiWander Controller (from examples.dlife.robot.hemisson).

To run this example:

  1. Complete the Basic dLife Installation.
  2. Complete the Player/Stage Setup.

  3. Execute the following command from the dLifeDist directory:
  4. A Player/Stage simulation window should appear and the Hemisson should begin wandering around the empty room.
  5. Typing a 'q' followed by the enter key will terminate the simulation. NOTE: The Player/Stage window will remain open and can be closed manually.

The source code for this class is contained in the file:

Version:
Febuary 18, 2010
Author:
Russell Toris, Grant Braught, Dickinson College

Constructor Summary
PlayerSimulationHemiWander()
           
 
Method Summary
static void main(String[] args)
          This will create and launch the Player simulation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlayerSimulationHemiWander

public PlayerSimulationHemiWander()
Method Detail

main

public static void main(String[] args)
                 throws IOException,
                        InterruptedException
This will create and launch the Player simulation. Pressing 'q' in the terminal will terminate the simulation.

Parameters:
args - none
Throws:
IOException - thrown if there is a problem saving the player configuration files
InterruptedException