|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--SensorServer
Does one thing which is to read a file and send it to the client.
Things to fix, calculate the correct time increment.
Field Summary | |
private int |
currentTime
A time index into the gesture. |
private static int |
dataSize
|
private static boolean |
debug
|
private static java.lang.String |
defaultFilename
|
private int |
duration
The number of seconds of data |
private java.lang.String |
filename
|
private int |
frameSkip
If the timeIncr rate is greater than the rate that the measurements were made at, then this is the number of frames to skip |
private int |
measurements
The number of measurements each sensor made |
private Net |
net
|
private boolean |
netReady
|
private int |
nsensors
The number of sensors providing data |
private static int |
packetSize
|
private static int |
PORT
|
private Quat |
q
|
private int |
rate
The measurement rate of the data in this file |
private int |
timeIncr
The length of time between frames that we want to send. |
private java.io.StreamTokenizer |
tokReader
|
Constructor Summary | |
(package private) |
SensorServer()
|
(package private) |
SensorServer(java.lang.String filename)
Sends untransformed sensor data to the Sensor.wrl vrml file. |
Method Summary | |
static void |
main(java.lang.String[] args)
|
void |
NetReadData(java.io.DataInputStream in_stream)
Just part of interface...doesn't do anything |
(package private) void |
printOrientation(int bird,
float x,
float y,
float z,
float ax)
|
(package private) void |
printTimeStamp()
|
void |
readHeader()
Read the header of an animation file. |
boolean |
ready()
Says whether connected to the network. |
void |
run()
Read each line from the file and send information over the network. |
(package private) void |
sendOrientation(short id,
float[] v)
Send orientation over the socket in angle/axis representation |
(package private) void |
sendOrientation(short id,
float x,
float y,
float z,
float a)
|
(package private) void |
sendTimeStamp()
The identifier for a timestamp is 10. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static java.lang.String defaultFilename
private java.lang.String filename
private Net net
private java.io.StreamTokenizer tokReader
private boolean netReady
private static int PORT
private static int packetSize
private static int dataSize
private Quat q
private static boolean debug
private int nsensors
private int rate
private int measurements
private int duration
private int currentTime
private int timeIncr
private int frameSkip
Constructor Detail |
SensorServer() throws java.io.FileNotFoundException
SensorServer(java.lang.String filename) throws java.io.FileNotFoundException
The
- name of the file to read from.Method Detail |
public static void main(java.lang.String[] args)
public boolean ready()
public void readHeader() throws java.io.IOException
public void run()
run
in interface java.lang.Runnable
void printOrientation(int bird, float x, float y, float z, float ax)
void printTimeStamp()
void sendOrientation(short id, float x, float y, float z, float a)
void sendTimeStamp()
void sendOrientation(short id, float[] v)
public void NetReadData(java.io.DataInputStream in_stream)
NetReadData
in interface NetListener
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |