|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--Seeker
The purpose of this robot is to search for different colored objects and manuver the robot to
pick them up. It also uses speech to say what it has found, and the total count by shape and
color at the end.
This is the main start point for the Seeker robot (in the main() function).
After initialization, the main robot AI algorithm is handled in the Run() function.
Here are the Overall Flow and Functional Partition for the robot.
| Field Summary | |
(package private) static int[] |
BallCounts
|
(package private) static CameraImage |
cImage
|
(package private) static motors |
RobotControl
|
(package private) static int |
TrackColor
|
(package private) static java.lang.String |
VoiceAllDone
|
(package private) static java.lang.String |
VoiceBall
|
(package private) static java.lang.String |
VoiceBalls
|
(package private) static java.lang.String |
VoiceFive
|
(package private) static java.lang.String |
VoiceFound
|
(package private) static java.lang.String |
VoiceFour
|
(package private) static java.lang.String |
VoiceGiveBin
|
(package private) static java.lang.String |
VoiceGreen
|
(package private) static java.lang.String |
VoiceLooking
|
(package private) static java.lang.String |
VoiceOne
|
(package private) static java.lang.String |
VoicePickingUp
|
(package private) static java.lang.String |
VoiceRed
|
(package private) static serialComm |
VoiceSerial
|
(package private) static java.lang.String |
VoiceThree
|
(package private) static java.lang.String |
VoiceTracking
|
(package private) static java.lang.String |
VoiceTwo
|
(package private) static java.lang.String |
VoiceWhite
|
(package private) static java.lang.String |
VoiceYellow
|
| Constructor Summary | |
Seeker()
Class constructor. This function initialized the external components used by the robot. One is the camera class, which does all the interaction and processing of the camera data. |
|
| Method Summary | |
private void |
CameraClear()
Tells the camera to go back to idle state and wait for it to happen. |
void |
Delay(int Amount)
Sleep for the amount specified |
static void |
main(java.lang.String[] args)
This is the main function called by java to start things running. This fuction simply creates an instance of the class and starts it running. |
void |
Run()
This is where the actual overall AI of the robot is controlled from. The general flow of the AI is as follows: Take a snapshot from the camera via serial download. Search the image for one of our pre-defined colors. |
void |
VoiceOutput(java.lang.String Cmd)
Send one or more (up to 4) commands to voice extreme board for it to say in order. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
static CameraImage cImage
static motors RobotControl
static int TrackColor
static serialComm VoiceSerial
static final java.lang.String VoiceOne
static final java.lang.String VoiceTwo
static final java.lang.String VoiceThree
static final java.lang.String VoiceFour
static final java.lang.String VoiceFive
static final java.lang.String VoiceRed
static final java.lang.String VoiceGreen
static final java.lang.String VoiceYellow
static final java.lang.String VoiceWhite
static final java.lang.String VoiceBall
static final java.lang.String VoiceBalls
static final java.lang.String VoiceLooking
static final java.lang.String VoiceAllDone
static final java.lang.String VoiceGiveBin
static final java.lang.String VoiceTracking
static final java.lang.String VoicePickingUp
static final java.lang.String VoiceFound
static int[] BallCounts
| Constructor Detail |
public Seeker()
| Method Detail |
public static void main(java.lang.String[] args)
public void Run()
private void CameraClear()
public void VoiceOutput(java.lang.String Cmd)
Cmd - String of 1 to 4 ascii voice commands. Use the Voice???? constants definded in this class.public void Delay(int Amount)
Amount - Number of milliseconds to delay
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||