kaos.robots.playerJavaClient
Class PlayerDevice

java.lang.Object
  extended by kaos.robots.playerJavaClient.PlayerDevice
Direct Known Subclasses:
BlobfinderInterface, FiducialInterface, LaserPlayerDevice, PositionPlayerDevice, PtzPlayerDevice, SonarPlayerDevice, TruthPlayerDevice

public abstract class PlayerDevice
extends java.lang.Object


Field Summary
protected  short device
           
protected  java.text.DecimalFormat df
           
protected  int DIFFERENCE_SYNCH_FACTOR
           
protected  short index
           
protected  java.io.DataInputStream is
           
protected  java.io.DataOutputStream os
           
protected  PlayerClient pc
           
protected  short PLAYER_AIO_CODE
           
protected  short PLAYER_AUDIO_CODE
           
protected  short PLAYER_BLOBFINDER_CODE
           
protected  short PLAYER_BUMPER_CODE
           
protected  short PLAYER_COMMS_CODE
           
protected  short PLAYER_DESCARTES_CODE
           
protected  short PLAYER_DIO_CODE
           
protected  short PLAYER_FIDUCIAL_CODE
           
protected  short PLAYER_GPS_CODE
           
protected  short PLAYER_GRIPPER_CODE
           
protected  short PLAYER_IDAR_CODE
           
protected  short PLAYER_IDARTURRET_CODE
           
protected  short PLAYER_IR_CODE
           
protected  short PLAYER_LASER_CODE
           
protected  short PLAYER_LOCALIZE_CODE
           
protected static int PLAYER_MAX_REQREP_SIZE
           
protected  short PLAYER_MCOM_CODE
           
protected  short PLAYER_MOTE_CODE
           
protected  short PLAYER_PLAYER_CODE
           
protected  short PLAYER_POSITION_CODE
           
protected  short PLAYER_POWER_CODE
           
protected  short PLAYER_PTZ_CODE
           
protected  short PLAYER_SONAR_CODE
           
protected  short PLAYER_SPEECH_CODE
           
protected  short PLAYER_TRUTH_CODE
           
protected  short PLAYER_WAVEFORM_CODE
           
protected  short PLAYER_WIFI_CODE
           
protected  int reserved
           
protected  int size
           
protected  int t_sec
           
protected  int t_usec
           
protected  int ts_sec
           
protected  int ts_usec
           
 
Constructor Summary
PlayerDevice(PlayerClient plc)
           
 
Method Summary
 int getTimeForDataSampled_sec()
           
 int getTimeForDataSampled_usec()
           
 long getTimeForDataSampled()
           
 int getTimeForDataSent_sec()
           
 int getTimeForDataSent_usec()
           
 long getTimeForDataSent()
           
 void handleEARMessage()
           
 void handleNARMessage()
           
 void handleResponce(int size)
           
 void readData()
           
protected  void readHeader()
           
 void readRequestedData()
           
 boolean readyToRead()
           
protected  void sendHeader(short type, int size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLAYER_PLAYER_CODE

protected short PLAYER_PLAYER_CODE

PLAYER_POWER_CODE

protected short PLAYER_POWER_CODE

PLAYER_GRIPPER_CODE

protected short PLAYER_GRIPPER_CODE

PLAYER_POSITION_CODE

protected short PLAYER_POSITION_CODE

PLAYER_SONAR_CODE

protected short PLAYER_SONAR_CODE

PLAYER_LASER_CODE

protected short PLAYER_LASER_CODE

PLAYER_BLOBFINDER_CODE

protected short PLAYER_BLOBFINDER_CODE

PLAYER_PTZ_CODE

protected short PLAYER_PTZ_CODE

PLAYER_AUDIO_CODE

protected short PLAYER_AUDIO_CODE

PLAYER_FIDUCIAL_CODE

protected short PLAYER_FIDUCIAL_CODE

PLAYER_COMMS_CODE

protected short PLAYER_COMMS_CODE

PLAYER_SPEECH_CODE

protected short PLAYER_SPEECH_CODE

PLAYER_GPS_CODE

protected short PLAYER_GPS_CODE

PLAYER_BUMPER_CODE

protected short PLAYER_BUMPER_CODE

PLAYER_TRUTH_CODE

protected short PLAYER_TRUTH_CODE

PLAYER_IDARTURRET_CODE

protected short PLAYER_IDARTURRET_CODE

PLAYER_IDAR_CODE

protected short PLAYER_IDAR_CODE

PLAYER_DESCARTES_CODE

protected short PLAYER_DESCARTES_CODE

PLAYER_MOTE_CODE

protected short PLAYER_MOTE_CODE

PLAYER_DIO_CODE

protected short PLAYER_DIO_CODE

PLAYER_AIO_CODE

protected short PLAYER_AIO_CODE

PLAYER_IR_CODE

protected short PLAYER_IR_CODE

PLAYER_WIFI_CODE

protected short PLAYER_WIFI_CODE

PLAYER_WAVEFORM_CODE

protected short PLAYER_WAVEFORM_CODE

PLAYER_LOCALIZE_CODE

protected short PLAYER_LOCALIZE_CODE

PLAYER_MCOM_CODE

protected short PLAYER_MCOM_CODE

PLAYER_MAX_REQREP_SIZE

protected static final int PLAYER_MAX_REQREP_SIZE
See Also:
Constant Field Values

DIFFERENCE_SYNCH_FACTOR

protected final int DIFFERENCE_SYNCH_FACTOR
See Also:
Constant Field Values

pc

protected PlayerClient pc

is

protected java.io.DataInputStream is

os

protected java.io.DataOutputStream os

df

protected java.text.DecimalFormat df

t_sec

protected int t_sec

t_usec

protected int t_usec

ts_sec

protected int ts_sec

ts_usec

protected int ts_usec

reserved

protected int reserved

size

protected int size

device

protected short device

index

protected short index
Constructor Detail

PlayerDevice

public PlayerDevice(PlayerClient plc)
Method Detail

getTimeForDataSampled_sec

public int getTimeForDataSampled_sec()

getTimeForDataSampled_usec

public int getTimeForDataSampled_usec()

getTimeForDataSent_sec

public int getTimeForDataSent_sec()

getTimeForDataSent_usec

public int getTimeForDataSent_usec()

getTimeForDataSampled

public long getTimeForDataSampled()

getTimeForDataSent

public long getTimeForDataSent()

readHeader

protected void readHeader()

sendHeader

protected void sendHeader(short type,
                          int size)

readData

public void readData()

readyToRead

public boolean readyToRead()

readRequestedData

public void readRequestedData()

handleNARMessage

public void handleNARMessage()

handleEARMessage

public void handleEARMessage()

handleResponce

public void handleResponce(int size)