|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.intel.research.rain.Service
|
+--uwcse.location.LocationService
|
+--uwcse.location.FusionClientService
|
+--uwcse.location.objects.SensorDriver
|
+--uwcse.location.objects.sick.LMS200Driver
Driver for the SICK LMS200 series laser range finder.
| Nested Class Summary |
| Nested classes inherited from class uwcse.location.LocationService |
LocationService.RediscoverServices |
| Field Summary | |
protected String |
m_laserName
|
protected LMS200Driver.LMSPanel |
m_lmsPanel
|
protected boolean |
m_logLocal
|
protected OutputStream |
m_outStream
|
protected javax.comm.SerialPort |
m_serialPort
|
protected LMSSerialPortThread |
m_serialPortThread
|
protected int[] |
m_values
|
protected ProducerConsumerQueue |
m_valuesQueue
|
protected LMS200Driver.LMSValuesThread |
m_valuesThread
|
protected JFrame |
m_visualFrame
|
| Fields inherited from class uwcse.location.objects.SensorDriver |
m_measurementSinkServiceIDSet, SINK_DISCOVERY_QUERY |
| Fields inherited from class uwcse.location.FusionClientService |
FUSION_DISCOVERY_QUERY, m_fusionServiceIDSet |
| Fields inherited from class uwcse.location.LocationService |
CONFIG_FILENAME, MESSAGE_ELEMENT, MESSAGE_EXTENSION, RPC_ELEMENT, RPC_EXCEPTION_ELEMENT, RPC_EXTENSION, RPC_RESULT_ELEMENT |
| Constructor Summary | |
LMS200Driver(String portName,
String laserName,
boolean logLocal)
Create a LMS200Driver for the given serial port name. |
|
| Method Summary | |
protected void |
closeSerialPort()
Close serial port and remove the event listener. |
void |
finalize()
Close the serial port if necessary before the object is reclaimed by the garbage collector. |
protected void |
handleTerminalCommand(String cmd)
This routine is called to process command strings captured by runTerminalCommandLoop. |
void |
hideVisualization()
Hide the visualization window. |
static void |
main(String[] argv)
|
protected void |
openSerialPort(String portName)
Open the specified serial port at the given baud rate. |
protected static void |
printUsageAndExit()
Show the program argument usage and then exit. |
void |
showVisualization()
Display the visualization window. |
protected void |
withdraw()
Overridden to close the serial port if necessary before withdrawing from Rain. |
| Methods inherited from class uwcse.location.objects.SensorDriver |
sendMeasurement |
| Methods inherited from class uwcse.location.FusionClientService |
callFusionServiceRpc, getFusionServiceIDSet |
| Methods inherited from class uwcse.location.LocationService |
addObject, callLocationRpc, correctedTimeMillis, getObject, getSysclockError, multicastLocationMsg, multicastLocationMsgs, processLocationMsg, processLocationRpc, runTerminalCommandLoop, sendLocationMsg, sendLocationMsgs, setDescription |
| Methods inherited from class com.intel.research.rain.Service |
getDaemon, getDispatcher, getServiceID, process, receive, setDaemon |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected LMSSerialPortThread m_serialPortThread
protected LMS200Driver.LMSValuesThread m_valuesThread
protected javax.comm.SerialPort m_serialPort
protected OutputStream m_outStream
protected String m_laserName
protected boolean m_logLocal
protected ProducerConsumerQueue m_valuesQueue
protected JFrame m_visualFrame
protected LMS200Driver.LMSPanel m_lmsPanel
protected int[] m_values
| Constructor Detail |
public LMS200Driver(String portName,
String laserName,
boolean logLocal)
throws RainException,
LocationException,
IOException
RainException
LocationException
IOException| Method Detail |
public void showVisualization()
public void hideVisualization()
protected void openSerialPort(String portName)
throws javax.comm.NoSuchPortException,
javax.comm.PortInUseException,
IOException,
javax.comm.UnsupportedCommOperationException,
TooManyListenersException
javax.comm.NoSuchPortException
javax.comm.PortInUseException
IOException
javax.comm.UnsupportedCommOperationException
TooManyListenersExceptionprotected void closeSerialPort()
protected void withdraw()
withdraw in class SensorDriverpublic void finalize()
finalize in class Objectprotected void handleTerminalCommand(String cmd)
LocationService
handleTerminalCommand in class LocationServiceLocationService.runTerminalCommandLoop()protected static void printUsageAndExit()
public static void main(String[] argv)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||