Game Pad

Description:

The GamePad for Simulator (joyPad) is a modification of a previous version of the GamePad that allowed manual control of robots. This version of GamePad is designed to perform the same function, by allowing manual control of a robot in the simulator.


Design Overview:

The GamePad for Simulator is a modification of a previous version of GamePad written by Matt Harren in 2001. The original version connected directly to the wireless module. In this version of GamePad, we are connecting it to the simulator by emulating the AI command packets.

Every possible instruction from the user is translated into velocities for the robot. These velocities are packaged into an AI command, which is then sent to the simulator. The commands sent to the simulator are processed to ensure that the maximum velocity in any direction does not exceed the maximum velocity of the robot.

This AI command packet is sent using the 2002 networking code. Once connected to the simulator, the simulator will assume that it is communicating with the AI and execute those commands on the specified robots.


How to Use:

The GamePad is a stand alone program that is executed separately. Extract the code from CVS, open gamepadAI.dsp, and compile. Follow the instructions on the screen to control the robots.

Additional Resources:

  • CVS - robocup-ai-2001 -> gamePad