maslab.laser
Class LaserScanData
java.lang.Object
maslab.data.DataEvent
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
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)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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)
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
-