27#include <shared_mutex>
31#include <Eigen/Geometry>
33#include <SimoxUtility/math/pose/interpolate.h>
51 template <
typename MessageType>
75 const auto posePreIt = poseNextIt - 1;
77 const auto& posePre = *posePreIt;
78 const auto& poseNext = *poseNextIt;
81 const float t =
static_cast<float>(
timestamp - posePre.timestamp) /
82 (poseNext.timestamp - posePre.timestamp);
std::size_t size() const noexcept
InterpolatingTimeQueue(const std::size_t maxQueueSize=100)
MessageType lookupInterpolate(int64_t timestamp) const
QueueConstIterator findFirstElementAtOrAfter(int64_t timestamp) const
TimeQueue(const std::size_t maxQueueSize)
This file is part of ArmarX.
PoseStamped interpolate(const PoseStamped &posePre, const PoseStamped &poseNext, float t)