Function navtk::utils::linear_extrapolate_rpy
Defined in File interpolation.hpp
Function Documentation
-
Vector3 navtk::utils::linear_extrapolate_rpy(const aspn_xtensor::TypeTimestamp &t1, const Vector3 &rpy1, const aspn_xtensor::TypeTimestamp &t2, const Vector3 &rpy2, const aspn_xtensor::TypeTimestamp &t)
Linearly interpolate between or extraplate beyond two RPY (roll, pitch, yaw) attitude representations.
- Parameters
t1 – Time of first attitude value.
rpy1 – First attitude, in radians.
t2 – Time of second attitude value.
rpy2 – Second attitude, in radians.
t – Time to interpolate to.
- Returns
RPY attitude representation at
t, in radians. Iftis outside of the range betweent1andt2the return value will be the nearest of the inputs (constant endpoint extrapolation) with a warning.