Go to the documentation of this file.
32 #ifndef TF2_TIME_CACHE_H
33 #define TF2_TIME_CACHE_H
42 #include <boost/shared_ptr.hpp>
160 #endif // TF2_TIME_CACHE_H
ros::Duration max_storage_time_
static const int MIN_INTERPOLATION_DISTANCE
Number of nano-seconds to not interpolate below.
virtual ros::Time getOldestTimestamp()
Get the oldest timestamp cached.
TransformStorage storage_
virtual bool insertData(const TransformStorage &new_data, std::string *error_str=0)
Insert data into the cache.
virtual unsigned int getListLength()=0
Debugging information methods.
virtual unsigned int getListLength()
Debugging information methods.
boost::shared_ptr< TimeCacheInterface > TimeCacheInterfacePtr
std::deque< TransformStorage > L_TransformStorage
virtual bool insertData(const TransformStorage &new_data, std::string *error_str=0)
Insert data into the cache.
virtual CompactFrameID getParent(ros::Time time, std::string *error_str)=0
Retrieve the parent at a specific time.
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.
A class to keep a sorted linked list in time This builds and maintains a list of timestamped data....
virtual CompactFrameID getParent(ros::Time time, std::string *error_str)
Retrieve the parent at a specific time.
static const unsigned int MAX_LENGTH_LINKED_LIST
Maximum length of linked list, to make sure not to be able to use unlimited memory.
virtual ros::Time getLatestTimestamp()
Get the latest timestamp cached.
void interpolate(const TransformStorage &one, const TransformStorage &two, ros::Time time, TransformStorage &output)
static const int64_t DEFAULT_MAX_STORAGE_TIME
default value of 10 seconds storage
virtual bool insertData(const TransformStorage &new_data, std::string *error_str=0)=0
Insert data into the cache.
virtual ros::Time getOldestTimestamp()=0
Get the oldest timestamp cached.
virtual unsigned int getListLength()
Debugging information methods.
virtual P_TimeAndFrameID getLatestTimeAndParent()
Get the latest time stored in this cache, and the parent associated with it. Returns parent = 0 if no...
uint8_t findClosest(TransformStorage *&one, TransformStorage *&two, ros::Time target_time, std::string *error_str)
A helper function for getData.
L_TransformStorage storage_
virtual void clearList()=0
Clear the list of stored values.
ROS_DECLARE_MESSAGE(TransformStamped)
virtual ros::Time getLatestTimestamp()=0
Get the latest timestamp cached.
virtual bool getData(ros::Time time, TransformStorage &data_out, std::string *error_str=0)
Virtual methods.
virtual CompactFrameID getParent(ros::Time time, std::string *error_str)
Retrieve the parent at a specific time.
std::pair< ros::Time, CompactFrameID > P_TimeAndFrameID
virtual ros::Time getLatestTimestamp()
Get the latest timestamp cached.
virtual bool getData(ros::Time time, TransformStorage &data_out, std::string *error_str=0)=0
Access data from the cache.
TimeCache(ros::Duration max_storage_time=ros::Duration().fromNSec(DEFAULT_MAX_STORAGE_TIME))
virtual P_TimeAndFrameID getLatestTimeAndParent()=0
Get the latest time stored in this cache, and the parent associated with it. Returns parent = 0 if no...
virtual void clearList()
Clear the list of stored values.
virtual ros::Time getOldestTimestamp()
Get the oldest timestamp cached.
virtual P_TimeAndFrameID getLatestTimeAndParent()
Get the latest time stored in this cache, and the parent associated with it. Returns parent = 0 if no...
tf2
Author(s): Tully Foote, Eitan Marder-Eppstein, Wim Meeussen
autogenerated on Sun Feb 4 2024 03:18:11