khepera
Interface KheperaConstants

All Known Implementing Classes:
LocationPainter, TrailMaker, Khepera, LEDController

public interface KheperaConstants

Contains all constants used with arrays returned from the Khepera class and also a couple of status constants. Implement this interface to gain easy access to the constants in your code.

Version:
1.0
Author:
Pär Spjuth

Field Summary
static int BL10
          Index to the back IR sensor at 10 degrees to the left.
static int BR10
          Index to the back IR sensor at 10 degrees to the right.
static int FL10
          Index to the frontal IR sensor at 10 degrees to the left.
static int FL45
          Index to the frontal IR sensor at 45 degrees to the left.
static int FL90
          Index to the frontal IR sensor at 90 degrees to the left.
static int FLED
          Number of the frontal LED.
static int FR10
          Index to the frontal IR sensor at 10 degrees to the right.
static int FR45
          Index to the frontal IR sensor at 45 degrees to the right.
static int FR90
          Index to the frontal IR sensor at 90 degrees to the right.
static int HEADING
          Index to the local robot heading.
static int LLED
          Number of the lateral LED.
static double LOWERED
          Constant putting the gripper in position to pick something up.
static int OFF
          Represents the off status of a LED.
static int ON
          Represents the on status of a LED.
static double RAISED
          Constant to raise the arm in front of the robot.
static double RDIAMETER
          The diameter of the robot in millimeters.
static double RRADIUS
          The radius of the robot in millimeters.
static int TOGGLE
          The value to toggle a LEDs status.
static double UNCHANGED
          Indicates that the value should be unchanged after the call.
static int XPOS
          Index to the local robot x-position.
static int YPOS
          Index to the local robot y-position.
 

Field Detail

FL90

public static final int FL90
Index to the frontal IR sensor at 90 degrees to the left.
See Also:
Khepera.getProxyReadings(), Khepera.getLightReadings()

FL45

public static final int FL45
Index to the frontal IR sensor at 45 degrees to the left.
See Also:
Khepera.getProxyReadings(), Khepera.getLightReadings()

FL10

public static final int FL10
Index to the frontal IR sensor at 10 degrees to the left.
See Also:
Khepera.getProxyReadings(), Khepera.getLightReadings()

FR10

public static final int FR10
Index to the frontal IR sensor at 10 degrees to the right.
See Also:
Khepera.getProxyReadings(), Khepera.getLightReadings()

FR45

public static final int FR45
Index to the frontal IR sensor at 45 degrees to the right.
See Also:
Khepera.getProxyReadings(), Khepera.getLightReadings()

FR90

public static final int FR90
Index to the frontal IR sensor at 90 degrees to the right.
See Also:
Khepera.getProxyReadings(), Khepera.getLightReadings()

BR10

public static final int BR10
Index to the back IR sensor at 10 degrees to the right.
See Also:
Khepera.getProxyReadings(), Khepera.getLightReadings()

BL10

public static final int BL10
Index to the back IR sensor at 10 degrees to the left.
See Also:
Khepera.getProxyReadings(), Khepera.getLightReadings()

FLED

public static final int FLED
Number of the frontal LED.
See Also:
Khepera.setLED(int,int)

LLED

public static final int LLED
Number of the lateral LED.
See Also:
Khepera.setLED(int,int)

ON

public static final int ON
Represents the on status of a LED.
See Also:
Khepera.setLED(int,int)

OFF

public static final int OFF
Represents the off status of a LED.
See Also:
Khepera.setLED(int,int)

TOGGLE

public static final int TOGGLE
The value to toggle a LEDs status.
See Also:
Khepera.setLED(int,int)

XPOS

public static final int XPOS
Index to the local robot x-position.
See Also:
Khepera.getLocation()

YPOS

public static final int YPOS
Index to the local robot y-position.
See Also:
Khepera.getLocation()

HEADING

public static final int HEADING
Index to the local robot heading.
See Also:
Khepera.getLocation()

UNCHANGED

public static final double UNCHANGED
Indicates that the value should be unchanged after the call.
See Also:
Khepera.setLocation(double,double,double)

RDIAMETER

public static final double RDIAMETER
The diameter of the robot in millimeters.

RRADIUS

public static final double RRADIUS
The radius of the robot in millimeters.

LOWERED

public static final double LOWERED
Constant putting the gripper in position to pick something up.
See Also:
Khepera.setArmPosition(double)

RAISED

public static final double RAISED
Constant to raise the arm in front of the robot.
See Also:
Khepera.setArmPosition(double)