com.kuka.roboticsAPI.sensorModel
Class AbstractSensorData<T extends ISensorData<T>>

java.lang.Object
  extended by com.kuka.roboticsAPI.sensorModel.AbstractSensorData<T>
Type Parameters:
T - concrete type of the sensor data
All Implemented Interfaces:
ISensorData<T>
Direct Known Subclasses:
ForceSensorData, LbrTemperatureSensorData, TorqueSensorData

public abstract class AbstractSensorData<T extends ISensorData<T>>
extends Object
implements ISensorData<T>

Base class for sensor data. Implements the sensor data interface.

This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

Constructor Summary
protected AbstractSensorData()
          Creates a new sensor data instance with the current time as time stamp.
 
Method Summary
 long getTimestamp()
          Gets the system dependent time stamp when this sensor data object was created.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSensorData

protected AbstractSensorData()
Creates a new sensor data instance with the current time as time stamp.

Method Detail

getTimestamp

public final long getTimestamp()
Gets the system dependent time stamp when this sensor data object was created.

Warning: This time stamp is not portable and has only a meaning on the system where this object was created. The value is that returned by the function System.nanoTime() at the time this object was created. The precision of the time stamp is nanoseconds. It can only be used to compare time stamps of the same kind.

The time stamp does not specify when the sensor data was actually taken.

Specified by:
getTimestamp in interface ISensorData<T extends ISensorData<T>>
Returns:
A system dependent time stamp with precision of a nanosecond.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.


Copyright © 2019. All rights reserved.