tf2 rolling
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.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
tf2::StaticCache Class Reference

#include <time_cache.hpp>

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

Public Member Functions

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

Member Function Documentation

◆ getData()

bool tf2::StaticCache::getData ( TimePoint  time,
TransformStorage data_out,
std::string *  error_str = nullptr,
TF2Error error_code = nullptr 
)
overridevirtual

Overridden methods.

Implements tf2::TimeCacheInterface.

◆ insertData()

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

Insert data into the cache.

Implements tf2::TimeCacheInterface.

◆ clearList()

void tf2::StaticCache::clearList ( )
overridevirtual

Clear the list of stored values.

Implements tf2::TimeCacheInterface.

◆ getParent()

CompactFrameID tf2::StaticCache::getParent ( TimePoint  time,
std::string *  error_str = nullptr,
TF2Error error_code = nullptr 
)
overridevirtual

Retrieve the parent at a specific time.

Implements tf2::TimeCacheInterface.

◆ getLatestTimeAndParent()

P_TimeAndFrameID tf2::StaticCache::getLatestTimeAndParent ( )
overridevirtual

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

Implements tf2::TimeCacheInterface.

◆ getListLength()

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

Debugging information methods.

Implements tf2::TimeCacheInterface.

◆ getLatestTimestamp()

TimePoint tf2::StaticCache::getLatestTimestamp ( )
overridevirtual

Get the latest timestamp cached.

Implements tf2::TimeCacheInterface.

◆ getOldestTimestamp()

TimePoint tf2::StaticCache::getOldestTimestamp ( )
overridevirtual

Get the oldest timestamp cached.

Implements tf2::TimeCacheInterface.


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