public class VirtualRobot extends Robot
IRobotState.robotStatecolorSensor, coordinates, directedComm, distSensor, id, motion, neoPixel, proximitySensor, reality, robotMQTT, robotMqttClient, simpleComm, state| Constructor and Description |
|---|
VirtualRobot(int id,
double x,
double y,
double heading)
VirtualRobot class
|
| Modifier and Type | Method and Description |
|---|---|
void |
communicationInterrupt(java.lang.String msg)
Handle communicationInterrupt triggers of the robot
|
void |
loop()
Handles the event loop of the robot
|
void |
sensorInterrupt(java.lang.String sensor,
java.lang.String value)
Handles sensorInterrupt triggers of the robot
|
public VirtualRobot(int id,
double x,
double y,
double heading)
id - robot Idx - X coordinate as doubley - Y coordinate as doubleheading - Heading direction in degrees, as doublepublic void loop()
throws java.lang.Exception
java.lang.Exceptionpublic void sensorInterrupt(java.lang.String sensor,
java.lang.String value)
public void communicationInterrupt(java.lang.String msg)