examples.dlife.robot.player
Class PlayerServerProcessExample
java.lang.Object
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:
- Complete the Basic dLife Installation.
- Complete the Player/Stage
Setup.
- Execute the following command:
RunExample examples.dlife.robot.player.PlayerServerProcessExample
- 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
|
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 |
PlayerServerProcessExample
public PlayerServerProcessExample()
main
public static void main(String[] args)
throws Exception
- Run the PlayerServerProcessExample.
- Parameters:
args - none
- Throws:
Exception