maslab.odom
Class CarOdometryDataSource
java.lang.Object
maslab.data.DataSource
maslab.odom.CarOdometryDataSource
public class CarOdometryDataSource
- extends DataSource
This data source can be used for any car-style robot.
|
Method Summary |
java.lang.String |
getParameters()
Retrieve a (preferrably human readable) string of parameters for this
source. |
void |
setParameters(java.lang.String s)
Set parameters, as read from a configuration file. |
DataEvent |
stringToEvent(double timestamp,
java.lang.String data)
Called by DataLogReader when a DataEvent record is encountered for this
data source. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CarOdometryDataSource
public CarOdometryDataSource(java.lang.String channelName)
stringToEvent
public DataEvent stringToEvent(double timestamp,
java.lang.String data)
- Description copied from class:
DataSource
- Called by DataLogReader when a DataEvent record is encountered for this
data source. The DataSource should instantiate a DataEvent object but
should NOT notify the DataListeners.
- Specified by:
stringToEvent in class DataSource
getParameters
public java.lang.String getParameters()
- Description copied from class:
DataSource
- Retrieve a (preferrably human readable) string of parameters for this
source. For example, a laser scanner DataSource might return information
about where the laser scanner is mounted. The string may contain any
character except newline, but human-readable formats are preferred.
- Specified by:
getParameters in class DataSource
setParameters
public void setParameters(java.lang.String s)
- Description copied from class:
DataSource
- Set parameters, as read from a configuration file.
- Specified by:
setParameters in class DataSource