tf2  master
tf2 maintains the relationship between coordinate frames in a tree structure buffered in time, and lets the user transform points, vectors, etc between any two coordinate frames at any desired point in time.
Public Member Functions | List of all members
tf2::StaticCache Class Reference

#include <time_cache.h>

Inheritance diagram for tf2::StaticCache:
Inheritance graph
[legend]
Collaboration diagram for tf2::StaticCache:
Collaboration graph
[legend]

Public Member Functions

virtual bool getData (TimePoint time, TransformStorage &data_out, std::string *error_str=0)
 Virtual methods. More...
 
virtual bool insertData (const TransformStorage &new_data)
 Insert data into the cache. More...
 
virtual void clearList ()
 Clear the list of stored values. More...
 
virtual CompactFrameID getParent (TimePoint time, std::string *error_str)
 Retrieve the parent at a specific time. More...
 
virtual P_TimeAndFrameID getLatestTimeAndParent ()
 Get the latest time stored in this cache, and the parent associated with it. Returns parent = 0 if no data. More...
 
virtual unsigned int getListLength ()
 Debugging information methods. More...
 
virtual TimePoint getLatestTimestamp ()
 Get the latest timestamp cached. More...
 
virtual TimePoint getOldestTimestamp ()
 Get the oldest timestamp cached. More...
 
- Public Member Functions inherited from tf2::TimeCacheInterface
virtual ~TimeCacheInterface ()=default
 

Member Function Documentation

◆ getData()

virtual bool tf2::StaticCache::getData ( TimePoint  time,
TransformStorage data_out,
std::string error_str = 0 
)
virtual

Virtual methods.

Implements tf2::TimeCacheInterface.

◆ insertData()

virtual bool tf2::StaticCache::insertData ( const TransformStorage new_data)
virtual

Insert data into the cache.

Implements tf2::TimeCacheInterface.

◆ clearList()

virtual void tf2::StaticCache::clearList ( )
virtual

Clear the list of stored values.

Implements tf2::TimeCacheInterface.

◆ getParent()

virtual CompactFrameID tf2::StaticCache::getParent ( TimePoint  time,
std::string error_str 
)
virtual

Retrieve the parent at a specific time.

Implements tf2::TimeCacheInterface.

◆ getLatestTimeAndParent()

virtual P_TimeAndFrameID tf2::StaticCache::getLatestTimeAndParent ( )
virtual

Get the latest time stored in this cache, and the parent associated with it. Returns parent = 0 if no data.

Implements tf2::TimeCacheInterface.

◆ getListLength()

virtual unsigned int tf2::StaticCache::getListLength ( )
virtual

Debugging information methods.

Implements tf2::TimeCacheInterface.

◆ getLatestTimestamp()

virtual TimePoint tf2::StaticCache::getLatestTimestamp ( )
virtual

Get the latest timestamp cached.

Implements tf2::TimeCacheInterface.

◆ getOldestTimestamp()

virtual TimePoint tf2::StaticCache::getOldestTimestamp ( )
virtual

Get the oldest timestamp cached.

Implements tf2::TimeCacheInterface.


The documentation for this class was generated from the following file: