examples.dlife.robot.player
Class PlayerServerProcessExample

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

public class PlayerServerProcessExample
extends Object

Example that illustrates the use of a PlayerServerProcess and a StageSimulationControl. This example runs ten trials of a Hemisson wandering around an empty room for 10 seconds under the control of an obstacle avoidance controller. A StageSimulationControl is used to reset the Hemisson to the center of the room before each trial. Each trial also has chance of not terminating after 4 seconds. If the trial does not terminate within 12 seconds a PlayerServerProcess.Monitor is used to terminate the Player/Stage system and the trial is restarted.

To run this example:

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

  3. Execute the following command:
  4. A Player/Stage simulation window should appear. Ten trials will be completed. In each trail the Hemisson will move around avoiding obstacles for 10 or more seconds. If the Hemisson completes its movement in 10 seconds the robot will be repositioned to the center of the room and next trial will be started. If the Hemisson runs for more than 12 seconds, the Player/Stage system will be terminated, restarted and the trial will be rerun.

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

Version:
Sep 21, 2010
Author:
Grant Braught, Dickinson College

Constructor Summary
PlayerServerProcessExample()
           
 
Method Summary
static void main(String[] args)
          Run the PlayerServerProcessExample.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlayerServerProcessExample

public PlayerServerProcessExample()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Run the PlayerServerProcessExample.

Parameters:
args - none
Throws:
Exception