Public Member Functions | Private Attributes | List of all members
tf2::StaticCache Class Reference

#include <time_cache.h>

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

Public Member Functions

virtual void clearList ()
 Clear the list of stored values. More...
 
virtual bool getData (ros::Time time, TransformStorage &data_out, std::string *error_str=0)
 Virtual methods. 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 ros::Time getLatestTimestamp ()
 Get the latest timestamp cached. More...
 
virtual unsigned int getListLength ()
 Debugging information methods. More...
 
virtual ros::Time getOldestTimestamp ()
 Get the oldest timestamp cached. More...
 
virtual CompactFrameID getParent (ros::Time time, std::string *error_str)
 Retrieve the parent at a specific time. More...
 
virtual bool insertData (const TransformStorage &new_data, std::string *error_str=0)
 Insert data into the cache. More...
 

Private Attributes

TransformStorage storage_
 

Detailed Description

Definition at line 136 of file time_cache.h.

Member Function Documentation

◆ clearList()

void StaticCache::clearList ( )
virtual

Clear the list of stored values.

Implements tf2::TimeCacheInterface.

Definition at line 57 of file static_cache.cpp.

◆ getData()

bool StaticCache::getData ( ros::Time  time,
TransformStorage data_out,
std::string *  error_str = 0 
)
virtual

Virtual methods.

Implements tf2::TimeCacheInterface.

Definition at line 41 of file static_cache.cpp.

◆ getLatestTimeAndParent()

P_TimeAndFrameID 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.

Definition at line 66 of file static_cache.cpp.

◆ getLatestTimestamp()

ros::Time StaticCache::getLatestTimestamp ( )
virtual

Get the latest timestamp cached.

Implements tf2::TimeCacheInterface.

Definition at line 71 of file static_cache.cpp.

◆ getListLength()

unsigned int StaticCache::getListLength ( )
virtual

Debugging information methods.

Implements tf2::TimeCacheInterface.

Definition at line 59 of file static_cache.cpp.

◆ getOldestTimestamp()

ros::Time StaticCache::getOldestTimestamp ( )
virtual

Get the oldest timestamp cached.

Implements tf2::TimeCacheInterface.

Definition at line 76 of file static_cache.cpp.

◆ getParent()

CompactFrameID StaticCache::getParent ( ros::Time  time,
std::string *  error_str 
)
virtual

Retrieve the parent at a specific time.

Implements tf2::TimeCacheInterface.

Definition at line 61 of file static_cache.cpp.

◆ insertData()

bool StaticCache::insertData ( const TransformStorage new_data,
std::string *  error_str = 0 
)
virtual

Insert data into the cache.

Implements tf2::TimeCacheInterface.

Definition at line 48 of file static_cache.cpp.

Member Data Documentation

◆ storage_

TransformStorage tf2::StaticCache::storage_
private

Definition at line 155 of file time_cache.h.


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


tf2
Author(s): Tully Foote, Eitan Marder-Eppstein, Wim Meeussen
autogenerated on Sun Feb 4 2024 03:18:11