8#ifndef TIMEGRAPHKEYBUFFER_H
9#define TIMEGRAPHKEYBUFFER_H
16#include <gtsam/base/Vector.h>
32 bool getClosestKeyAndTimestamp(
double& tInGraph, gtsam::Key& key,
const std::string& callingName,
const double maxSearchDeviation,
39 void addToBuffer(
const double ts,
const gtsam::Key& key);
std::mutex writeInBufferMutex_
TimeToKeyMap timeToKeyBuffer_
TimeGraphKeyBuffer(const int bufferLength, const int verboseLevel)
double getLatestTimestampInBuffer() const
const TimeToKeyMap & getTimeToKeyBuffer()
~TimeGraphKeyBuffer()=default
KeyToTimeMap keyToTimeBuffer_
const KeyToTimeMap & getKeyToTimeBuffer()
void addToBuffer(const double ts, const gtsam::Key &key)
bool getClosestKeyAndTimestamp(double &tInGraph, gtsam::Key &key, const std::string &callingName, const double maxSearchDeviation, const double tK)
std::map< gtsam::Key, double > KeyToTimeMap
std::map< double, gtsam::Key > TimeToKeyMap