|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tue.id.creapro.admoveo.AdMoVeo
public class AdMoVeo
Together with the IDuino firmware (an Arduino sketch uploaded to the Arduino board), this class allows you to control the AdMoVeo robot from Processing: Controlling all the actuators (LED's, motors, buzzer etc) and receiving input events from all the sensors (distance sensors, light sensors, sound sensors and line readers etc).
Field Summary |
---|
Fields inherited from interface nl.tue.id.creapro.admoveo.Pin |
---|
BUZZER, DIR_L, DIR_R, DISTANCE_F, DISTANCE_L, DISTANCE_R, ENCODER_L, ENCODER_R, FR, LED_B, LED_G, LED_R, LIGHT_L, LIGHT_R, LINE_L, LINE_R, LR, SOUND_L, SOUND_R, SPEED_L, SPEED_R |
Fields inherited from interface nl.tue.id.creapro.admoveo.Priority |
---|
LATER, NOW |
Constructor Summary | |
---|---|
AdMoVeo(processing.core.PApplet parent,
java.lang.String name)
Create a proxy to an AdMoVeo robot running the IDuino firmware. |
Method Summary | |
---|---|
void |
execute(java.lang.String task)
schedule a task to be executed in a dedicated thread, with a priority of AdMoVeo.LATER. |
void |
execute(java.lang.String task,
int priority)
schedule a task to be executed in a dedicated thread. |
Arduino |
getArduino()
Gets the Arduino object used by this AdMoVeo robot. |
AnalogActuator |
getBlueLed()
Gets the reference to the blue LED of the robot. |
AnalogActuator |
getBuzzer()
Gets the reference to the buzzer of the robot. |
AnalogSensor |
getFrontDistanceSensor()
Gets the reference to the front distance sensor of the robot. |
AnalogActuator |
getGreenLed()
Gets the reference to the green LED of the robot. |
AnalogSensor |
getLeftDistanceSensor()
Gets the reference to the left distance sensor of the robot. |
AnalogSensor |
getLeftLightSensor()
Gets the reference to the left light sensor of the robot. |
AnalogSensor |
getLeftLineSensor()
Gets the reference to the left line sensor of the robot. |
Motor |
getLeftMotor()
Gets the reference to the left motor of the robot. |
AnalogSensor |
getLeftSoundSensor()
Gets the reference to the left sound sensor of the robot. |
AnalogActuator |
getRedLed()
Gets the reference to the red LED of the robot. |
AnalogSensor |
getRightDistanceSensor()
Gets the reference to the right distance sensor of the robot. |
AnalogSensor |
getRightLightSensor()
Gets the reference to the right light sensor of the robot. |
AnalogSensor |
getRightLineSensor()
Gets the reference to the right line sensor of the robot. |
Motor |
getRightMotor()
Gets the reference to the right motor of the robot. |
AnalogSensor |
getRightSoundSensor()
Gets the reference to the right sound sensor of the robot. |
void |
run()
Internal function for multi-threading in executing the scheduled tasks. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface nl.tue.id.creapro.admoveo.SensorListener |
---|
inputAvailable |
Constructor Detail |
---|
public AdMoVeo(processing.core.PApplet parent, java.lang.String name)
parent
- the Processing sketch creating this AdMoVeo robot (i.e.
"this").name
- the name of the serial device associated with the AdMoVeo robot.Method Detail |
---|
public void execute(java.lang.String task)
task
- task the name of the callback function;public void execute(java.lang.String task, int priority)
task
- the name of the callback function;priority
- the priority of the task. either AdMoVeo.NOW,
or AdMoVeo.LATER. Tasks with the priority AdMoVeo.LATER will not
be executed until all the AdMoVeo.NOW tasks are executed.public Arduino getArduino()
public AnalogActuator getBlueLed()
public AnalogActuator getBuzzer()
public AnalogSensor getFrontDistanceSensor()
public AnalogActuator getGreenLed()
public AnalogSensor getLeftDistanceSensor()
public AnalogSensor getLeftLightSensor()
public AnalogSensor getLeftLineSensor()
public Motor getLeftMotor()
public AnalogSensor getLeftSoundSensor()
public AnalogActuator getRedLed()
public AnalogSensor getRightDistanceSensor()
public AnalogSensor getRightLightSensor()
public AnalogSensor getRightLineSensor()
public Motor getRightMotor()
public AnalogSensor getRightSoundSensor()
public void run()
run
in interface java.lang.Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |