41 const ros::Time& target, std::vector<double>& result)
46 if (after.
header.stamp < target)
49 if (before.
header.stamp > target)
58 double before_factor = (after.
header.stamp - target).toSec() / (after.
header.stamp - before.
header.stamp).toSec();
59 double after_factor = (target - before.
header.stamp).toSec() / (after.
header.stamp - before.
header.stamp).toSec();
61 const unsigned int N = before.
channels_.size();
63 for (
unsigned int i=0; i<N; i++)
static bool interp(const Deflated &before, const Deflated &after, const ros::Time &target, std::vector< double > &result)
Linear interpolation between to deflated samples.
std::vector< double > channels_