52#include <tf/exceptions.h>
53#include <tf/time_cache.h>
82 copy->storage_ = storage_;
83 copy->storage_as_list_ = storage_as_list_;
84 return std::shared_ptr<TimeCacheInterface>(copy);
91 data_out.
stamp = time;
99 storage_as_list_.front() = new_data;
142 return storage_as_list_;
148 return storage_as_list_;
A class for handling time.
Transform cache for static transforms.
virtual bool get_data(fawkes::Time time, TransformStorage &data_out, std::string *error_str=0)
Get data.
virtual void clear_list()
Clear storage.
virtual bool insert_data(const TransformStorage &new_data)
Insert data.
virtual unsigned int get_list_length() const
Debugging information methods.
virtual P_TimeAndFrameID get_latest_time_and_parent()
Get latest time and parent frame number.
virtual ~StaticCache()
Destructor .
StaticCache()
Constructor.
virtual L_TransformStorage get_storage_copy() const
Get copy of storage elements.
virtual const L_TransformStorage & get_storage() const
Get storage list.
virtual TimeCacheInterfacePtr clone(const fawkes::Time &look_back_until=fawkes::Time(0, 0)) const
Create a copy of this time cache.
virtual fawkes::Time get_latest_timestamp() const
Get latest timestamp from cache.
virtual CompactFrameID get_parent(fawkes::Time time, std::string *error_str)
Get parent frame number.
virtual fawkes::Time get_oldest_timestamp() const
Get oldest timestamp from cache.
std::list< TransformStorage > L_TransformStorage
List of stored transforms.
Fawkes library namespace.