maslab.laser
Class LaserScanData

java.lang.Object
  extended by maslab.data.DataEvent
      extended by maslab.laser.LaserScanData
All Implemented Interfaces:
java.io.Serializable

public class LaserScanData
extends DataEvent
implements java.io.Serializable

Encapsulates data from a single laser scan and provides useful functionality.

See Also:
Serialized Form

Field Summary
 int channel
           
 java.util.ArrayList<GPoint2D> points
           
 double[] ranges
           
static long serialVersionUID
           
 double timeStamp
           
 
Constructor Summary
LaserScanData()
           
LaserScanData(double timeStamp, double[] ranges)
          Create a LaserScan from the underlying raw data
LaserScanData(double timeStamp, java.lang.String channelName, java.lang.String data)
           
 
Method Summary
 java.lang.String getChannelName()
           
 java.lang.String getDataString()
           
 java.lang.String getEventName()
           
 java.util.ArrayList<GPoint2D> getPoints()
           
 double getTimeStamp()
          You must support an empty constructor, but that object only needs to be able to factory new objects via read.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

ranges

public double[] ranges

timeStamp

public double timeStamp

channel

public int channel

points

public java.util.ArrayList<GPoint2D> points
Constructor Detail

LaserScanData

public LaserScanData()

LaserScanData

public LaserScanData(double timeStamp,
                     double[] ranges)
Create a LaserScan from the underlying raw data


LaserScanData

public LaserScanData(double timeStamp,
                     java.lang.String channelName,
                     java.lang.String data)
Method Detail

getTimeStamp

public double getTimeStamp()
Description copied from class: DataEvent
You must support an empty constructor, but that object only needs to be able to factory new objects via read.

Specified by:
getTimeStamp in class DataEvent

getEventName

public java.lang.String getEventName()
Specified by:
getEventName in class DataEvent

getChannelName

public java.lang.String getChannelName()
Specified by:
getChannelName in class DataEvent

getPoints

public java.util.ArrayList<GPoint2D> getPoints()

getDataString

public java.lang.String getDataString()
Specified by:
getDataString in class DataEvent