#include <CovarianceTimeCache.h>
Public Types | |
typedef std::set < CovarianceStorage > | L_CovarianceStorage |
Public Member Functions | |
CovarianceTimeCache (ros::Duration max_storage_time=ros::Duration().fromNSec(DEFAULT_MAX_STORAGE_TIME)) | |
uint8_t | findClosest (const CovarianceStorage *&one, const CovarianceStorage *&two, ros::Time target_time, std::string *error_str) |
bool | getData (ros::Time time, CovarianceStorage &data_out, std::string *error_str=0) |
bool | insertData (const CovarianceStorage &new_data) |
void | interpolate (const CovarianceStorage &one, const CovarianceStorage &two, ros::Time time, CovarianceStorage &output) |
void | pruneList () |
Public Attributes | |
ros::Duration | max_storage_time_ |
L_CovarianceStorage | storage_ |
Static Public Attributes | |
static const int64_t | DEFAULT_MAX_STORAGE_TIME = 1ULL * 1000000000LL |
default value of 10 seconds storage | |
static const unsigned int | MAX_LENGTH_LINKED_LIST = 1000000 |
Maximum length of linked list, to make sure not to be able to use unlimited memory. | |
static const int | MIN_INTERPOLATION_DISTANCE = 5 |
Number of nano-seconds to not interpolate below. |
Definition at line 49 of file CovarianceTimeCache.h.
Definition at line 68 of file CovarianceTimeCache.h.
CovarianceTimeCache::CovarianceTimeCache | ( | ros::Duration | max_storage_time = ros::Duration().fromNSec(DEFAULT_MAX_STORAGE_TIME) | ) |
Definition at line 17 of file CovarianceTimeCache.cpp.
uint8_t CovarianceTimeCache::findClosest | ( | const CovarianceStorage *& | one, |
const CovarianceStorage *& | two, | ||
ros::Time | target_time, | ||
std::string * | error_str | ||
) | [inline] |
Definition at line 75 of file CovarianceTimeCache.cpp.
bool CovarianceTimeCache::getData | ( | ros::Time | time, |
CovarianceStorage & | data_out, | ||
std::string * | error_str = 0 |
||
) |
Definition at line 22 of file CovarianceTimeCache.cpp.
bool CovarianceTimeCache::insertData | ( | const CovarianceStorage & | new_data | ) |
Definition at line 57 of file CovarianceTimeCache.cpp.
void CovarianceTimeCache::interpolate | ( | const CovarianceStorage & | one, |
const CovarianceStorage & | two, | ||
ros::Time | time, | ||
CovarianceStorage & | output | ||
) | [inline] |
TODO
Definition at line 164 of file CovarianceTimeCache.cpp.
Definition at line 169 of file CovarianceTimeCache.cpp.
const int64_t uncertain_tf::CovarianceTimeCache::DEFAULT_MAX_STORAGE_TIME = 1ULL * 1000000000LL [static] |
default value of 10 seconds storage
Definition at line 54 of file CovarianceTimeCache.h.
const unsigned int uncertain_tf::CovarianceTimeCache::MAX_LENGTH_LINKED_LIST = 1000000 [static] |
Maximum length of linked list, to make sure not to be able to use unlimited memory.
Definition at line 53 of file CovarianceTimeCache.h.
Definition at line 71 of file CovarianceTimeCache.h.
const int uncertain_tf::CovarianceTimeCache::MIN_INTERPOLATION_DISTANCE = 5 [static] |
Number of nano-seconds to not interpolate below.
Definition at line 52 of file CovarianceTimeCache.h.
Definition at line 69 of file CovarianceTimeCache.h.