tfjava::TimeCache Class Reference

List of all members.

Public Member Functions

TransformStorage getData (long time)
boolean insertData (TransformStorage newData)
 TimeCache (long maxStorageTime, Frame parentFrame, Frame childFrame)
long timeToNearestTransform (long time)

Protected Member Functions

void removeOldData ()

Protected Attributes

Frame childFrame
long maxStorageTime
Frame parentFrame
TreeMap< Long, TransformStoragestorage

Detailed Description

Buffer in which transformations from one specific frame to another are stored, ordered in time.

Sjoerd van den Dries
Feb 28, 2011

Definition at line 41 of file

Constructor & Destructor Documentation

tfjava::TimeCache::TimeCache ( long  maxStorageTime,
Frame  parentFrame,
Frame  childFrame 
) [inline]

Class Constructor.

Definition at line 55 of file

Member Function Documentation

TransformStorage tfjava::TimeCache::getData ( long  time  )  [inline]

Returns the transformation in this buffer at time point time (in nanoseconds); Uses interpolation or (forward or backward) extrapolation.

If only one transformation is available, this transformation is returned, regardless of how far back or ahead the queried time point is compared to the time stamp of this transformation.

Definition at line 85 of file

boolean tfjava::TimeCache::insertData ( TransformStorage  newData  )  [inline]

Inserts transformation newData in the buffer, while maintaining the time ordering.

Definition at line 65 of file

void tfjava::TimeCache::removeOldData (  )  [inline, protected]

Removes all transforms that are more than maxStorageTime older than the newest transform.

Definition at line 134 of file

long tfjava::TimeCache::timeToNearestTransform ( long  time  )  [inline]

Returns the absolute time difference to the nearest transform from the given time point, in nanoseconds.

Definition at line 122 of file

Member Data Documentation

Reference to the child frame (target frame)

Definition at line 50 of file

Maximum storage time, in nanoseconds

Definition at line 46 of file

Reference to the parent frame (source frame)

Definition at line 48 of file

TreeMap<Long, TransformStorage> tfjava::TimeCache::storage [protected]

Map containing the transformations, ordered in time

Definition at line 44 of file

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables

Author(s): Sjoerd van den Dries
autogenerated on Fri Jan 11 09:59:03 2013