|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavaclient.PlayerDevice
javaclient.GripperInterface
public class GripperInterface
The gripper interface provides access to a robotic gripper. This interface is VERY Pioneer-specific, and should really be generalized.
| Field Summary |
|---|
| Fields inherited from class javaclient.PlayerDevice |
|---|
device, DIFFERENCE_SYNCH_FACTOR, index, is, os, pc, PLAYER_MAX_REQREP_SIZE, PLAYER_STXX, reserved, size, t_sec, t_usec, ts_sec, ts_usec |
| Constructor Summary | |
|---|---|
GripperInterface(PlayerClient pc,
short indexOfDevice)
Constructor for GripperInterface. |
|
| Method Summary | |
|---|---|
byte |
getBeams()
Get the gripper's beams. |
byte |
getState()
Get the gripper's state. |
void |
readData()
Read the current state of the gripper; the format is given below. |
void |
setGripper(int cmd,
int arg)
The gripper interface accepts 2-byte commands, the format of which is given below. |
| Methods inherited from class javaclient.PlayerDevice |
|---|
getTimeForDataSampled_sec, getTimeForDataSampled_usec, getTimeForDataSampled, getTimeForDataSent_sec, getTimeForDataSent_usec, getTimeForDataSent, handleEARMessage, handleNARMessage, handleResponse, readHeader, sendHeader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GripperInterface(PlayerClient pc,
short indexOfDevice)
pc - a reference to the PlayerClient objectindexOfDevice - the index of the device| Method Detail |
|---|
public void readData()
readData in class PlayerDevice
public void setGripper(int cmd,
int arg)
cmd - the commandarg - the argument for the LIFTcarry and GRIPpress commandspublic byte getState()
public byte getBeams()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||