#include <time_cache.h>
Public Member Functions | |
virtual void | clearList () |
Clear the list of stored values. | |
virtual bool | getData (ros::Time time, TransformStorage &data_out, std::string *error_str=0) |
Virtual methods. | |
virtual P_TimeAndFrameID | getLatestTimeAndParent () |
Get the latest time stored in this cache, and the parent associated with it. Returns parent = 0 if no data. | |
virtual ros::Time | getLatestTimestamp () |
Get the latest timestamp cached. | |
virtual unsigned int | getListLength () |
Debugging information methods. | |
virtual ros::Time | getOldestTimestamp () |
Get the oldest timestamp cached. | |
virtual CompactFrameID | getParent (ros::Time time, std::string *error_str) |
Retrieve the parent at a specific time. | |
virtual bool | insertData (const TransformStorage &new_data) |
Insert data into the cache. | |
Private Attributes | |
TransformStorage | storage_ |
Definition at line 138 of file time_cache.h.
void StaticCache::clearList | ( | ) | [virtual] |
Clear the list of stored values.
Implements tf2::TimeCacheInterface.
Definition at line 57 of file static_cache.cpp.
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.
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.
ros::Time StaticCache::getLatestTimestamp | ( | ) | [virtual] |
Get the latest timestamp cached.
Implements tf2::TimeCacheInterface.
Definition at line 71 of file static_cache.cpp.
unsigned int StaticCache::getListLength | ( | ) | [virtual] |
Debugging information methods.
Implements tf2::TimeCacheInterface.
Definition at line 59 of file static_cache.cpp.
ros::Time StaticCache::getOldestTimestamp | ( | ) | [virtual] |
Get the oldest timestamp cached.
Implements tf2::TimeCacheInterface.
Definition at line 76 of file static_cache.cpp.
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.
bool StaticCache::insertData | ( | const TransformStorage & | new_data | ) | [virtual] |
Insert data into the cache.
Implements tf2::TimeCacheInterface.
Definition at line 48 of file static_cache.cpp.
TransformStorage tf2::StaticCache::storage_ [private] |
Definition at line 157 of file time_cache.h.