1,654
edits
Line 122: | Line 122: | ||
* softgyro: This is the input data containing a vector of orientation values (Quaternions) along with their corresponding timestamps (in microseconds). It is used by the interpolation algorithm. | * softgyro: This is the input data containing a vector of orientation values (Quaternions) along with their corresponding timestamps (in microseconds). It is used by the interpolation algorithm. | ||
* interpolated: This contains a vector of interpolated orientation values with their corresponding interpolation timestamps (in microseconds). | * interpolated: This contains a vector of interpolated orientation values with their corresponding interpolation timestamps (in microseconds). | ||
* clean: This avoids cleaning or modifying the softgyro vector. | |||
<syntaxhighlight lang=c++> | <syntaxhighlight lang=c++> | ||
RuntimeError ExampleInterpolator::Apply( | RuntimeError ExampleInterpolator::Apply( | ||
std::vector<std::pair<Quaternion<double>, uint64_t>>&interpolated, | std::vector<std::pair<Quaternion<double>, uint64_t>>&interpolated, | ||
std::vector<std::pair<Quaternion<double>, uint64_t>>& softgyro) { | std::vector<std::pair<Quaternion<double>, uint64_t>>& softgyro, | ||
const bool clean) { | |||
RuntimeError ret{}; | RuntimeError ret{}; | ||
edits