|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkoala.KatanaArm
public class KatanaArm
Class which provides control of the Katana robot arm, using jkatana.dll
.
Field Summary | |
---|---|
static KatanaLocation |
INFRONT
|
static KatanaLocation |
LEFT
|
static KatanaLocation |
RIGHT
|
static KatanaLocation |
TOP
|
Method Summary | |
---|---|
void |
calibrate()
Calibrate the arm. |
void |
closeGripper()
Close the arm's gripper. |
void |
disconnect()
Disconnect from the arm. |
protected void |
finalize()
|
int |
getGripperPosition()
Get the gripper's position. |
static KatanaArm |
getInstance()
Get a reference to the arm. |
KatanaLocation |
getLocation()
Get the location of the end of the gripper in (ideal) 3D space. |
double |
getMaximumSpeed()
Get the maximum motor speed. |
int |
getMotorPosition(int motor)
Get the position of a particular motor in terms of its rotary encoder. |
boolean |
gripperClosed()
Returns true only if the gripper is fully closed. |
boolean |
grippingSomething()
Observes the gripper sensors to infer if anything is being gripped. |
static void |
main(java.lang.String[] args)
|
void |
moveTo(KatanaLocation loc)
Move the location of the end of the gripper. |
void |
moveToRestingPosition()
Move the robot to the position in which it is stable if the power is switched off. |
void |
moveToWithoutBlocking(KatanaLocation loc)
|
void |
openGripper()
Open the arm's gripper. |
boolean |
pickUp()
Pick up an object from the front of the robot (INFRONT). |
KoalaSensorReading |
readForceSensors()
Read the 4 force sensors. |
KoalaSensorReading |
readProximitySensors()
Read the 9 infra-red proximity sensors. |
KoalaSensorReading |
readSensors()
Read the 16 sensors on the robot's gripper. |
static KatanaLocation |
rotateAxes(KatanaLocation loc)
Converts a location from "ideal" coodinate space to that of the arm. |
void |
rotateMotorTo(int motor,
int angle)
Rotate the specified motor (0-4) to the specified angle (in degrees). |
void |
rotateWristTo(int angle)
Rotate the wrist to the specified angle (in degrees). |
void |
setMaximumSpeed(double max)
Set the maximum motor speed. |
void |
unblock()
Unblock the robot after a crash (stopping due to impact with something). |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final KatanaLocation TOP
public static final KatanaLocation LEFT
public static final KatanaLocation RIGHT
public static final KatanaLocation INFRONT
Method Detail |
---|
public static KatanaArm getInstance()
public void disconnect()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void openGripper()
openGripper
in interface koala.RobotArm
public void closeGripper()
closeGripper
in interface koala.RobotArm
public void calibrate()
calibrate
in interface koala.RobotArm
public KoalaSensorReading readSensors()
readSensors
in interface koala.RobotArm
public KoalaSensorReading readForceSensors()
readForceSensors
in interface koala.RobotArm
public KoalaSensorReading readProximitySensors()
readProximitySensors
in interface koala.RobotArm
public int getGripperPosition()
getGripperPosition
in interface koala.RobotArm
public boolean gripperClosed()
gripperClosed
in interface koala.RobotArm
public boolean grippingSomething()
grippingSomething
in interface koala.RobotArm
public double getMaximumSpeed()
getMaximumSpeed
in interface koala.RobotArm
public void setMaximumSpeed(double max)
setMaximumSpeed
in interface koala.RobotArm
public int getMotorPosition(int motor)
getMotorPosition
in interface koala.RobotArm
public KatanaLocation getLocation()
getLocation
in interface koala.RobotArm
public void moveTo(KatanaLocation loc) throws KatanaOutOfRangeException
moveTo
in interface koala.RobotArm
KatanaOutOfRangeException
public void moveToWithoutBlocking(KatanaLocation loc)
moveToWithoutBlocking
in interface koala.RobotArm
public void rotateWristTo(int angle) throws KatanaOutOfRangeException
rotateWristTo
in interface koala.RobotArm
KatanaOutOfRangeException
public void rotateMotorTo(int motor, int angle) throws KatanaOutOfRangeException
rotateMotorTo
in interface koala.RobotArm
KatanaOutOfRangeException
public void moveToRestingPosition()
moveToRestingPosition
in interface koala.RobotArm
public void unblock()
unblock
in interface koala.RobotArm
public boolean pickUp()
pickUp
in interface koala.RobotArm
public static KatanaLocation rotateAxes(KatanaLocation loc)
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |