examples.dlife.robot.player
Class PlayerMultipleRobots
java.lang.Object
examples.dlife.robot.player.PlayerMultipleRobots
public class PlayerMultipleRobots
- extends Object
Example that creates, starts, and runs a Player/Stage simulation with 3
Hemisson and 3 Khepera3 robots. All of the robots are running obstacle
avoidance controllers.
To run this example:
- Complete the Basic dLife Installation.
- Complete the Player/Stage
Setup.
- Execute the following command:
RunExample examples.dlife.robot.player.PlayerMultipleRobots
- A Player/Stage simulation window should appear with 3 Hemissons and 3 Khepera 3
robots wandering around a collection of rooms and hallways.
- 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, Dickinson College
|
Method Summary |
static void |
main(String[] args)
This will create and launch player with 3 Khepera3 robots and 3 Hemisson
robots running obstacle avoidance Controllers. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlayerMultipleRobots
public PlayerMultipleRobots()
main
public static void main(String[] args)
throws IOException
- This will create and launch player with 3 Khepera3 robots and 3 Hemisson
robots running obstacle avoidance Controllers. Typing 'q' in the terminal
will terminate the simulation.
- Parameters:
args - none
- Throws:
IOException - thrown if there is a problem saving the player
configuration files